How it works · 5 of 37 Foundation
Why do AI models hallucinate?
Fluent is not the same as true
Hallucination: A model writes the most *likely* next words, not the most *true* ones, so without the fact it produces a confident invention.
Loading the animation…
Say it like this A hallucination is a fluent, confident answer that isn't true. The model writes what's most likely, not what's checked, so without your real fact on its desk, it fills the gap with a common guess.
Under the hood — for builders
- Catch it: check each claim against the source
- Split the answer into single claims, then look each one up in the page that was retrieved. Three outcomes:
- Who pays
- Moffatt v. Air Canada (2024): a tribunal held the airline liable for its chatbot's wrong refund promise. C$812.
- Automate the check
- Ask a second model, per claim: “Does this page support it? Yes / contradicts / not stated.” Log the misses.
- Why it happens
- A model writes the likeliest next words; nothing checks truth. Training rewards guessing over “I don't know” (Kalai et al., 2025).
- Measure it
- Vectara's HHEM leaderboard: how often a model adds unsupported claims when summarising. None score zero.
- Reduce it
- Retrieve the page (RAG), demand citations, allow “I don't know”, check claims as above.
- Watch out
- A wrong retrieved page gives a confident wrong answer. Tone is not evidence.
- Sources
- Moffatt v. Air Canada, 2024 BCCRT 149 · Kalai et al. (2025) · Vectara HHEM.
What happens in the hallucination animation, step by step?
- An oral exam. The examiner asks for your company's refund window, but your policy page was never put on the model's desk.
- Your turn: the model writes one token at a time (here, whole words). Which will it write next? Remember: it can't see your policy.
- It scores every possible next word and usually picks one of the top scorers. Online, "30" is the most common refund window, so it scores highest.
- So it answers smoothly and confidently. It isn't lying: nothing in how it writes checks whether a fact is true.
- Your policy says 14 days. Fluent, plausible and wrong: that's a hallucination.
- Put the real page on its desk (RAG) and tell it to say "I don't know" when the pages don't answer. That cuts guessing a lot, but a model can still misread a page (see Evaluating RAG).
What everyday example explains hallucination?
A confident student bluffing in an oral exam.
Why should a team care about hallucination?
Why models sound right yet are wrong.