Paper commentary
A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions
Survey sorts LLM hallucinations into factuality and faithfulness types and traces their causes
- Problem Existing hallucination taxonomies were built for source-grounded text generation, so they fit LLMs poorly. Most LLM errors are plain factual mistakes, not failures to stay grounded in a source.
- Method The authors replace the intrinsic and extrinsic split with factuality and faithfulness types. They then group the causes of hallucination into data, training and inference stages, so each mitigation can be read against the stage it targets.
- Results The survey cites Gekhman et al., who found that learning new facts during fine-tuning correlates with more hallucination.
Why LLM hallucination needs a fresh definition
LLMs write answers that read as fluent and human, so their errors are harder to catch. That matters because chatbots, search engines and recommender systems now feed into daily decisions, and a wrong answer can spread false beliefs. Earlier work on natural language generation defined hallucination as output that is nonsensical or unfaithful to the source.
It split these cases into intrinsic hallucination, where output contradicts the source, and extrinsic hallucination, where output can't be checked against the source. But LLMs work as open-ended systems, so most of their errors are plain factual mistakes rather than failures to stay grounded in a source. The authors therefore argue that the existing taxonomy needs adjusting for LLMs.
Factuality and faithfulness as the two top-level types
The key move is to replace the intrinsic and extrinsic split with two top-level types, factuality and faithfulness. Factuality hallucination is a mismatch between the output and verifiable real-world facts. Faithfulness hallucination covers output that departs from the user input, or output that contradicts itself.
Faithfulness hallucination splits further into three sub-types. Instruction inconsistency is output that departs from the user's original instruction, and context inconsistency is output that departs from the provided context. Logical inconsistency is contradiction inside the output itself. The authors tie this split to how LLMs are used across many tasks, rather than to one task's source document.
The same taxonomy then frames the causes, which the survey groups into data, training and inference stages. This lets each mitigation be read against the stage it targets.
Knowledge boundaries and training as sources of error
Pre-training sets a knowledge boundary, and two parts of it matter most: rarely seen long-tail facts, and content that falls outside the pre-training data. Accuracy tracks how many relevant documents a fact has and how popular its entity is in the pre-training corpus. Domain tasks such as medical and legal questions show the same deficit, often as factual fabrication.
Knowledge is also frozen after training, so questions about newer events tend to get outdated or invented answers. Copyright limits also keep recent research, proprietary data and copyrighted books out of the training corpus, which leaves gaps the model fills with fabrication.
Supervised fine-tuning can add facts that pre-training never taught the model. Gekhman et al. found that the model struggles to learn these new facts, and that learning them correlates with more hallucination. The authors read this as a sign that new facts encourage hallucination. A second cause is that standard fine-tuning makes the model complete every response.
So when a query lies beyond its knowledge, the model tends to fabricate an answer instead of declining.
After human-feedback training, a model can give answers that differ from its own internal belief, a pattern called sycophancy. Preference models and human raters can favor sycophantic answers over truthful ones. Sycophancy also appears when the model picks a clearly incorrect answer that it seems to know is wrong.
Decoding choices that raise hallucination risk
Stochastic sampling is the usual decoding choice for LLMs. Randomness is needed because high-likelihood sequences often read as low-quality text, which is the likelihood trap. But that diversity comes at a cost, since more randomness goes with more hallucination. Raising the sampling temperature flattens the token distribution, so rare tokens get sampled more often, and the authors link this to higher hallucination risk.
Work on conditional generation reports over-confidence, where the model leans on what it already wrote and favors fluency over the source. Causal language models attend to nearby words, which weakens their use of the wider context. This weak attention to context can directly cause faithfulness hallucination.
Softmax combined with distributed word embeddings limits which output distributions the model can express, which is the softmax bottleneck. Exposure bias adds a mismatch, because training uses true prefixes while inference uses the model's own outputs. An early wrong token can then cascade into the rest of the sequence.
Mitigation through data, editing and retrieval
The survey groups data-side fixes into three families: data filtering, model editing and retrieval-augmented generation. Data filtering selects high-quality pre-training text, and deduplication removes repeated text in two forms. Exact duplicates are found by substring matching or a suffix array, while near-duplicates are found with hash-based methods such as MinHash.
SemDeDup, by contrast, uses embeddings from pre-trained models to find semantic duplicates.
Model editing changes a model's parameters so that it adds new knowledge. Locate-then-edit methods first find the faulty part of the model and then update it. ROME finds the edit layer by disrupting and restoring activations, then updates feed-forward parameters directly. MEMIT uses the same locating method but updates several layers at once, so thousands of edits can be merged.
Yao et al. found that these methods generalize poorly and perform unevenly across architectures. ROME and MEMIT empirically work well only on decoder-only LLMs.
Meta-learning methods train an external hyper-network to predict weight updates. MEND's parameter shifts for different keys can cancel one another, and MALMEN treats the aggregation as a least squares problem instead of a sum. Model editing does not suit large or continuous updates, since it can hurt the model's overall performance.
Retrieval-augmented generation retrieves external knowledge first and then generates from both the query and the retrieved documents. By decoupling external knowledge from the LLM, it can ease knowledge-gap hallucination without changing the model's own performance.
Benchmarks for testing LLM hallucination
TruthfulQA has 817 questions across 38 categories, built to elicit imitative falsehoods. Its filtered part keeps 437 questions after removing those GPT-3 answered correctly, and a second part has 380 unfiltered non-adversarial questions.
HalluQA follows the TruthfulQA approach and targets Chinese LLMs. It has 450 handcrafted adversarial questions across 30 domains, and its misleading section holds questions that fooled GLM-130B.
Earlier detection benchmarks mostly covered tasks such as summarization and used weaker generators such as BART and PEGASUS. FELM has 817 samples that assess factuality across world knowledge, science and mathematics. HaluEval combines automated generation with human annotation over 5,000 general user queries and 30,000 task-specific samples.
Where retrieval-augmented LLMs still fail
Retrieval failures come from the user query, the retrieval source and the retriever. Retrieving when no retrieval is needed can mislead the answer. In the Table 5 example, a question about water's boiling point at sea level pulled in altitude data and produced a wrong value.
Ambiguous queries cause trouble too. A question about the fastest mile on a track retrieved car-racing records instead of athletics. Complex queries can fail the same way: a question about the university of the penicillin discoverer retrieved only career facts.
LLM-generated text now fills many retrieval sources, and modern retrieval models tend to favor it over human-authored content. Tan et al. reported a bias toward LLM-generated contexts inside RAG systems. Credibility-aware generation tries to counter this by weighting information by relevance, time and source trustworthiness.
Even with good retrieval, models often use information placed in the middle of a long context poorly, a lost-in-the-middle effect. The authors offer the long-term decay of RoPE as one possible explanation, since it pulls attention toward nearby tokens.
Open problems
Hallucination in large vision-language models is named as a future direction and is not covered in depth. Understanding the knowledge boundaries behind LLM hallucination is also left open. Model editing still struggles with large-scale updates, and it can hurt overall performance under continuous edits. Current RAG designs show shallow interaction between retriever and generator, which leaves knowledge use suboptimal.
Automated data filtering also has to keep pace with growing data and with LLM-generated content.
Paper info
- Authors
- Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, Ting Liu
- Venue
- arXiv · Preprint
- First published
- 2023-11-9
- Added
- 2026-11-12
- Updated
- 2024-11-19
- Version
- v2
- arXiv
- 2311.05232
- DOI
- 10.1145/3703155
- Category
- cs.CL
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, Ting Liu (2023). A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions. arXiv:2311.05232v2. https://doi.org/10.1145/3703155
BibTeX
@article{huang2023survey,
title = {{A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions}},
author = {Lei Huang and Weijiang Yu and Weitao Ma and Weihong Zhong and Zhangyin Feng and Haotian Wang and Qianglong Chen and Weihua Peng and Xiaocheng Feng and Bing Qin and Ting Liu},
year = {2023},
eprint = {2311.05232},
archivePrefix = {arXiv},
doi = {10.1145/3703155},
url = {https://arxiv.org/abs/2311.05232v2}
}