Calibration in Context: A Case Study with Score Decompositions

Johannes ResinarXiv 2026

TL;DR

Imagine a weather forecaster who predicts a 30% chance of rain every single day—assuming it rains on 30% of days historically, they are perfectly "calibrated," yet completely useless for planning your picnic. In machine learning, an obsession with standalone calibration metrics can trick us into praising recalibration methods that quietly wreck a model's actual predictive power. By reviving a classic statistical tool—score decompositions—and pairing it with smoothed isotonic regression, this paper shows how we can make multi-class classifiers trustworthy without giving them partial amnesia.

What Problem Does This Paper Address?

When an AI outputs probabilities, we want it to be calibrated: if it says it is 80% confident, it should be right 80% of the time. Recently, ML researchers have leaned heavily on standalone "calibration error" metrics to evaluate and fix models. For instance, a striking recent study by Gupta and Ramdas (2022) claimed that when recalibrating multi-class image classifiers one class at a time using histogram binning, skipping the final normalization step (meaning the output probabilities no longer sum to 1!) dramatically improved calibration error.

Aside from the headache of making decisions with probabilities that don't add up to 100%, focusing exclusively on calibration ignores discrimination (or resolution)—the model's ability to actually tell classes apart. Weather forecasters solved this decades ago using proper scoring rules (like the Brier score), which evaluate overall predictive performance and mathematically decompose into three parts: $$\text{Total Score} = \text{Miscalibration} - \text{Discrimination} + \text{Uncertainty}$$ (Lower total scores are better: you want low miscalibration and high discrimination.) This paper brings that holistic lens to multi-class ML classifiers to see what really happens under the hood during recalibration.

Methods

To evaluate and recalibrate multi-class classifiers without arbitrary tuning parameters (like choosing bin widths in histograms), the author adapts isotonic regression—a non-parametric, tuning-free technique that fits a monotonic, step-like curve to the data.

  • Score Decomposition: The author estimates the Brier score's miscalibration (MCB) and discrimination (DSC) components using isotonic regression applied class-wise (and in a normalized variant), providing a consistent, parameter-free diagnostic tool.
  • Smoothed Isotonic Regression (SIR): Standard isotonic regression outputs piecewise-constant steps, which discretizes probabilities and throws away fine-grained ranking information. To fix this, the author introduces a simple linear interpolation anchored at the medians of those data-driven bins, smoothing the staircase into a continuous ramp. Both normalized (N-SIR) and unnormalized class-wise (CW-SIR) versions are tested alongside standard isotonic regression (IR) and histogram binning (HB).
Figure 1: Isotonic fit (black) and smoothing via linear interpolation anchored at bin medians (blue).

Datasets

Rather than training models from scratch, the study reexamines the exact raw model predictions from the supplementary material of Gupta and Ramdas (2022). This includes calibration and test sets on CIFAR-10 and CIFAR-100 across seven standard image classification architectures (ResNet-50, ResNet-110, WideResNet, and DenseNet-121, trained with either Brier score or focal loss). No new benchmarks are introduced.

Key Insights and Ideas

  • Goodhart’s Law strikes calibration: Optimizing purely for calibration error can actively sabotage a model. Unnormalized histogram binning (CW-HB) achieves near-zero miscalibration simply by lumping distinct predictions into coarse buckets—destroying the model's discrimination ability in the process.
  • Discretization hurts discrimination: Even tuning-free isotonic regression (CW-IR) loses a bit of discrimination because its flat, step-function segments merge slightly different probabilities into the exact same number.
  • Smoothing + Normalization is the sweet spot: Linearly interpolating the isotonic steps (N-SIR) keeps probabilities distinct and normalized to sum to one, giving you improved calibration for free without sacrificing the base model's hard-earned discrimination.

Key Results

Looking at the Brier score decompositions and accuracy across the seven base models reveals a stark story:

  • The Histogram Binning Trap: On CIFAR-10, CW-HB slashes class-wise miscalibration from 0.063 down to 0.009 (all scores $\times 100$). Sounds great—until you see that discrimination plunges from 8.282 to 7.177. Overall Brier score more than doubles (worsening from 0.781 to 1.832), and classification error roughly doubles as accuracy drops from 95.1% to 89.0%. On CIFAR-100, it's even more dramatic: CW-HB causes accuracy to plummet from 77.5% to 48.3%. Normalizing histogram binning (N-HB) recovers part of the Brier score, but accuracy remains stuck at 89.0% and 48.3%.
  • Smoothed Isotonic Wins: Normalized Smoothed Isotonic Regression (N-SIR) achieves the best overall Brier score on both CIFAR-10 (0.764) and CIFAR-100 (0.320). It reduces miscalibration (0.063 $\rightarrow$ 0.047 on CIFAR-10; 0.039 $\rightarrow$ 0.033 on CIFAR-100) while completely preserving base discrimination (8.283 and 0.703) and maintaining top-tier accuracy (95.0% and 77.3%).
MCB-DSC plots for CIFAR-10 (left) and CIFAR-100 (right). Up and to the left is better (high discrimination, low miscalibration). Notice how CW-HB (solid squares) crashes to the bottom-left, sacrificing massive discrimination for low miscalibration, while isotonic methods cluster near the top.

Limitations and Future Work

This paper is a focused empirical case study on two vision datasets and class-wise recalibration methods rather than an exhaustive benchmark. Notably, estimating score components in finite samples can introduce statistical biases—a known quirk of score decompositions in meteorology. In future work, the author plans to investigate the theoretical and statistical properties (including potential finite-sample biases) of these isotonic estimators, and expand the evaluation to broader classification tasks and recalibration techniques.

Summary updated

BibTeX
@misc{resin2026calibration,
  author = {Johannes Resin},
  title = {{Calibration in Context: A Case Study with Score Decompositions}},
  year = {2026},
  eprint = {2611.37445},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37445},
}
Figure