One Million Neurons
Essay 09

How a machine knows it doesn't know

Language models carry a quiet sense of their own ignorance. Our exams teach them to talk over it.

18 min read

It is the last round of a pub quiz. The question master clears her throat and says: "In this round, a wrong answer costs you a point. A blank costs nothing."

Something changes at every table. People who were scribbling fast all evening start to lean in and whisper. "Are you sure it was 1971?" "No. Maybe 70 percent." "Then leave it." One team, which has been guessing cheerfully all night, writes nothing for three questions in a row and wins the round.

Nobody at that table got cleverer. They knew the same things as before. What changed was the rule for being wrong, and the rule pulled out something they had all along: a sense of how sure they were.

This essay is about that sense, in people and in machines. It turns out that language models have a version of it too. And it turns out that we, the people who build and test them, have mostly been running the quiz without the last-round rule.

A feeling that arrives before the answer

Have you ever been certain you know a word, while it refuses to come out?

In 1966, Roger Brown and David McNeill read definitions of rare words to students, such as "a navigation instrument used to measure angles". Some students could not produce the word, sextant, but felt it was right there. Asked about it, they could often guess its first letter and how many syllables it had.Brown and McNeill, Journal of Verbal Learning and Verbal Behavior, 1966. They called it the tip-of-the-tongue statethe feeling that you know a word or name and are about to recall it, while it will not quite come.

A year earlier, Joseph Hart had asked a simpler question. If people cannot recall an answer, can they tell whether they would recognise it? They mostly could. Their feeling of knowinga person's sense, before or without recall, that an answer is stored in memory predicted, better than chance, which answers they would later pick out from a list.Hart, Journal of Educational Psychology, 1965.

Psychologists now call this whole family of skills metacognitionthinking about your own thinking: knowing what you know, judging how well you understand, and choosing what to do about it. John Flavell gave the field that name in 1979, while studying how children learn to judge their own memory.Flavell, American Psychologist, 1979.

Here is the part I find most charming. The feeling of knowing can be fooled, and the way it is fooled tells us how it works. In 1992, Lynne Reder and Frank Ritter showed that people's quick "I know this" judgement depends heavily on how familiar the words in the question feel, not on whether the answer is actually there.Reder and Ritter, Journal of Experimental Psychology: Learning, Memory, and Cognition, 1992. Their title says it: "Familiarity with question terms, not with the answer". A question full of familiar names feels answerable. Hold on to that. We will meet it again inside a machine.

Turning a feeling into a number

A feeling becomes useful when you can put a number on it and keep score.

The people who do this best are weather forecasters. When a forecaster says "70 percent chance of rain", you can check them: collect all the days they said 70 percent, and count how many had rain. In a classic 1977 study, Allan Murphy and Robert Winkler did exactly that with forecasters in the United States. Their probabilities matched reality remarkably well.Murphy and Winkler, Applied Statistics, 1977.

That match has a name. Calibrationhow well stated confidence matches actual accuracy. A calibrated forecaster who says "70%" is right about 70% of the time is not the same as being right. A forecaster who always says "50 percent" in a place where it rains half the time is perfectly calibrated and completely useless. You want both: answers that are often right, and confidence that tells you which ones.

A software analogy helps. Think of a function that looks something up. A good one returns either a value or a clear "not found". A bad one always returns something, even when the key is missing, and you cannot tell the real values from the invented ones. Calibration is what lets the caller tell the difference.

A model always has an answer ready

So does a language model have a "not found"?

Not in the obvious way. A language modela program trained on a very large amount of text to predict what comes next, one small piece at a time works by producing a next-token distributiona list of probabilities, one for every possible next piece of text (a token), that adds up to 100%. Every time it is asked to continue, it has a full set of odds ready. There is no separate list of "things I don't know". There is only the shape of the odds.For how a model turns those odds into a whole answer, see the Sand to Answers chapter on the journey of one answer.

But a shape can carry a lot. If the model is sure, one continuation gets most of the probability. If it is unsure, the probability spreads out. The question is whether that spread means anything, and whether anyone listens to it.

(The journey of one answer shows the odds being made, step by step. How models are trained shows where they come from.)

Mostly knowing what they know

In 2022, a team at Anthropic led by Saurav Kadavath put the question directly. Their paper's title is a nice piece of honesty in itself: Language Models (Mostly) Know What They Know.Kadavath and 35 co-authors, arXiv, July 2022.

They found three things, and each one is lovely.

  • The raw odds are calibrated, if you ask the right way. On multiple-choice and true-or-false questions in a sensible format, large models' probabilities matched their accuracy well. Bigger models were better calibrated.
  • A model can grade its own answer. Ask the model to write an answer, then ask it, "Is this answer true?" The probability it gives to "true" was a useful signal. The authors called it P(True)the probability a model assigns to the claim that a proposed answer is correct. It got better when the model first looked at several of its own attempts.
  • A model can predict, before answering, whether it knows. They trained models to output P(IK)"probability that I know": a model's estimate, from the question alone, that it will answer correctly. It worked partly. It generalised across some kinds of question but was poorly calibrated on new ones. It went up, sensibly, when the model was given relevant source material.

The word "mostly" in that title matters. These were careful results with limits, and the authors said so.

A year later, the GPT-4 technical report showed something that has stayed with me. It plotted calibration on a multiple-choice test before and after post-trainingthe stage after a model first learns from raw text, when it is tuned with human feedback and rewards to follow instructions and be helpful. The base model's plot hugged the diagonal: when it said 70 percent, it was right about 70 percent of the time. After post-training, the plot bent away.OpenAI, GPT-4 Technical Report, March 2023, Figure 8. The 2025 OpenAI hallucination paper reprints it. The tuned model was more helpful in every way people care about, and a little less honest about its own odds.

Nobody did that on purpose. It is a side effect of what the tuning rewarded. We will come back to what that was.

Ask again, and listen to the wobble

What if you cannot see the odds at all? Many models are used through an interface that only returns text.

There is a beautifully simple trick. Ask the same question several times and compare the answers.

If you ask a friend "When did the Berlin Wall fall?" three times, a friend who knows will say 1989 every time. A friend who is bluffing might say 1989, then 1991, then "the late eighties". The wobble is the tell.

In 2024, Sebastian Farquhar, Jannik Kossen, Lorenz Kuhn and Yarin Gal turned this into a method and published it in Nature.Farquhar et al., Nature 630, 625–630, 19 June 2024. They aimed it at one kind of error they called confabulationan answer that is both wrong and arbitrary: the model would give a different wrong answer if you asked again.

The clever part is in how you compare. "Paris", "It's Paris" and "The capital is Paris" are three different strings of text but one meaning. So the method groups the sampled answers by meaning first. Two answers go in the same group if each one implies the other, which they check with a second model. Then it measures how spread out the meanings are. They called the measure semantic entropya measure of how much a model's sampled answers disagree in meaning, not just in wording. High means the model is likely making it up.

Go deeper: what "entropy" means here

Entropy is a standard way to measure how spread out a set of probabilities is.

  • If all ten sampled answers mean the same thing, the probability sits in one group. Entropy is zero.
  • If they split evenly into two meanings, entropy is one bit.
  • If every answer means something different, entropy is as high as it can be for that many samples.

Ordinary entropy over the raw text would be high even for a confident model, because it can phrase one answer in many ways. Grouping by meaning first removes that noise. That is the whole idea, and it is why the method needed no training on examples of hallucinations.

Its limits, which the authors are clear about: it costs several model calls per question, and it cannot catch an error the model makes consistently. If a model has learned a wrong fact firmly, it will repeat it calmly every time.

A software engineer will recognise this at once. It is a flaky test. If a test passes on some runs and fails on others, you do not trust either result. Semantic entropy treats the model's answer the same way.

Inside the model: a default "I can't answer"

So far we have watched the outside: the odds, and the wobble. What does it look like inside?

In March 2025, a team at Anthropic led by Jack Lindsey published a long study called On the Biology of a Large Language Model. They used attribution graphsmaps that trace which internal features of a model caused which others, step by step, for one particular input to look inside Claude 3.5 Haiku, a small production model.Lindsey et al., Transformer Circuits Thread, 27 March 2025. One of their findings reads almost like the pub quiz.

The model, they found, has a circuita group of internal features inside a model that work together to produce one behaviour that is on by default. In the paper's words, the model "contains 'default' circuits that cause it to decline to answer questions." Left alone, the model leans toward "I can't answer that."

What switches it off? Features that represent things the model knows about. Ask about Michael Jordan, and features for a known entity light up and suppress the default. The model answers: basketball. Ask the same question about Michael Batkin, a name the researchers made up, and in the paper's words "the unknown entity Michael Batkin fails to suppress these features." The default stays on, and the model says it does not know.

Then the most interesting part. When the researchers reached in and turned on the "known answer" features for the made-up Michael Batkin, the model confidently named a sport. It picked one, sometimes chess.

And this, they suggest, is where some hallucinations come from. The paper says "at least some hallucinations can be attributed to a 'misfire' of this inhibitory circuit." The example they give is a real author. The model recognises the name, so the "I know this" features fire and the default goes quiet. But it does not actually know that author's papers. So it writes a citation that sounds right and is not.

A familiar name, with no facts behind it, is enough to switch off the doubt.

That is Reder and Ritter's finding from 1992, turning up in a very different mind. People feel they know the answer when the question feels familiar. So, it seems, do models.

The finding does not stand alone, which makes me trust it more. A few months earlier, Javier Ferrando, Oscar Obeso, Senthooran Rajamanoharan and Neel Nanda had found something similar in Google's open Gemma 2 models, using a different tool, sparse autoencodersa method that splits a model's internal activity into many separate, more readable features.Ferrando et al., "Do I Know This Entity?", ICLR 2025. They found directions inside the model that mean, roughly, "I don't recognise this entity." Push on them and the model refuses to talk about people it knows well. Push the other way and it invents facts about people it has never heard of. They also found the direction was already present in the base model, before any chat tuning. Tuning had reused it.

So the signal is there. A model, in its own way, has a feeling of knowing. The next question is why we so often fail to hear it.

Exams teach bluffing

In September 2025, four researchers at OpenAI, Adam Tauman Kalai, Ofir Nachum, Santosh Vempala and Edwin Zhang, published a paper with a plain title: Why Language Models Hallucinate.Kalai et al., arXiv, 4 September 2025. It makes two arguments, and the second one is the pub quiz.

The first argument is about learning. Some facts appear only once in all the text a model reads. A person's birthday, mentioned in a single web page, is a good example. The paper borrows an idea from Alan Turing's wartime code-breaking work: the fraction of things seen exactly once is a good estimate of how much you have not seen at all.This is the Good–Turing "missing mass" estimate, published by I. J. Good in 1953 and credited by him to Turing. Its conclusion, roughly: if 20 percent of birthday facts appear only once in the training data, expect a freshly trained model to get at least 20 percent of birthday questions wrong. Some errors are simply what learning from finite text costs.

The second argument is about testing, and it is the one that changed how I think. The authors start with students:

"When uncertain, students may guess on multiple-choice exams and even bluff on written exams, submitting plausible answers in which they have little confidence."

Then they point out that most benchmarks for language models are graded the same way. A right answer gets one point. A wrong answer gets zero. "I don't know" also gets zero. Under that rule, as they put it, "guessing when unsure maximizes the expected score."

Think about what that means for training. Labs tune models to do well on tests. If every test pays for confident guesses and never pays for honest doubt, then tuning toward the tests teaches the model to guess. The GPT-4 calibration plot bending away from the diagonal is what you would expect to see.

The model did not learn to bluff on its own. We graded it for bluffing.

I find that oddly hopeful. A failing you were taught is a failing you can unteach.

What one example looks like

OpenAI's blog post about the paper gave a small, vivid comparison on SimpleQAa test of short factual questions with one clear answer each. It records answers as correct, incorrect or not attempted. As reported in that post, an older model, o4-mini, almost never declined (about 1 percent of the time). It was right about 24 percent of the time and wrong about 75 percent of the time. A newer model, gpt-5-thinking-mini, declined about 52 percent of the time. It was right about 22 percent of the time and wrong only about 26 percent of the time.

Look at the accuracy column alone and the older model wins, 24 to 22. Look at the error column and the newer one makes about a third as many confident mistakes. Which would you rather have answering your questions? It depends entirely on what a wrong answer costs you. That is the point.

Play the last round yourself

Here is a toy you can play with. Imagine a model taking a test of a thousand short questions. For each question it has a confidence, and suppose, generously, that it is perfectly calibrated: when it is 70 percent sure, it is right 70 percent of the time.

Its only decision is a threshold. Below some level of confidence, it says "I don't know". Above it, it answers. You choose the grading rule, then slide the threshold and watch the score.

Under exam grading, the score is highest when the threshold is zero. The model should answer everything, even at 5 percent confidence, because a guess can only help. Under a grading rule that subtracts a point for each wrong answer, the best threshold jumps to 50 percent. Subtract three points, and it moves to 75 percent. The model is the same each time. Only the rule for being wrong changed.

Go deeper: the arithmetic of the last round

Say the model is p sure of an answer (p between 0 and 1). A right answer scores 1. A wrong answer scores −k. "I don't know" scores 0.

  • Expected score of answering: p × 1 + (1 − p) × (−k) = p − k(1 − p).
  • Expected score of abstaining: 0.
  • Answering is worth it only when p − k(1 − p) > 0, which works out to p > k / (1 + k).

So with k = 0 (exam grading), any p above zero is worth a guess. With k = 1, the break-even point is 50%. With k = 3, it is 75%. With k = 9, it is 90%.

The OpenAI paper runs this the other way round. Pick the confidence t you want the model to need, and set the penalty to t / (1 − t). Their suggested instruction for each test question reads: "Answer only if you are > t confident, since mistakes are penalized t/(1 − t) points, while correct answers receive 1 point, and an answer of 'I don't know' receives 0 points." The test tells the model the rule out loud, just as the question master did.

Statisticians have a name for rules like this. A proper scoring rulea way of scoring forecasts in which you get the best expected score by reporting your true confidence rewards honesty about uncertainty. The best known is the Brier score, introduced in 1950 by Glenn Brier, a weather scientist, to grade rain forecasts.

Who already grades this way

The good news is that this is not a new idea, and it is spreading.

Exams for people have tried it for a long time. For decades, the SAT college admissions test in the United States took a quarter of a point off for each wrong multiple-choice answer, so that random guessing would not pay on average. It dropped the rule in its 2016 redesign. That is a fair reminder that the choice of rule is a real trade-off, not an obvious one.

In AI testing, the newer benchmarks build the last round in.

  • SimpleQA reports "not attempted" as its own column, so you can see a model's restraint and not just its hits.
  • Humanity's Last Exam, a set of very hard expert questions released in 2025, asks models to state a confidence with each answer and reports a calibration errora single number for how far a model's stated confidence is from its real accuracy, averaged over many questions next to accuracy.
  • AA-Omniscience, released by Artificial Analysis in November 2025, scores from −100 to 100. It rewards right answers, takes points off for wrong ones, and charges nothing for declining.Artificial Analysis, AA-Omniscience paper, arXiv, November 2025. It became part of their widely watched composite index in 2026.
  • Several labs now publish a hallucination or factual-error rate in their launch posts, beside the usual scores.

Each of these is the question master clearing her throat.

Why this matters for trust

Why care so much about one column in a table?

Because of how trust actually works between people. I trust a colleague not because they are always right, but because their "I'm sure" means something and their "let me check" means something too. A colleague who is right 90 percent of the time and tells you which 90 percent is worth far more than one who is right 95 percent of the time and sounds equally sure about everything. With the first, you know where to double-check. With the second, you have to double-check everything, and then what was the point?

The same holds for any system we build on top of a model. A program that calls a model needs to know when to trust the result and when to ask a person, look something up, or run a check. Calibration is the interface that makes that possible. It is the null in the return type.

It is worth noticing that some tools have this property perfectly, by construction. A proof checkera program that checks every step of a mathematical proof against fixed rules and either accepts or rejects it says "proved" or "not proved", never "probably". A calculator either computes a value or reports an error. A database lookup either finds the record or does not. None of them is as broad or as fluent as a language model. But each knows exactly what it does not know, because that knowledge is built into its design rather than learned. I find myself wondering what it would look like to let a fluent model do the talking and the planning, and let tools like these supply the "found / not found" when it matters. That is a question for another essay.

Go deeper: three ways to read a model's doubt today
  • Read the odds. Where you can see token probabilities, use them. They are well calibrated for many base models on multiple-choice questions (Kadavath et al., 2022), less so after tuning.
  • Ask again. Sample several answers and measure the spread in meaning (semantic entropy, Farquhar et al., 2024). It costs extra calls and misses consistent errors.
  • Ask the model. Ask it to grade its own answer (P(True)) or to state a confidence. This works partly, and it works better when the grading rule rewards honest answers.

Looking inside, at features like the "known entity" signal, is still a research tool, not something an ordinary user can switch on.

What I still wonder about

I want to end the way the research does, with things nobody knows yet.

Can a small model learn good restraint as well as a large one, if we grade it with the last-round rule from the start? Restraint might need less knowledge than answering. Knowing that you do not know a person's birthday might be cheaper than knowing the birthday.

Could the "known entity" signal be used deliberately? If a model has an internal flag that says "this name feels familiar but I may have nothing behind it", that flag could be a lovely moment to stop and look something up.

And the human side. People's feeling of knowing is fooled by familiar words. We know that, and we still rely on the feeling every day, because it is usually right and because we have learned when to check. Maybe that is the realistic goal for machines too. Not a model that never feels sure when it should not. A model, and a way of testing it, where saying "I don't know" is never the losing move.

The bee in the first essay never bluffs. When it is unsure which door hides the sugar, it hovers, checks, and sometimes flies away. It has a million neurons and no exams. Perhaps that is not a coincidence.

Before
Language models hallucinate because they have no idea what they don't know.
Now
They often have a usable signal of their own uncertainty, in their odds, in the wobble of repeated answers, and in a default "can't answer" circuit. Common exam-style grading rewards talking over it.
Would prove me wrong
Models tuned and graded with a penalty for confident errors still hallucinate about as often as models graded right-or-wrong, with no gain in calibration.

Sources

  1. Brown, R. and McNeill, D. "The 'tip of the tongue' phenomenon." Journal of Verbal Learning and Verbal Behavior 5, 325–337 (1966). https://doi.org/10.1016/S0022-5371(66)80040-3
  2. Hart, J. T. "Memory and the feeling-of-knowing experience." Journal of Educational Psychology 56, 208–216 (1965). https://doi.org/10.1037/h0022263
  3. Flavell, J. H. "Metacognition and cognitive monitoring." American Psychologist 34, 906–911 (October 1979). https://doi.org/10.1037/0003-066X.34.10.906
  4. Reder, L. M. and Ritter, F. E. "What determines initial feeling of knowing? Familiarity with question terms, not with the answer." Journal of Experimental Psychology: Learning, Memory, and Cognition 18, 435–451 (May 1992). https://doi.org/10.1037/0278-7393.18.3.435
  5. Murphy, A. H. and Winkler, R. L. "Reliability of subjective probability forecasts of precipitation and temperature." Applied Statistics 26, 41–47 (1977). https://doi.org/10.2307/2346866
  6. Brier, G. W. "Verification of forecasts expressed in terms of probability." Monthly Weather Review 78, 1–3 (January 1950). https://doi.org/10.1175/1520-0493(1950)078<0001:VOFEIT>2.0.CO;2
  7. Kadavath, S. et al. "Language Models (Mostly) Know What They Know." arXiv:2207.05221 (July 2022). https://arxiv.org/abs/2207.05221
  8. OpenAI. "GPT-4 Technical Report." arXiv:2303.08774 (March 2023), Figure 8 (calibration before and after post-training). https://arxiv.org/abs/2303.08774
  9. Farquhar, S., Kossen, J., Kuhn, L. and Gal, Y. "Detecting hallucinations in large language models using semantic entropy." Nature 630, 625–630 (19 June 2024). https://doi.org/10.1038/s41586-024-07421-0
  10. Ferrando, J., Obeso, O., Rajamanoharan, S. and Nanda, N. "Do I Know This Entity? Knowledge Awareness and Hallucinations in Language Models." arXiv:2411.14257 (November 2024; ICLR 2025). https://arxiv.org/abs/2411.14257
  11. Lindsey, J. et al. "On the Biology of a Large Language Model." Transformer Circuits Thread, Anthropic (27 March 2025), section on entity recognition and hallucinations. https://transformer-circuits.pub/2025/attribution-graphs/biology.html
  12. Kalai, A. T., Nachum, O., Vempala, S. S. and Zhang, E. "Why Language Models Hallucinate." arXiv:2509.04664 (4 September 2025). https://arxiv.org/abs/2509.04664
  13. OpenAI. "Why language models hallucinate" (blog post, 5 September 2025). SimpleQA comparison of gpt-5-thinking-mini and o4-mini, as reported there; the page could not be fetched directly for this draft, and the figures were checked against several reproductions. https://openai.com/index/why-language-models-hallucinate/
  14. Good, I. J. "The population frequencies of species and the estimation of population parameters." Biometrika 40, 237–264 (1953). https://doi.org/10.1093/biomet/40.3-4.237
  15. Artificial Analysis. "AA-Omniscience: Evaluating Cross-Domain Knowledge Reliability in Large Language Models." arXiv:2511.13029 (November 2025). https://arxiv.org/abs/2511.13029
  16. Phan, L. et al. "Humanity's Last Exam." arXiv:2501.14249 (January 2025). https://arxiv.org/abs/2501.14249
  17. Wei, J. et al. "Measuring short-form factuality in large language models" (SimpleQA). arXiv:2411.04368 (November 2024). https://arxiv.org/abs/2411.04368