Confidence calibration
Confidence calibration requires predictions sharing a reported confidence to have a matching frequency of correct class predictions.
For predicted class C, confidence S and observed label Y, the population condition is P(Y=C | S)=S, almost surely. For a class-probability vector, C is an argmax chosen with a declared tie rule and S is its probability. Confidence ECE groups S and compares accuracy with mean confidence. [1]
Pooling different predicted classes can conceal opposite errors; retaining the predicted label gives a different calibration requirement. [2]
Consider twenty synthetic binary observations: ten forecasts p=0.1 with no positive outcomes, and ten forecasts p=0.9 with eight positive outcomes. With class 1 predicted for p>=0.5, every confidence is 0.9 and 18/20 decisions are correct. Exact-confidence ECE is therefore 0. Yet the two predicted-label groups have accuracies 1 and 0.8; their count-weighted absolute confidence error is 0.1. Grouping by event probability also gives 0.1. [4]
A drive-failure probability and confidence that the chosen class is correct answer different questions. Specify which one a calibration chart evaluates. Finite sample agreement alone cannot establish a population property. [3]
Relations
Limitations
- A low pooled score need not imply reliable probabilities within each predicted class. [2]
Citations
- Guo, Pleiss, Sun and Weinberger. On Calibration of Modern Neural Networks. ICML 2017, section 2 equations 1-3.
- Gupta and Ramdas. Top-label calibration and multiclass-to-binary reductions. ICLR 2022; arXiv v4, section 2 equations 1-4 and Remark 2.
- Hesela: exact synthetic confidence, top-label and binary-event calibration example; model.py, test_model.py and results.json.
Sources & caveats
- Reviewed 2026-11-23: full primary-source sections identified in citations; terminology follows Gupta and Ramdas, not papers that use top-label as a synonym for pooled confidence.
- The twenty observations are a synthetic arithmetic example, not measured drive failures or a reproduction of neural-network benchmarks. Public code uses exact fractions and explicit positive-class tie breaking.