What is AI hallucination?
AI hallucination is output that sounds right and is not. The word implies a malfunction, which is the most misleading thing about it, because the model is not doing something different when it hallucinates. It is doing exactly what it always does.
A language model generates the most probable continuation of the text in front of it. When the training data supported a correct answer, the probable continuation is true. When it did not, the probable continuation is a plausible-looking answer rather than an admission of ignorance. Same mechanism, different luck.
That reframing matters because it changes what you can expect. If hallucination were a bug, a better model would fix it. Since it is a property of generating plausible text without a model of truth, the practical question is not how to eliminate it but where you are willing to let its consequences land.
The term is also under challenge, and for good reason. Hallucination implies perception gone wrong, which anthropomorphises a statistical process. Fabrication and confabulation are both more accurate. The industry has settled on hallucination anyway, so this page uses it, while noting that the metaphor is responsible for a fair amount of muddled thinking about what can be fixed and by whom.
Why do language models hallucinate?
Because the training objective rewards plausible answers and does not reward saying "I do not know." Confident wrong answers turn out to be locally optimal under standard training and evaluation, which means the behaviour is produced by the incentive we set rather than emerging despite it.
Research published by OpenAI in 2025 formalised this: hallucinations arise because the training and evaluation setup makes a confident wrong answer a better bet than an abstention. A benchmark that scores accuracy and treats a refusal as a miss teaches the model to guess.
- No representation of its own uncertainty. The model produces a distribution over next tokens, not a belief about whether it knows. Fluency is uniform across confident and unfounded output, which is why the two are indistinguishable to a reader.
- Refusal is penalised. If evaluation rewards answering and treats abstention as failure, guessing scores better. The behaviour is trained, not accidental.
- Gaps get filled with the shape of an answer. Asked something absent from the training distribution, the most probable continuation still looks like an answer, because answers are what follow questions in the data.
- More capable does not mean better calibrated. This is the counterintuitive part. Successive frontier models have sometimes scored worse on factual reliability about specific entities while scoring better on capability, because knowledge expansion has outpaced calibration.
The last point is worth sitting with, because it undermines the most common plan. Waiting for a better model is not a hallucination strategy. Capability and calibration are different axes, and they have not moved together.
What do agents hallucinate that chatbots do not?
Three things that have nothing to do with facts: invented parameters, actions never taken, and completions that never happened. When a chatbot hallucinates it tells the user something false. When an agent hallucinates it can do something wrong, or claim to have done something at all.
This is the part of the subject that general hallucination coverage misses, and it is the part that matters once a model can call tools.
| Type | What the model produces | Agent-specific? | How you catch it |
|---|---|---|---|
| Factual | A claim about the world that is untrue | No | Compare against a source. Requires knowing the truth |
| Contextual | A claim contradicting the content it was given | No | Check the answer against the retrieved passage |
| Citation | A source, case, or reference that does not exist | No | Resolve every citation programmatically. Cheap and rarely done |
| Parameter | An invented identifier, timestamp, or field value passed to a tool | Yes | Schema validation, and checking the value appears in the trace or the input |
| Action | A claim to have performed a step that does not appear in the trace | Yes | Compare the claim against the actual tool calls. Deterministic |
| Outcome | A claim that the task is complete when the evidence says otherwise | Yes | Verify against system state rather than against the summary |
Why an agent says it finished when it did not
The mechanism is mundane and that is what makes it dangerous. An agent has been given a task, has the context, knows what it was supposed to do. The most natural-sounding continuation of that conversation is a sentence reporting success. Nothing in the architecture checks the claim against what happened, so the system is optimised to produce completion-shaped output with no mechanism that could contradict it.
It shows up in a subtler form too. An agent that hits a refusal partway through, corrects itself, and finishes properly can still omit the refusal from its own summary of the work. The account is not false about the outcome and is incomplete about the path, which is exactly the sort of gap that matters when somebody later asks what happened.
Why is a hallucination rate not a property of a model?
Because it is a property of a model and a benchmark together. The same model in the same configuration can score under two percent on one factuality test and over ten percent on another, so any rate quoted without its benchmark and its date tells you nothing usable.
This matters commercially, because hallucination rates appear in vendor material and board papers as though they were specifications. They behave more like exam results: informative about the exam as much as about the candidate.
- Benchmarks measure different things. Summarisation faithfulness, factual recall about people, closed-book knowledge, and domain accuracy are separate skills. A model can be well calibrated on one and poorly calibrated on another.
- The spread within one model is large. Published results have shown the same model producing single-digit and double-digit hallucination rates depending on which test it faced. Neither number is wrong. Neither is a property of the model.
- High capability and high hallucination coexist. Some recent models have posted record accuracy alongside high hallucination rates on the same evaluation, because they answer more questions rather than declining more of them.
- Your workload is not any of these benchmarks. The only rate that governs your risk is the one measured on your tasks, with your data, under your prompts.
The practical rule is the same one that applies to any statistic in this field. Ask which benchmark, on what date, measuring what. A rate presented without those three is being used to persuade rather than to inform. See agent evaluation for measuring your own.
Does grounding fix hallucination?
It reduces factual hallucination and introduces a subtler problem. A model given source material can still misread it, over-generalise from it, or contradict it while citing it, and the citation makes the answer considerably more persuasive without making it more correct.
Retrieval is the right first move and it is not a solution. Understanding what it does and does not address prevents a common and expensive misplacement of confidence.
- What grounding fixes. Claims about things absent from the training data. If the answer has to come from a document you supplied, the model has less room to invent one.
- What it does not fix. Misreading the passage, drawing an unsupported conclusion from it, blending two sources into a claim neither makes, or attributing a statement to a document that does not contain it.
- What it makes worse. Perceived reliability. An answer with a citation reads as verified, and readers check citations far less often than they trust them. Grounding raises trust faster than it raises accuracy, and the gap between those two curves is where the damage happens.
- The cheap control almost nobody implements. Resolve citations programmatically. If the answer names a source, confirm the source exists and contains the claim, by rule rather than by judgement. This catches an entire hallucination class at negligible cost.
There is also a compounding case specific to multi-step systems. A hallucinated fact from step one becomes a retrieved premise at step four, and by then it carries the appearance of established context rather than of a guess. That is the same mechanism as context poisoning, covered at context engineering.
How do you reduce hallucination in an agentic system?
Stop trying to detect false statements and start verifying claims you can check mechanically. Whether a fact is true requires judgement. Whether the tool call the agent claims to have made actually appears in the trace does not, and that is where the leverage is.
The ordering below is deliberate: the deterministic checks come first because they are cheap, provable, and cover the agent-specific failures that matter most.
-
Verify completion against the trace, not the summary
If the agent says it updated a record, confirm the tool call happened and returned success. This single check eliminates action and outcome hallucination as a class, requires no model, and is the highest-value control on this page. It also depends on having per-step traces, covered at AI agent observability.
-
Enforce tool schemas strictly
Reject malformed arguments and invented field names at the boundary rather than passing them through. Schema validation is deterministic and catches most parameter hallucination before it reaches a system that will act on it.
-
Resolve every citation
Confirm programmatically that each cited source exists and contains the claim attributed to it. Cheap, mechanical, and it removes the failure mode that has produced the most public embarrassment in professional settings.
-
Check answers against the source they claim to use
Faithfulness scoring compares an answer to the retrieved passage. This one is probabilistic rather than deterministic, so treat it as a signal, and remember the judge doing the comparison can also be wrong.
-
Make abstention a valid outcome, and reward it
If your evaluation treats "I could not determine this" as a failure, you are training the same incentive that produces hallucination in the first place. Score a correct refusal as a success, and instrument how often it happens.
-
Constrain where a false premise can land
The last line, and the one that holds when everything above misses. Scoped permissions, approval gates on the irreversible, and no outbound path an error could exploit. See AI guardrails.
Read that list in order and the shape becomes clear. Two of the six require a model to judge anything. The rest are rules. Most teams start with the probabilistic layer because it addresses the failure they read about, and leave the deterministic checks that would catch the agent-specific failures unbuilt.