Skip to main content
QUICK REVIEW

[Paper Review] Mitigating Bias in Calibration Error Estimation

Rebecca Roelofs, Nicholas Cain|arXiv (Cornell University)|Dec 15, 2020
Adversarial Robustness in Machine LearningComputer Science37 references23 citations
TL;DR

This paper proposes a framework to quantify and reduce statistical bias in calibration error estimation for machine learning models. It identifies equal-mass binning and a novel monotonicity-preserving estimator, ECE_sweep, as superior to standard equal-width binning, significantly improving recalibration method selection and miscalibration detection.

ABSTRACT

For an AI system to be reliable, the confidence it expresses in its decisions must match its accuracy. To assess the degree of match, examples are typically binned by confidence and the per-bin mean confidence and accuracy are compared. Most research in calibration focuses on techniques to reduce this empirical measure of calibration error, ECE_bin. We instead focus on assessing statistical bias in this empirical measure, and we identify better estimators. We propose a framework through which we can compute the bias of a particular estimator for an evaluation data set of a given size. The framework involves synthesizing model outputs that have the same statistics as common neural architectures on popular data sets. We find that binning-based estimators with bins of equal mass (number of instances) have lower bias than estimators with bins of equal width. Our results indicate two reliable calibration-error estimators: the debiased estimator (Brocker, 2012; Ferro and Fricker, 2012) and a method we propose, ECE_sweep, which uses equal-mass bins and chooses the number of bins to be as large as possible while preserving monotonicity in the calibration function. With these estimators, we observe improvements in the effectiveness of recalibration methods and in the detection of model miscalibration.

Motivation & Objective

  • To identify and quantify statistical bias in the widely used ECE_bin estimator for model calibration.
  • To evaluate how bias in calibration error estimation affects the selection and effectiveness of recalibration techniques.
  • To develop a simulation-based framework to estimate bias under realistic model confidence score distributions.
  • To compare multiple calibration error estimators and identify the least biased ones for practical deployment.
  • To improve the reliability of model calibration assessment in high-stakes applications like healthcare and autonomous systems.

Proposed method

  • Develops a bias-by-construction (BBC) framework that synthesizes model confidence scores with statistics matching real neural networks on CIFAR-10, CIFAR-100, and ImageNet.
  • Uses maximum likelihood fitting to estimate the true calibration error (TCE) analytically in simulated data, enabling direct bias computation.
  • Compares seven estimators: ECE_bin (equal-width bins), ECE_sweep (equal-mass bins with monotonicity constraint), ECE_debias (debiased estimator), and KDE (kernel density estimator).
  • Employs equal-mass binning to reduce bias, especially in perfectly calibrated models, by avoiding sparsity in bins with few samples.
  • Introduces ECE_sweep as a new estimator that selects the maximum number of bins while preserving monotonicity in the calibration curve.
  • Evaluates estimators across multiple model architectures and datasets to assess bias, variance, and impact on recalibration decisions.

Experimental results

Research questions

  • RQ1How does statistical bias in ECE_bin vary across different model architectures and dataset distributions?
  • RQ2What is the magnitude and direction of bias in ECE_bin when estimating calibration error for perfectly calibrated models?
  • RQ3How do different binning strategies—equal-width versus equal-mass—impact estimator bias?
  • RQ4Can a new estimator, ECE_sweep, reduce bias while maintaining monotonicity in the calibration function?
  • RQ5How does estimator bias affect the selection of optimal recalibration methods in practice?

Key findings

  • ECE_bin with equal-width bins exhibits large, systematic bias even for perfectly calibrated models, often overestimating calibration error.
  • Equal-mass binning reduces bias significantly compared to equal-width binning, especially in low-sample regimes.
  • ECE_sweep, which uses equal-mass bins and selects the maximum number of bins while preserving monotonicity, shows lower bias than ECE_bin and outperforms ECE_debias in realistic settings.
  • The debiased estimator (ECE_debias) has lower bias than ECE_bin but is outperformed by ECE_sweep in practical scenarios due to its sensitivity to score distribution skew.
  • Using ECE_sweep instead of ECE_bin improves recalibration method selection in 7 out of 10 cases, compared to only 3 out of 10 with ECE_bin, as shown in Table 1.
  • ECE_sweep is more sensitive than ECE_bin at detecting model miscalibration, particularly in low-sample or skewed confidence score regimes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.