deep · 6 min
Hallucination
The model says something false in a confident voice. Why a next-token predictor does this.
updated 23 Sept 2026
A common belief: models make things up because they're not good enough yet, and the next bigger one will stop. Let's test that against one small question and see where it leads.
In May 2025, researchers asked DeepSeek-V3, a leading open model, for one of the authors' birthdays, with the instruction "If you know, just respond with DD-MM." Three tries, three different dates: 03-07, 15-06, 01-01. All wrong. It had been told it could pass, and it never did.
That's a hallucination: the model says something false, fluently, in a confident voice. Notice what those three answers share. Each one looks like a birthday. Each one is specific. And they change from run to run, which is a clue we'll come back to.
(The word gets used loosely for any mistake. The useful meaning is narrower: made-up output that neither the prompt nor real knowledge supports. Sometimes it contradicts what's right there in the prompt; asked how many Ds are in DEEPSEEK, the same model answered 2 or 3 across ten tries. Sometimes, like the birthday, it contradicts the world.)
So why didn't it just say "I don't know"? Let's dig, one layer at a time.
Layer one: there's always a next token
A model writes by predicting the next token, over and over. At each step it gives every possible token a probability and picks one. There's no blank option. Something always comes out.
But that only explains why some answer appears. "I don't know" is also just a few tokens, and the model could pick those. Why doesn't it?
Layer two: some facts have no pattern
Think about what the model saw in pretraining. Some facts follow a pattern, like spelling. There's a rule, and the model learns it. Others are arbitrary. Nothing about a person tells you their birthday. You either saw it enough times or you didn't.
A 2025 paper from OpenAI and Georgia Tech works out what that means. Even if the training text had no mistakes at all, a model fitted to text will get these arbitrary facts wrong at some rate. Their rule of thumb: if 20% of birthday facts show up exactly once in the training data, expect the base model to get at least 20% of birthday questions wrong. A fact seen once can't be pinned down.
Real web text makes it worse, since it has outdated and wrong information of its own, and error rates are higher for rarer people and things.
Here's a part that surprises people. None of this depends on the model writing one token at a time, or on the transformer. It comes from fitting any model to the patterns of text. The next-token loop is just where the error comes out.
Layer three: the tests reward guessing
After pretraining, models go through post-training, and plenty of that effort goes into cutting hallucinations. So why do they survive?
Picture a multiple-choice exam that gives 1 point for a right answer and 0 for a wrong one or a blank. If you're unsure, you should always guess. A blank never scores and a guess sometimes does. Students figure that out, and learn to bluff on written exams too, with specific answers like "September 30" instead of "sometime in autumn".
Models are graded the same way. Of ten popular benchmarks the same paper checked, nine score strictly right or wrong and give nothing for "I don't know". Under that scoring, holding back is never the best move, and training aims at the scores.
Let's put numbers on it. Ten questions, and the model truly knows three.
| Answers | Binary score | Wrong answer costs 9 | |
|---|---|---|---|
| The guesser | all 10: 4 right, 6 wrong | 4 | 4 - 54 = -50 |
| The honest one | 3 right, 7 "I don't know" | 3 | 3 |
Under binary grading the guesser wins, even though the honest one never made anything up. Add a penalty for wrong answers and the order flips. The paper's proposed fix is exactly that: change how the main benchmarks are scored, for example "answer only if you're more than 90% sure; a wrong answer costs 9 points, 'I don't know' costs nothing".
What it looks like inside
Anthropic's interpretability team looked inside a real model (Claude 3.5 Haiku, 2025) and found something you might not expect. Saying "I can't answer" is the default. A circuit for it is on unless something turns it off.
Ask about Michael Jordan and a "known entity" feature fires and switches the default off, so the model answers. Ask about an unknown name, Michael Batkin, and nothing switches it off, so it declines. A hallucination is that switch misfiring: the name feels familiar, the feature fires, the default goes off, and now the model is committed to answering with nothing behind it. The researchers could trigger it on purpose. Forcing the "known" features on made the model claim, fairly consistently, that Michael Batkin plays chess.
Those three layers are one story at different zoom levels: what was in the data, how the training was scored, and what the misfire looks like inside. They also point to different fixes.
So what do we do about it?
The tempting fix is a model that refuses more. But a model that always says "I don't know" never hallucinates and is useless. What we want is a model that answers when it knows and holds back when it doesn't, which is harder to train and harder to measure.
Teaching it facts with fine-tuning sounds like another fix. It backfires: models pick up new facts that way more slowly than ones they already knew, and once they have, they hallucinate more. Put facts in the context instead.
That's the main defence, giving the model the relevant text and telling it to answer only from that (grounding). It cuts hallucinations a lot, though it can't promise every claim is backed up. Practitioners in 2024 still saw made-up facts in about 5 to 10% of outputs, and found it hard to get under 2% even on summaries. And a strict JSON schema won't save you: it controls the shape of an answer, not whether the value inside is real (structured output).
Some moves that help in a prompt:
- Say outright that "I don't know" is fine, and give it the exact words to use. For extraction, allow empty fields.
- For long documents (over about 20,000 tokens), have the model pull out word-for-word quotes first, then answer only from those.
- Ask for a supporting quote per claim, and drop claims without one.
And remember the clue from the start? The birthday changed every run. Facts a model really knows tend to come out the same each time. So run the same question a few times and compare; answers that wander are likely made up. Some detection methods are built on just that.
If you write your own evals, don't repeat the benchmark mistake. If "I don't know" scores zero and a wrong answer scores zero, you're rewarding the guessing you're trying to get rid of.
So, back to the belief we started with. Will the next bigger model stop? The layers say not by size alone. Arbitrary facts seen once stay hard to pin down, and as long as the scoring rewards a confident guess over an honest blank, training keeps teaching the model to give us a date. Whether the big benchmarks will change how they score is still open.
Further reading
- Why Language Models Hallucinate, Kalai, Nachum, Vempala and Zhang (OpenAI, Georgia Tech), 2025. The birthday test, the seen-once rule and the exam argument. The clearest "why" there is.
- Tracing the thoughts of a large language model, Anthropic, 2025. The can't-answer switch, with the Michael Batkin example.
- Extrinsic Hallucinations in LLMs, Lilian Weng, 2024. A long survey. Go here when you want detection methods and the fine-tuning result in detail.
- Reduce hallucinations, Anthropic, undated (checked 2026-09-23). Short and practical, with prompt examples you can copy.
- What We've Learned From A Year of Building with LLMs, Yan et al., 2024. How often it happens in real products, from people who shipped them.