Robots Atlas>ROBOTS ATLAS
Safety

Hallucination

2022ActivePublished: 20 September 2026Updated: 20 September 2026Published
Key innovation
Naming and formalizing the phenomenon in which generative models produce fluent, convincing content that is nonetheless inconsistent with facts or with the source material — shifting model evaluation from fluency alone toward faithfulness to the source and factual correctness (factuality).
Category
Safety
Abstraction level
Pattern
Operation level
InferenceTrainingEvaluation (runtime)
Use cases
Medical and legal QA systems (high risk of harm)Journalism and generative search (citations, facts)Document summarization (faithfulness to source)Coding assistants (fabricated APIs and libraries)AI agents and tool calling (fabricated arguments/steps)RAG systems (hallucination despite grounding in sources)

How it works

Hallucination arises at the intersection of data, training and inference. (1) Training data contain errors, contradictions and gaps, and the model learns a probability distribution over text, not a fact base. (2) The training objective (next-token prediction) optimizes fluency, not verifiability; fine-tuning and RLHF can additionally reward confident, helpful answers at the expense of caution. (3) At inference, stochastic sampling (temperature, top-k, top-p) increases diversity but also the risk of generating untrue details; the model has no built-in fact-checking mechanism and no uncertainty signal calibrated to truth. As a result the model 'fills gaps' with statistically plausible but fabricated text (confabulation). Mitigation includes grounding in sources (RAG), constrained decoding, chain-of-thought and self-consistency, verifiers, and changing how evaluations are scored so that guessing is not rewarded.

Problem solved

It names and structures a core trustworthiness limitation of generative models: the fact that fluency and confidence do not guarantee truthfulness. It provides the concepts (faithfulness vs factuality, intrinsic vs extrinsic) needed to measure, diagnose and mitigate generation errors in high-stakes applications.

Components

Intrinsic hallucinationType of hallucination relative to the source

Generated content directly contradicts the provided context or source material.

Extrinsic hallucinationType of hallucination relative to the source

Generated content cannot be verified against the source — it is neither supported nor contradicted by the context.

FaithfulnessHallucination evaluation axis

Evaluation axis: whether the output is consistent with the provided source material (regardless of world truth).

FactualityHallucination evaluation axis

Evaluation axis: whether the output agrees with world facts (regardless of the source).

ConfabulationAlternative terminological framing

Alternative term emphasizing that the model confidently fills gaps with fabricated but plausible-sounding details, without intent to deceive.

Official

Implementation

Implementation pitfalls
Fluency mistaken for truthfulnessHigh

A smooth, confident tone leads users to trust fabricated content.

Fix:Require citations, surface sources, train users to verify.
RAG does not eliminate hallucinationHigh

Even with a retriever the model may ignore or misread documents (intrinsic hallucination).

Fix:Check answer faithfulness to retrieved documents, use verifiers and sentence-level citations.
Fabricated citations and referencesCritical

Models generate plausible-looking but nonexistent sources, DOIs or court cases.

Fix:Validate every reference against an external database before presenting it.
Evaluation that rewards guessingHigh

Scoring that rewards confident answers entrenches hallucination at the expense of admitting uncertainty.

Fix:Score calibration and abstention; do not penalize 'I don't know'.
Unreliable automated detectionMedium

Models poorly recognize their own hallucinations without external knowledge or extra reasoning steps.

Fix:Combine external knowledge, chain-of-thought and verifiers; do not rely on self-assessment.

Evolution

Original paper · 2022 · ACM Computing Surveys (2023) · Ziwei Ji
Survey of Hallucination in Natural Language Generation
Ziwei Ji, Nayeon Lee, Rita Frieske, Tiezheng Yu, Dan Su, Yan Xu, Etsuko Ishii, Yejin Bang, Andrea Madotto, Pascale Fung
2018
Term 'hallucination' in machine translation and image captioning

Early uses of the term for content unsupported by the input in NMT and captioning.

2020
Focus on faithfulness in abstractive summarization

Work on the faithfulness of summaries to the source document formalizes the faithfulness axis.

2021
TruthfulQA — measuring answer truthfulness

Benchmark shows that larger models can imitate human misconceptions (inverse scaling).

2022
Survey of Hallucination in NLG (Ji et al.) consolidates the concept
Inflection point

The survey defines a taxonomy (intrinsic/extrinsic, faithfulness/factuality) and organizes the field.

2023
ChatGPT era and HaluEval — hallucination as a central LLM problem

The spread of LLM chatbots makes hallucination a central trustworthiness problem; dedicated benchmarks appear.

2025
'Why Language Models Hallucinate' (Kalai et al.) — hallucination as a result of evaluation incentives
Inflection point

The paper argues that benchmarks reward confident guessing, which entrenches hallucinations.

Hyperparameters (configurable axes)

Decoding temperatureHigh

Higher temperature and more stochastic sampling increase diversity but also the tendency to fabricate details.

0.0Greedy/deterministic decoding — lower risk, less diversity.
0.7-1.0Typical creative range — higher risk of factual hallucination.
Retrieval grounding (RAG)Critical

Providing the model with verified source documents lowers hallucination but does not eliminate it.

brak / z retrieveremGrounding in sources vs generation from parametric memory alone.
Alignment / fine-tuning (RLHF)High

The fine-tuning regime affects calibration and the tendency to guess confidently rather than acknowledge uncertainty.

Model scaleMedium

Larger models tend to make fewer factual errors, but scale does not remove hallucination and can be misleading (e.g. imitating human misconceptions).

Prompt specificityMedium

Clear instructions, requesting citations, and allowing the model to say 'I don't know' reduce hallucinations.