Improving Predictor Reliability with Selective Recalibration

Thomas P. Zollo, Zhun Deng, Jake C. Snell, Toniann Pitassi, Richard S. Zemel · DOI

Abstract

In high-stakes decision-making environments, the reliability of a model's confidence is as critical as its raw accuracy. However, modern deep learning models often produce overconfident and poorly calibrated predictions. This paper introduces a novel framework for Selective Recalibration, which jointly optimizes a selection model to decide whether to make a prediction and a recalibration model to adjust confidence scores. By strategically rejecting a small subset of "difficult-to-fit" data, the framework allows simple recalibrators to achieve significantly more reliable confidence estimates on the remaining data. Experimental results across diverse datasets, including medical imaging and out-of-distribution benchmarks, demonstrate that this joint approach consistently outperforms existing post-hoc calibration and selection methods.

Introduction

In domains such as medicine, law, and autonomous driving, a model’s "confidence" must reflect its actual probability of being correct. A well-calibrated model ensures that a 70% confidence score corresponds to a 70% success rate. Despite their high accuracy, deep neural networks are notoriously poorly calibrated, often exhibiting extreme overconfidence.

Existing solutions typically fall into two categories: post-hoc recalibration (e.g., Temperature Scaling) and selective classification (abstention). While recalibration attempts to fix confidence scores across the entire dataset, it often fails because simple, low-parameter models cannot account for complex outliers. Conversely, selective classification improves accuracy by rejecting difficult samples but does not inherently fix the underlying miscalibration of the accepted predictions. This paper addresses the gap by proposing that models should selectively reject the most "un-calibratable" regions of the input space to enable more effective recalibration on the rest.

The Selective Recalibration Framework

The core innovation of this work is the joint optimization of a selection model $g$ and a recalibration model $h$. Unlike sequential approaches that train these components in isolation, joint training allows the selector to identify specific regions where the recalibrator is likely to struggle.

Joint Optimization and Loss Function

The authors introduce the Selective Top-Label Binary Cross Entropy (S-TLBCE) loss. Standard cross-entropy focuses on the ground-truth class, but S-TLBCE specifically targets the "top-label" (the class with the highest predicted probability). This alignment ensures the training objective is directly tied to top-label calibration, which is the primary metric of interest in most deployment scenarios.

To prevent the model from achieving perfect calibration by simply rejecting all data, the framework incorporates a Coverage Constraint ($L_{cov}$). This term enforces a user-defined coverage target ($eta$), ensuring the model accepts a specific proportion of the data. The resulting objective function balances calibration error against the requirement to maintain a functional level of data throughput.

Theoretical Foundation

The researchers provide a theoretical justification using a "perturbed mixture model." They prove that in the presence of outliers or distribution shifts, neither selection nor recalibration alone can reach zero calibration error. However, a joint selective recalibration approach can theoretically eliminate calibration error by isolating the distribution's most problematic components.

Experimental Evaluation

The framework was evaluated on four challenging datasets representing different types of data complexity and domain shifts:

  • Camelyon17: Detection of tumor patches in lymph node sections (medical imaging).
  • ImageNet: Large-scale general image classification.
  • RxRx1: Genetic perturbation microscopy images featuring significant "batch effect" domain shifts.
  • CIFAR-100-C: Zero-shot classification using CLIP on corrupted images to simulate out-of-distribution (OOD) shifts.

Key Results

  1. Superior Calibration: Selective recalibration consistently achieved lower Expected Calibration Error (ECE) than all baselines, including standard recalibrators and specialized OOD detection methods.
  2. Robustness to Distribution Shift: In OOD scenarios (RxRx1 and CIFAR-100-C), the joint approach proved more resilient than sequential methods. It effectively "ignored" regions where the distribution shift made accurate calibration impossible for simple models.
  3. Stability of S-TLBCE: The proposed loss function was found to be more stable and effective than alternatives like Selective Maximum Mean Calibration Error (S-MMCE).

Discussion and Insights

The Role of Model Simplicity

A key insight of the paper is that the simplicity of post-hoc recalibrators (like Temperature Scaling) is actually a strength; their low capacity prevents overfitting on small validation sets. However, this simplicity makes them "inexpressive." Selective recalibration resolves this tension by using the selection model as a filter, simplifying the data distribution so that the low-capacity recalibrator can perform optimally.

Calibration vs. Accuracy Trade-off

Interestingly, the pursuit of better calibration does not always lead to higher accuracy. In some instances, such as the RxRx1 dataset, the model may reject high-accuracy points if they are poorly calibrated. This highlights a fundamental trade-off: in high-stakes fields, it may be preferable to reject a correct but overconfident prediction than to accept it without a reliable measure of its uncertainty.

Conclusion and Future Work

Selective recalibration provides a robust framework for improving the reliability of deep learning models. By treating selection and recalibration as a unified task, the method achieves state-of-the-art calibration performance even under distribution shift.

Future research directions include mapping the Pareto front between accuracy and calibration to help practitioners choose optimal operating points. Additionally, the authors note the importance of investigating fairness; selection-based models must be carefully monitored to ensure they do not disproportionately reject data from specific protected groups, which could lead to biased outcomes in real-world applications.

Summary updated

BibTeX
@article{zollo2024improving,
  author = {Thomas P. Zollo and Zhun Deng and Jake C. Snell and Toniann Pitassi and Richard S. Zemel},
  title = {{Improving Predictor Reliability with Selective Recalibration}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=Aoj9H6jl6F},
}
Figure