Cautious Calibration in Binary Classification

Mari-Liis Allikivi, Joonas Järve, Meelis Kull · DOI

Introduction

In high-stakes machine learning applications—such as autonomous driving, medical diagnosis, or financial risk assessment—the reliability of a model's probability estimates is as crucial as its accuracy. A model is considered calibrated if its predicted probabilities match the actual frequencies of the outcomes. For instance, if a model predicts an 80% chance of a "clear road," we expect that outcome to occur in exactly 80 out of 100 similar instances.

However, achieving perfect calibration with finite data is impossible. Standard calibration techniques, such as isotonic regression or logistic calibration, typically aim for the best average fit. This often results in estimates that fluctuate around the true probability, leading to periods of overconfidence. In safety-critical scenarios, overestimating safety (overconfidence) can lead to catastrophic failures, whereas underestimating it (underconfidence) merely leads to more cautious, albeit safer, behavior.

The Cautious Calibration Framework

This paper introduces cautious calibration, a framework designed to produce probability estimates that serve as reliable lower bounds on the true, unknown probabilities. By intentionally favoring underconfidence over overconfidence, the authors provide a theoretically grounded safety margin for decision-making.

Comparison of Isotonic (A) and Cautious (B) calibration maps. Isotonic maps frequently cross the true calibration line (black), indicating overconfidence, while Cautious maps consistently stay below it.

Methodology: Hypothesis Testing Lower Bounds (HTLB)

The core of the proposed approach is the Hypothesis Testing Lower Bounds (HTLB) method. Instead of traditional binning, HTLB uses "inverted hypothesis testing" to identify the highest probability value that remains statistically likely to be a lower bound for the true value.

Key Components

  • Subsequence Selection and the "Rightmost" Rule: A critical insight of the paper is that lower bounds calculated for a group of instances (a bin) are only strictly valid for the instance with the highest predicted score in that group. Applying a bin-wide average to lower-scoring instances within the same bin can inadvertently lead to overconfidence.
  • HTLB+CP: This variant utilizes the Clopper-Pearson interval, a frequentist method for success rates. It is computationally efficient, as it can be solved analytically using the Beta distribution.
  • HTLB+MAXCP: A more robust version that evaluates multiple window sizes simultaneously to select the most conservative estimate. While more computationally intensive, it offers higher precision while maintaining safety.
  • Monotonicity Enforcement: To ensure logical consistency, a post-processing step is applied so that higher model scores always correspond to higher (or equal) calibrated probabilities.

The Cost of Overconfidence

The authors demonstrate the practical implications of calibration through a simulated risk-taking scenario. When the costs of a "False Positive" (e.g., a crash) are significantly higher than a "False Negative" (e.g., slowing down unnecessarily), overconfident models can lead to massive negative outcomes.

Expected outcome as a function of true probability. Overconfident models (dashed line) suffer catastrophic losses as they approach high-probability thresholds, while underconfident and optimal models maintain positive utility.

Experimental Results

The framework was rigorously tested using 50,000 simulated scenarios across 100 different "ground truth" calibration maps.

  • Safety Guarantees: At a 99% confidence level ($q=0.99$), HTLB methods achieved a violation rate of only 0.0067%—significantly safer than the 1% theoretical limit.
  • Standard Method Failures: Popular methods like Isotonic and Logistic calibration exhibited violation rates near 50%, meaning they were overconfident half the time.
  • Catastrophe Avoidance: In risk-level selection experiments, the worst-case outcomes for HTLB methods remained non-negative, whereas standard methods occasionally resulted in catastrophic losses orders of magnitude worse than the gains.

Conclusion and Future Directions

Cautious calibration provides a necessary paradigm shift for high-risk AI, prioritizing safety over average-case performance. While the current work focuses on binary classification and fixed window sizes, future research will explore adaptive windowing, multi-class extensions, and applications across the full probability spectrum. By providing a mathematical "safety buffer," HTLB ensures that AI systems remain reliable even when data is limited.

Summary updated

BibTeX
@inproceedings{allikivi2024cautious,
  author = {Mari-Liis Allikivi and Joonas Järve and Meelis Kull},
  title = {{Cautious Calibration in Binary Classification}},
  booktitle = {ECAI},
  year = {2024},
  doi = {10.3233/faia240654},
}
Figure