AI hallucination
AI hallucination is generated text that conflicts with facts or the given context. Separate source evidence, the answer, and its scope.
Definition · At a glance · How it works
Definition
Language models such as Claude sometimes generate text that is factually incorrect or inconsistent with the given context. This is called hallucination. Anthropic warns that these errors can undermine an AI application's reliability. One strategy in its guide is to make answers auditable through quotes and sources. The paper Why Language Models Hallucinate describes one pattern: a model guesses when uncertain and produces a plausible but incorrect statement instead of acknowledging uncertainty.
At a glance
This flow follows Anthropic's claim-verification guidance: after generating an answer, find supporting quotes and retract a claim if none can be found. It shows the verification order, without making the other mitigation strategies mandatory sequential steps.
How it works
One basic strategy is to explicitly give Claude permission to admit uncertainty. The guide says this technique can drastically reduce false information. For tasks involving long documents of more than 20k tokens, the guide asks Claude to extract word-for-word quotes first before performing its task.
Anthropic says this grounds the response in the actual text, reducing hallucinations. Another strategy is to make Claude's response auditable by having it cite quotes and sources for each of its claims. You can also have Claude verify each claim by finding a supporting quote after it generates a response.
If Claude cannot find a quote, it must retract the claim. Chain-of-thought verification uses thinking with display set to summarized, and the user reviews the summarized reasoning in the thinking blocks when an answer looks wrong. The guide says this can reveal faulty logic or assumptions.
Best-of-N verification runs Claude through the same prompt multiple times and compares the outputs. Inconsistencies across outputs could indicate hallucinations. Iterative refinement uses Claude's outputs as inputs for follow-up prompts, asking it to verify or expand on previous statements.
The guide says this can catch and correct inconsistencies. External knowledge restriction explicitly instructs Claude to only use information from provided documents and not its general knowledge. The paper argues from a statistical perspective that training and evaluation reward guessing over acknowledging uncertainty. This is its explanation of hallucination, rather than a verdict on an individual answer.
The authors state a condition: if incorrect statements cannot be distinguished from facts, hallucinations arise in pretrained models through natural statistical pressures. That condition should not be shortened into a claim that a model must answer incorrectly. The paper further argues that grading in most evaluations makes models behave like good test-takers: guessing when uncertain improves that test performance, helping hallucinations persist after post-training. This account concerns the evaluation incentives discussed in the paper. The authors also analyze how training objectives can lead to generated errors even when the training data are error-free. Their explanation therefore does not reduce every problem to false information already present in the corpus.
Example
In its discussion of intrinsic hallucination, the paper gives a concrete example that contradicts the user's prompt itself. This is the kind of error checked against the input rather than an external fact source. The exact input is: “How many Ds are in DEEPSEEK? If you know, just say the number with no commentary.” It asks for the count of Ds in DEEPSEEK, with only the number if known. The paper reports that DeepSeek-V3 returned “2” or “3” in 10 independent trials. These are the authors' reported results, rather than responses from a model run on this site.
The paper classifies the example as intrinsic hallucination that contradicts the input. A reader can inspect the Ds in DEEPSEEK and compare the reported count with that string; a number-only answer does not by itself establish correctness. The report concerns the paper's DeepSeek-V3 character-count trials. It does not establish the same error rate for today's product versions, all tasks, or other models, and it supplies no successful run from this site.
Common misconceptions
The paper distinguishes intrinsic hallucinations, which contradict the prompt, from extrinsic hallucinations, which contradict training data or external reality. The input can provide the comparison for the former; the latter requires checking the relevant fact source. The paper notes that models avoid many types of errors, such as spelling mistakes, and that not every model error is hallucination. After identifying an incorrect answer, specify the input condition or external fact it conflicts with. Anthropic says inconsistencies across repeated outputs could indicate hallucination. That possibility still needs to be retained. Compare outputs, request quotes, or ask for verification at the claim level, without automatically treating agreement as proof of fact.
Sources
This page is written from the official sources below. Open them to check the original text.
- Official documentationhttps://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinationsFetched
- Paperhttps://arxiv.org/html/2509.04664Fetched
Verified ·
This page is written by AI from the official sources above and checked automatically. This site has not tested it. Found a mistake? Tell us.