Skip to main content
QUICK REVIEW

[Paper Review] Local Calibration: Metrics and Recalibration

Rachel Luo, Aadyot Bhatnagar|arXiv (Cornell University)|Feb 22, 2021
Machine Learning and Data ClassificationComputer Science5 citations
TL;DR

This paper introduces Local Calibration Error (LCE), a metric that measures prediction reliability in localized neighborhoods using kernel-based similarity in a pretrained feature space and confidence binning. It proposes LoRe, a post-hoc recalibration method that reduces LCE, improving fairness and decision-making in image and tabular classification tasks without prior group knowledge, outperforming global calibration methods in downstream tasks.

ABSTRACT

Probabilistic classifiers output confidence scores along with their predictions, and these confidence scores should be calibrated, i.e., they should reflect the reliability of the prediction. Confidence scores that minimize standard metrics such as the expected calibration error (ECE) accurately measure the reliability on average across the entire population. However, it is in general impossible to measure the reliability of an individual prediction. In this work, we propose the local calibration error (LCE) to span the gap between average and individual reliability. For each individual prediction, the LCE measures the average reliability of a set of similar predictions, where similarity is quantified by a kernel function on a pretrained feature space and by a binning scheme over predicted model confidences. We show theoretically that the LCE can be estimated sample-efficiently from data, and empirically find that it reveals miscalibration modes that are more fine-grained than the ECE can detect. Our key result is a novel local recalibration method LoRe, to improve confidence scores for individual predictions and decrease the LCE. Experimentally, we show that our recalibration method produces more accurate confidence scores, which improves downstream fairness and decision making on classification tasks with both image and tabular data.

Motivation & Objective

  • To address the gap between global calibration metrics (like ECE) and the ideal of individual prediction calibration, which is unattainable due to single-observation constraints.
  • To develop a calibration metric that estimates reliability at the individual prediction level by aggregating errors over similar samples in a feature space.
  • To design a post-hoc recalibration method that reduces local calibration error (LCE) without requiring model retraining or prior knowledge of sensitive groups.
  • To demonstrate that minimizing LCE leads to improved performance in fairness and decision-making tasks, especially when a 'safe' action is available for low-confidence predictions.

Proposed method

  • LCE is computed by measuring the average calibration error over a neighborhood of similar samples, where similarity is defined via a kernel function in a pretrained feature space and confidence binning.
  • The neighborhood size is controlled by a bandwidth parameter γ, allowing interpolation between global (large γ) and individual (small γ) calibration.
  • LoRe, a non-parametric, post-hoc recalibration method, adjusts confidence scores to minimize LCE by reweighting predictions based on local neighborhood statistics.
  • Similarity is quantified using a Gaussian kernel over features from a pretrained backbone (e.g., ResNet), enabling local generalization without explicit group labels.
  • Theoretical analysis shows that LCE can be estimated with polynomial sample complexity if the kernel is bounded, enabling reliable empirical estimation.
  • The method is applied without retraining, making it compatible with any pre-trained model and easily deployable in real-world systems.

Experimental results

Research questions

  • RQ1Can a calibration metric be designed that captures reliability at the individual prediction level, despite the impossibility of estimating individual misclassification probability?
  • RQ2Does a localized calibration metric like LCE reveal miscalibration patterns that global metrics like ECE fail to detect?
  • RQ3Can a post-hoc recalibration method reduce LCE without sacrificing global calibration performance?
  • RQ4Does improving local calibration lead to better fairness outcomes, especially when sensitive groups are unknown during calibration?
  • RQ5Does lower LCE improve decision-making in settings with a 'safe' action for low-confidence predictions?

Key findings

  • LoRe achieves a 50% average reduction in maximum group-wise MCE compared to no recalibration and a 24% improvement over the next best global method on fairness benchmarks.
  • LoRe outperforms global recalibration methods in reducing MLCE across a wide range of bandwidth parameters γ, with consistent gains on both t-SNE and PCA feature spaces.
  • The maximum group-wise MCE is more strongly correlated with MLCE than with global metrics like ECE, indicating that LCE better captures fairness-relevant miscalibration.
  • On the ImageNet decision-making task, LoRe achieves the highest total reward across a wide range of reward ratios w/u, outperforming all baselines.
  • LoRe maintains strong global calibration, achieving the lowest ECE (0.007), NLL (0.955), and Brier score (40.58) among all methods on ImageNet.
  • LoRe improves decision-making by enabling more accurate selection of the 'safe' action when confidence is low, directly enhancing system utility.

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.