---
title: "Extrinsic Hallucinations in LLMs"
url: https://daily.dev/posts/extrinsic-hallucinations-in-llms-jg5b5dbyw
source_url: https://lilianweng.github.io/posts/2024-07-07-hallucination/
type: article
source: "Lil’Log"
published: 2024-07-08T06:37:58.924Z
updated: 2024-10-05T17:22:24.538Z
tags: ["ai", "machine-learning", "nlp", "llm"]
reading_time: 27
upvotes: 13
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Extrinsic Hallucinations in LLMs

**[Lil’Log](https://daily.dev/sources/lilianweng)** · 27 min read · 13 upvotes · 0 comments

## Summary

Hallucination in large language models (LLMs) refers to generating unfaithful, fabricated, or nonsensical content not grounded in provided context or world knowledge. The focus is on extrinsic hallucination, emphasizing the need for LLMs to produce factual content and acknowledge when they lack knowledge. Causes of hallucination include issues during pre-training and fine-tuning stages. Various methods, like retrieval-augmented generation (RAG), special sampling methods, and fine-tuning for factuality, are explored to minimize hallucinations. Evaluation benchmarks and different detection approaches are also discussed.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://lilianweng.github.io/posts/2024-07-07-hallucination/>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#ai](https://daily.dev/tags/ai), [#machine-learning](https://daily.dev/tags/machine-learning), [#nlp](https://daily.dev/tags/nlp), [#llm](https://daily.dev/tags/llm)

[View this post on daily.dev](https://daily.dev/posts/extrinsic-hallucinations-in-llms-jg5b5dbyw)
