IN THIS BREAKDOWN · 10 SECTIONS
You can read 23% of this breakdown.
The paper in one minute
A model is calibrated when its confidence matches how often it is right: among predictions made with 0.8 confidence, about 80% are correct. The authors observe that a 5-layer LeNet from 1998 is close to calibrated on CIFAR-100, while a 110-layer ResNet from 2016 is more accurate but much more confident than it should be.
They measure calibration two ways. A reliability diagram sorts predictions into confidence bins and plots each bin's accuracy against its confidence; a calibrated model follows the diagonal. Expected calibration error (ECE) summarizes the gaps: the average difference between accuracy and confidence across bins, weighted by how many predictions fall in each.
Experiments on CIFAR-100 tie miscalibration to recent training practice. ECE rises with depth and width, rises with batch normalization, and falls as weight decay increases, even past the point where more weight decay hurts accuracy. The explanation offered is that networks keep reducing training loss by growing more confident after they classify the training set correctly; in one training curve, test loss overfits while test error keeps improving.
The authors then compare post-hoc calibration methods, all fitted on a held-out validation set: histogram binning, isotonic regression, Bayesian binning into quantiles, and three versions of Platt scaling (matrix, vector and temperature). Temperature scaling divides every logit by a single number T fitted by minimizing validation log loss. Because dividing by a positive number does not change which class has the largest logit, predictions and accuracy stay the same; only confidence changes. Across 15 image models and 4 text models, temperature scaling was usually the best method or close to it, cut ECE on every vision model, and beat more flexible scaling methods that can overfit.
Research notes: the problem, approach and results
ECE of a 110-layer ResNet on CIFAR-100 before and after temperature scaling (Table 1)
vision rows where temperature scaling has the lowest ECE of the six methods; it beats uncalibrated in all 15 (our count of Table 1)
predictions changed by temperature scaling: dividing logits by one positive number keeps the ranking, so accuracy is identical
A classifier's confidence is useful only if it means what it says: of predictions made at 80% confidence, about 80% should be right. Downstream systems use confidence to decide when to trust a prediction, hand off to a person or combine with other signals.
Measure calibration with reliability diagrams and expected calibration error across modern image and text classifiers, study which training choices cause miscalibration, and compare post-hoc fixes, including temperature scaling: divide all logits by one number fitted on validation data.
Modern networks are overconfident, with ECE typically 4% to 10% and up to 16.5% on CIFAR-100, and depth, width, batch normalization and less weight decay make it worse. Temperature scaling cut ECE on every vision model tested, often below 2%, while leaving accuracy unchanged.
Why it matters to an FDE
Thresholds assume calibration. "Auto-approve when confidence is above 0.9" works only if 0.9 means roughly 90% correct. On an overconfident model, that threshold lets through far more errors than the number suggests. Before setting any confidence-based routing, check a reliability diagram on validation data from the customer's distribution.
The fix is cheap and safe. Temperature scaling needs a few thousand labeled validation examples, one parameter and a line of code at inference. It cannot change which answer the model gives, so accuracy metrics and downstream behavior that depend only on the top answer are untouched. That makes it easy to ship.
Calibration lowers coverage. Once confidence is honest, fewer predictions clear a high threshold. In our simulation, the share of predictions above 0.9 dropped from 30% to 1% after calibration, and their accuracy rose from 65% to 97%. Set expectations with the customer: calibrated thresholds mean more cases for review, and the reviewed cases are the right ones.
It applies to language models. Token probabilities and classifier heads on top of LLMs (routers, guardrail classifiers, yes/no judges) are used as confidence all the time. The same check and the same one-parameter fix apply, and routing systems that escalate low-confidence cases depend on it.
Recalibrate after drift. Calibration is fitted to a distribution. When inputs shift, or the model is fine-tuned or replaced, refit the temperature and recheck the reliability diagram.
Understand the mechanism. Try it on a real problem.
Unlock this breakdown and 290 more papers.
Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.
6 months · One payment · No auto-renewal
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦2 results tables
- ?5 interview questions with answers
- 03Key takeaways
Definitions, the causes, the six methods, temperature scaling's results, and two misreadings
Free account - 04How it works
Metrics, the capacity and regularization experiments, the six methods and the datasets
Premium - 05The numbers that matter
Table 1's ECE before and after each method, where temperature scaling wins and where it does not
Premium - 06Try it yourself
Count Table 1's winners, fit a temperature on a simulated model, and see two ways ECE misleads
Premium - 07Where it breaks
Same-distribution validation, ECE's blind spots, top-class confidence only, and causes not proven
Premium - 08Using it on a deployment
Check calibration before thresholds, fit a temperature, recalibrate on change, report coverage
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
