When researchers at OpenAI asked a widely used chatbot for the birthday of one of their own co-authors, it gave three different dates. All three were wrong, and all three were stated as fact. That is a hallucination: an answer that is fluent, confident and false.
The usual explanation is that a language model "only predicts the next word". That is true and it explains nothing, because the same mechanism also produces the correct answers. The useful question is when prediction tips over into invention. Two pieces of published research answer it, and together they tell you what reduces hallucination in a system you run and what does not.
What a hallucination is, and what it is not
A language model does not look facts up. It continues a text with the words that are most plausible given everything it has read, which we describe step by step in how LLMs generate answers. A hallucination is a continuation that is plausible and untrue: a court ruling that does not exist, a product code that looks right, a quote nobody said.
It helps to separate two kinds, because they are measured differently and fixed differently:
- A factual hallucination: the model answers from memory and the memory is wrong or absent.
- A faithfulness hallucination: the model was given the document and still states something the document does not say.
A supplier who quotes one "hallucination rate" without saying which of the two it is has told you very little.
Cause one: the model was trained and graded to guess
In September 2025 OpenAI researchers, with Santosh Vempala of Georgia Tech, published Why language models hallucinate. Their argument is statistical, not mystical. Language has two kinds of content. Spelling and grammar follow patterns, so a model that has read enough stops making those mistakes. A birthday follows no pattern. If a fact appeared rarely or never in the training text, nothing in the text lets the model derive it, and the model still has to produce a next word.
What it produces then is decided by how models are graded. Most benchmarks count correct answers and nothing else. In the paper's own example, a model that guesses a birthday has a 1 in 365 chance of scoring a point, while a model that says "I don't know" is certain to score zero. Over thousands of questions the guesser ends up higher on the leaderboard, and leaderboards are what models are tuned against. We have built an exam where bluffing beats leaving the answer blank.
The article gives numbers for two OpenAI models on the SimpleQA test. The older o4-mini declined to answer 1% of questions, was right on 24% and wrong on 75%. The newer gpt-5-thinking-mini declined 52%, was right on 22% and wrong on 26%. On an accuracy-only scoreboard the older model wins by two points. In an invoice process or a customer reply it would be wrong roughly three times as often.
Cause two: a familiar name switches off the refusal
The second explanation comes from looking inside a model. In March 2025 Anthropic published Tracing the thoughts of a large language model, in which researchers followed the internal steps Claude takes to reach an answer. They found that for questions about a person or thing, declining to answer is the default: a circuit that is switched on from the start makes the model say it does not have enough information.
When the model recognises what it is asked about, a "known entity" feature activates and suppresses that default. Asked about the basketball player Michael Jordan, the feature fires and the model answers. Asked about an invented "Michael Batkin", it does not fire and the model declines. When the researchers switched the feature on by hand, the model stated, consistently, that Michael Batkin plays chess.
The natural version of that intervention is the case that matters. According to the article, the misfire can happen when the model recognises a name but knows nothing else about it. The recognition is enough to silence the refusal, and once the model has decided to answer it fills in the rest.
This explains a pattern every team that tests a model eventually sees. Hallucinations do not cluster on things the model has never heard of, where it tends to decline, or on things it knows well. They cluster on the half-known: a mid-sized company, a person with a common name, an article number in a regulation that resembles another one, a part number one digit away from a real one. That is also exactly where most business questions live.
Is hallucination inevitable?
Two respectable sources appear to disagree. A 2024 paper by Xu, Jain and Kankanhalli, Hallucination is Inevitable, argues formally that it is impossible to eliminate hallucination in LLMs. The OpenAI article lists "hallucinations are inevitable" as a misconception, because a model can abstain when it is uncertain.
Both hold, and the combination is the practical lesson. No model will know everything, so accuracy never reaches 100%; OpenAI says so itself. What can change is what the model does at the edge of its knowledge. The realistic goal is not a system that is never wrong. It is a system that says so when it does not know, and a process that knows what to do with that answer.
Why retrieval reduces it but does not remove it
The standard remedy is retrieval: look the answer up in your own documents and hand the passage to the model, so it reads instead of remembers. That removes much of the first cause. It leaves three failure points:
- The index is out of date, so the model faithfully quotes last year's price list. See what a stale index does to RAG.

- The wrong passage is retrieved. This is common with tables and codes, as we show in BM25 versus vector search on tables. The model then answers correctly about the wrong thing.
- The right passage is retrieved and the model still adds to it, merges it with memory or summarises it loosely.
The third point can be measured. Vectara's hallucination leaderboard gives models a short document to summarise and counts the summaries that contain something the document does not support. As listed on 30 November 2026, the best model on the board scored 1.8%. Several frontier models scored higher: gpt-6-sol 6.5%, gemini-3.1-pro-preview 10.4% and claude-opus-4-7 12.0%. This is one task with one automated judge, and the maintainers say themselves it does not capture every way a model can hallucinate. Two conclusions are safe all the same: with the source in front of it the rate is still not zero, and the most capable model is not automatically the most faithful one.
Retrieval design matters more than the choice between architectures, a point we work out in RAG versus GraphRAG.
What measurably reduces hallucination in a production system
Both causes point to the same set of measures. None of them is exotic, and each can be checked.
- Ground the answer and verify the citation. Have the model quote the passage it relied on, then let ordinary code check that the passage exists in the retrieved source. A citation nobody checks is decoration.
- Make "I don't know" a valid outcome with a destination. The prompt allows it, the interface shows it, and the case goes to a person. A model that may not abstain will guess, because guessing is what it was graded on.
- Generate less. Customer numbers, article codes, amounts and dates should come from the system of record through a lookup, inside a fixed output schema. The model chooses which record; it does not type the value.
- Put unanswerable questions in the test set. Include questions whose answer is not in your documents and questions about half-known names. A test set that contains only answerable questions cannot detect the behaviour you are worried about.
- Score a wrong answer worse than an abstention. This is the change OpenAI proposes for benchmarks, and it applies equally to your own acceptance test.
- Keep the context small and relevant. The more loosely related text a model receives, the more material it has to blend. See context engineering for AI agents.
- Measure three numbers on every release: correct, wrong and abstained. Run them again whenever the model version changes, because a new version shifts all three. How to set the acceptable level is covered in what error rate to accept from AI automation.
What does not work
- Writing "do not hallucinate" in the prompt. The model has no reliable internal signal that it is about to invent something, and the instruction offers no alternative. Telling it what to do when the source is silent does help.
- Setting temperature to 0. That makes the answer repeatable, not true: you get the same wrong answer every time. The Vectara board runs models at temperature 0 where possible and still measures the rates above.
- Buying the largest model. The SimpleQA and Vectara figures both show that capability and willingness to abstain are separate properties.
- Asking the model whether it is sure. A second opinion from the same model on the same context is not a check against a source.
What to ask a supplier about hallucination
If you are an IT manager evaluating an AI system, whether we built it or someone else did, these questions separate a measured system from a demo:
- On which test set was the hallucination rate measured, who wrote it, and how many of its questions have no answer in the source material?
- What are the three numbers: correct, wrong and abstained? A single accuracy figure hides the trade-off between the last two.
- Is the figure about facts from the model's memory or about faithfulness to supplied documents?
- How are citations verified, and by what: code, a second model or a person?
- Which fields are never generated but always looked up?
- What happens when the model provider releases a new version: is the test set re-run before the switch?
- Where do abstentions and reported errors go, who reviews them, and do they flow back into the test set?
In our own projects the acceptance metric and its baseline are agreed in writing before the build starts, measured against a test set the customer's own experts write. How that fits into a build is described on our AI implementation page; the grounding and evaluation work itself falls under generative AI.
The short version
A language model hallucinates for two reasons that reinforce each other: it was rewarded for guessing, and partial recognition is enough to switch off its own refusal. Neither can be prompted away. Both can be managed by giving the model a source, a permitted way to say it does not know, and a test that makes a wrong answer cost more than an honest blank.
We build custom AI and LLM systems that run in production: a clickable MVP by the second call, fixed steps, and you own the code.
AI agency in the Netherlands →


