{
  "slug": "top-label-calibration",
  "term": "Top-label calibration",
  "aliases": [],
  "definition": "Top-label calibration requires correctness frequency to match reported confidence conditional on both that confidence and the predicted class.",
  "note": "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. [gupta-ramdas]\n\nIn 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. [worked]\n\nFor 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. [worked]\n\nTesting only the predicted class leaves other components of a multiclass probability vector unchecked; full-vector calibration is a separate requirement. [vaicenavicius]",
  "related": [
    "probability-calibration",
    "expected-calibration-error",
    "brier-score",
    "confidence-calibration"
  ],
  "citations": [
    {
      "id": "gupta-ramdas",
      "title": "Gupta and Ramdas. Top-label calibration and multiclass-to-binary reductions. ICLR 2022; arXiv v4, section 2 equations 1-4 and Remark 2.",
      "url": "https://arxiv.org/pdf/2107.08353v4",
      "accessed": "2026-11-23"
    },
    {
      "id": "vaicenavicius",
      "title": "Vaicenavicius et al. Evaluating model calibration in classification. AISTATS 2019, sections 3.1-3.2 and 4.1.",
      "url": "https://proceedings.mlr.press/v89/vaicenavicius19a/vaicenavicius19a.pdf",
      "accessed": "2026-11-23"
    },
    {
      "id": "worked",
      "title": "Hesela: exact synthetic confidence, top-label and binary-event calibration example; model.py, test_model.py and results.json.",
      "url": "https://hesela.dev/research/calibration-conditioning/results.json",
      "accessed": "2026-11-23"
    }
  ],
  "provenance": [
    "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."
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "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.",
      "citationIds": [
        "vaicenavicius"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-23"
}
