Glossary

Glossary term · · 3 min read

Calibration

A model assigns customer tickets to three departments: billing, technical support, or other requests. It reports a percentage confidence for each decision. You want to send less certain cases to a person, but what does “90%” actually mean? The percentage of correct decisions alone does not tell you whether those numbers can be trusted.

Calibration describes how closely stated probabilities match the frequency of correct predictions. Among many decisions with 80% confidence, about 80% should be correct. This does not promise that a particular answer is correct. Guo and colleagues define this calibration of confidence in the selected category in §2 of On Calibration of Modern Neural Networks.

Two rows of ticket cards compared with movable confidence markers: matching stated confidence to observed outcomes.

The same decisions, different numbers

Consider our own simplified example. There are two groups of 10 tickets; within each, the model reports the same confidence. A person has checked the actual departments:

GroupInitial confidenceCorrect decisionsConfidence matched to this sample
A: 10 tickets90%8/10 = 80%80%
B: 10 tickets80%6/10 = 60%60%

Overall, the model is correct 14 times out of 20, or 70%, although its mean confidence is 85%. Lowering the reported numbers to 80% and 60% matches them to the observations. It fixes no decisions: there are still 14 correct predictions. We gain more useful information when selecting cases for manual review.

Also try 90% and 50%. Mean confidence then equals 70%, the same as overall accuracy. Yet the first group overstates confidence by 10 percentage points and the second understates it by 10. The average hides two mismatches. That is why we compare correct predictions at different confidence levels rather than stopping at one average (§2, evaluation in groups).

Choose a variant: is matching the averages enough?

The displayed mean absolute gap is (gap in A + gap in B)/2, without minus signs; the groups have equal sizes. This is a calculation for our sample, not proof of perfect model calibration.

Where the adjustment comes from

In practice, an adjustment is fitted on a separate set of examples with known answers, then checked on a Test Set that was not used for this purpose. You must not match the numbers to final test results and claim success on that same basis. The authors assume this separation of data in §4–5.

Temperature changes the probability distribution; manually increasing it does not by itself establish better calibration. Monte Carlo Dropout can provide uncertainty estimates, but their agreement with actual outcomes also needs checking.

Limitation: 10 cases per group is a small sample. Even a model with a true 80% chance of being correct need not get exactly 8 right. Matching this sample does not guarantee similar results for new kinds of tickets. A chat model's verbal statement “I am 90% sure” does not automatically become a verified probability either.

The text and illustration were prepared with AI assistance. The tickets, numbers, and demo variants are our own educational example, not measurements of a particular LLM or an implemented calibration method.

I use AI-generated content as part of my daily learning process.