THIS EXPLANATION
THE ROOM
CDA·46 Computing, Data & AI 6 MIN · 8 STATIONS

Confident model errors

A Socratic walk-through of confident model errors — reasoned out one step at a time, not lectured.

abcdefgh
a

The question we started with

THE QUESTION #

Why does a language model deliver an invented fact in exactly the tone it uses for a true one?

Ask a model for a real citation and you get an author, a year, a journal, a page range. Ask for one that does not exist and you get an author, a year, a journal, a page range. There is no tremor, no hedge, no shift in register at the boundary between what the model has and what it does not.

The natural reaction is that it should know — if it is uncertain, why not sound uncertain? But that smuggles in an assumption worth exposing: that hesitancy is caused by uncertainty. In a person that is roughly true, because fluency is limited by access to the thing being described. Is it true of a text generator? What, mechanically, would make the sentence come out differently?

b

Reasoning it through

REASONING #

Start with what the model produces. At each step it emits a distribution over possible next tokens, and that distribution has a shape — sometimes concentrated, sometimes spread. That shape is often called confidence, and it is a real quantity. But notice what it is confidence about: which continuation is likely under the distribution the model learned. It is not a measurement of the world, and no channel exists by which the world could have entered it at generation time.

So separate two things we habitually merge. The answer and the confidence attached to it are both outputs of the same process; the confidence is not independent evidence about the answer, and it can be wrong in exactly the way the answer can be wrong.

That gives us the tractable question. Not "is the model confident?" but "when it says eighty percent, is it right eighty percent of the time?" That property is calibration: a calibrated system's stated confidences match observed frequencies. Calibration is orthogonal to accuracy — a forecaster who says forty percent chance of rain and is right forty percent of the time is perfectly calibrated and not very accurate, which is still useful. The dangerous combination is the reverse: high stated confidence, lower observed accuracy.

Which is, empirically, where modern neural networks sit. Guo and colleagues showed in 2017 that as networks got deeper and more accurate they also got systematically worse calibrated than the smaller networks preceding them — reliably overconfident, with the gap widening at the high end. Accuracy and calibration were moving in opposite directions while everyone watched only one of them. In-distribution the problem is partly fixable and cheaply so: temperature scaling, a single parameter flattening the output distribution after training, recovers much of the calibration.

Now push on "in-distribution", because it is doing heavy lifting. Ovadia and colleagues found in 2019 that calibration degrades badly under distribution shift, and — more awkward — that methods looking well calibrated on held-out test data do not keep their advantage once the data moves. The fix works precisely where you least need it.

Why should that be? The useful distinction is between two kinds of uncertainty. Aleatoric uncertainty is irreducible noise in the world: a fair coin, an ambiguous photograph, a question with two defensible answers. More data does not remove it. Epistemic uncertainty is the model's own ignorance — about parameters, about regions of input space it has barely seen — and more data does reduce it. A distribution over outputs can express the first; it has no natural way to express the second. Nothing in a softmax says "I have never seen anything like this before", so an input from nowhere still yields a confident-looking distribution.

Apply that to a fabricated citation and the puzzle dissolves. Fluent, authoritative academic prose is what the training data looks like; producing it is the default register, not a signal earned by checking something. There is no lookup step that succeeded or failed, so there is no failure for the tone to reflect.

c

The analogy

THE ANALOGY #
THE FIGURE

Think of a shop till that prints every receipt in the same crisp typeface, whether the price came from the barcode database or from a clerk who guessed. The typeface is a property of the printer, not of the price. A customer reading confidence into the neatness of the print is treating a feature of the machine as evidence about the number.

WHERE IT BREAKS DOWN

The till has a real database and a clean internal boundary between a price it looked up and a price it was told, so it could in principle print the two differently — whereas a language model has no such boundary to report, because generating a remembered fact and generating a plausible one are the same operation.

d

Clarifying the model

THE MODEL #

Three refinements hold this together.

First, "confidence" names two quantities that are easy to conflate: the token-level probability the model assigns, and the verbalised confidence — the model writing "I am fairly sure". These are produced differently and can disagree, so a hedged sentence is not a readout of the internal distribution, and a fluent one is not evidence the distribution was sharp.

Second, training for helpfulness can move calibration. OpenAI reported in the GPT-4 system card that the pre-trained model was well calibrated on a multiple-choice benchmark and noticeably less so after post-training with human feedback — a plausible consequence of optimising for responses people rate well, since people rate confident answers well. Calibration is a property that can be trained away without anyone intending it.

Third, an honest boundary. Calibration is one lens on confident errors, not the whole account — fabrication also has causes in what the training data contained, in objectives that reward guessing over abstaining, and in whether retrieval is wired in at all. And the field is active rather than settled: ensembles, self-consistency, conformal prediction and abstention training all improve matters, none solves it, and all degrade under the same distribution shift that broke the simpler fixes.

The practical consequence is blunt. Since fluency belongs to the generator and confidence is another model output rather than evidence about the world, an answer's tone carries essentially no information about whether it is true — and the only reliable check is external.

e

A picture of it

THE PICTURE #
Confident model errors
Confident model errors This is a reliability diagram, drawn schematically to show the shape rather than to report measured values from any one model. The straight line running corner to corner is perfect calibration -- claims made at eighty percent turn out right eighty percent of the time. The lower curve is the typical pattern for a modern network: below the diagonal everywhere, so stated confidence overstates accuracy at every level, with the vertical gap between the lines being the overconfidence. The right-hand end is the important part -- the gap is widest exactly where the model sounds most certain, and widens further on inputs unlike the training data. {"generator":"mermaid-svg-renderer@3.2.1","source":"../Socrates/.diagram-cache/_src/confident-model-errors.md","sourceIndex":1,"sourceLine":4,"sourceHash":"9520aca75c61799926eaecb3b07f4f966be05265235b657e54a164c9b231951f","diagramType":"xychart","layoutVariant":"source","repairedDuplicateIds":[],"motion":"entrance-with-reduced-motion-fallback","presentation":"editorial","attempt":1,"viewBox":{"x":0,"y":0,"width":795,"height":668},"qa":{"passed":true,"findings":[]}} 50 60 70 80 90 100 Confidence the model states 100 90 80 70 60 50 40 30 20 10 0 Observed accuracy

How to readThis is a reliability diagram, drawn schematically to show the shape rather than to report measured values from any one model. The straight line running corner to corner is perfect calibration — claims made at eighty percent turn out right eighty percent of the time. The lower curve is the typical pattern for a modern network: below the diagonal everywhere, so stated confidence overstates accuracy at every level, with the vertical gap between the lines being the overconfidence. The right-hand end is the important part — the gap is widest exactly where the model sounds most certain, and widens further on inputs unlike the training data.

f

What became clearer

WHAT CLEARED #
WHAT CLEARED

The model's confidence is a number it produces, not a measurement it takes, so it can be as wrong as the answer it accompanies. Against observed frequencies, modern networks are typically overconfident, and the gap grows on inputs unlike their training data — because a distribution over outputs can express noise in the world but has no way to express the model's own ignorance. The fabricated citation arrives in the same register as a true one for a simple reason: that register belongs to the generator, and nothing in the process ever consulted the world to make it waver.

g

Where to go next

ONWARD #
  • How conformal prediction converts a model's scores into sets with a guaranteed coverage rate.
  • Why an ensemble of independently trained models captures epistemic uncertainty a single model cannot.
h

Key terms

TERMS #
TermWhat it means
Calibrationthe property that stated confidences match observed frequencies, so claims made at eighty percent are right about eighty percent of the time.
Aleatoric uncertaintyirreducible randomness or ambiguity in the data itself, which more data cannot remove.
Epistemic uncertaintythe model's own ignorance about parameters or unfamiliar inputs, which more data can in principle reduce.
Temperature scalinga one-parameter post-hoc adjustment that flattens a model's output distribution to improve calibration without changing its ranking of answers.

Every term the collection defines is gathered in the glossary.

Nearby on the shelf

4