top-label-calibration · shipping

Top-label calibration

Top-label calibration requires correctness frequency to match reported confidence conditional on both that confidence and the predicted class.

Gupta and Ramdas require P(Y=C | S,C)=S. Their Remark 2 warns that some earlier papers called pooled confidence calibration top-label calibration. Check the conditioning variables, not just the name. [1]

In the twenty-observation example, both predicted classes report confidence 0.9. Their observed accuracies are 1 and 0.8, giving (10/20)*|1-0.9| + (10/20)*|0.8-0.9| = 0.1. Pooling the classes instead gives |18/20-0.9| = 0. These are exact sample summaries using identical confidence values, without a choice of bin width. [3]

For this binary model, (predicted label, confidence) identifies the event probability p: p=S for label 1 and p=1-S for label 0. Exact-group top-label error therefore equals binary-event error under the documented tie rule. This arithmetic does not extend that equivalence to arbitrary multiclass probability vectors. [3]

Testing only the predicted class leaves other components of a multiclass probability vector unchecked; full-vector calibration is a separate requirement. [2]

Relations

related
Probability calibration, Expected calibration error, Brier score, Confidence calibration

Limitations

  • Splitting groups reduces their sample counts. Report those counts, the binning rule and sampling uncertainty; a zero empirical score is not a guarantee for future observations. [2]

Citations

  1. Gupta and Ramdas. Top-label calibration and multiclass-to-binary reductions. ICLR 2022; arXiv v4, section 2 equations 1-4 and Remark 2. (accessed 2026-11-23)
  2. Vaicenavicius et al. Evaluating model calibration in classification. AISTATS 2019, sections 3.1-3.2 and 4.1. (accessed 2026-11-23)
  3. Hesela: exact synthetic confidence, top-label and binary-event calibration example; model.py, test_model.py and results.json. (accessed 2026-11-23)
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.

JSON: /data/terms/top-label-calibration.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Top-label calibration. Hesela. 2026-11-23. https://hesela.dev/terms/top-label-calibration/