Leveraging Uncertainty Estimates To Improve Classifier Performance

Gundeep Arora, Srujana Merugu, Anoop Saladi, Rajeev Rastogi

Abstract

Binary classification involves predicting the label of an instance based on whether the model score for the positive class exceeds a threshold chosen based on the application requirements (e.g., maximizing recall for a precision bound). However, model scores are often not aligned with the true positivity rate. This is especially true when the training involves a differential sampling across classes or there is distributional drift between train and test settings. In this paper, we provide theoretical analysis and empirical evidence of the dependence of model score estimation bias on both uncertainty and score itself. Further, we formulate the decision boundary selection in terms of both model score and uncertainty, prove that it is NP-hard, and present algorithms based on dynamic programming and isotonic regression. Evaluation of the proposed algorithms on three real-world datasets yield 25%-40% gain in recall at high precision bounds over the traditional approach of using model score alone, highlighting the benefits of leveraging uncertainty.

Introduction

In the ideal case of a perfectly calibrated classifier, a model score of $s$ would correspond exactly to a $100s\%$ probability of the instance belonging to the positive class. However, in practical applications—particularly high-stakes domains like financial fraud detection or medical diagnostics—this calibration frequently breaks down. The authors identify two primary drivers of this calibration bias:

  1. Differential Sampling: To address class imbalance during training, practitioners often downsample the majority class. While this improves the model's ability to learn minority class features, it systematically warps the resulting probability scores.
  2. Distributional Drift: The data encountered in production environments often deviates significantly from the training distribution, leading to unreliable score estimates.

Traditional classification strategies rely on a 1D threshold (e.g., "flag all instances with a score $> 0.85$"). This approach fails to account for the uncertainty associated with each prediction. A score of 0.85 derived from a wealth of similar training examples is fundamentally more reliable than a score of 0.85 where the model is essentially extrapolating due to a lack of data.

Methodology

The researchers propose a paradigm shift: moving from a simple 1D score threshold to a 2D decision boundary that explicitly considers both the model score and its associated uncertainty estimate.

The proposed end-to-end pipeline for uncertainty-aware model training and 2D decision boundary detection.

Key Innovations

  • Theoretical Analysis of Bias: Utilizing Posterior Networks—which provide a distribution over probabilities rather than a single point estimate—the authors prove that estimation bias is directly coupled with uncertainty. Specifically, in regions of high uncertainty, the "true" positivity rate tends to shift toward the global prior, regardless of the raw model score.
  • 2D Binned Decision Boundary (2D-BDB): The framework partitions the score-uncertainty space into a grid of bins. The optimization goal is to select which bins to "accept" as positive to maximize recall while adhering to a strict precision constraint.
  • Algorithmic Solutions: The paper proves that finding the optimal boundary for variable bin sizes is NP-hard (reducible to the knapsack problem). To address this, they introduce specialized algorithms like EW-DPMT (a Dynamic Programming approach for equi-weight bins) and MIST (Multi Isotonic regression), a scalable greedy algorithm for recalibrating scores within each uncertainty level independently.

Experimental Setup

The proposed methods were evaluated using three large-scale, real-world datasets:

  1. Criteo: An online advertising dataset containing approximately 45 million impressions for click-through rate (CTR) prediction.
  2. Avazu: A massive CTR dataset with roughly 40 million samples.
  3. E-Com: A proprietary Amazon e-commerce dataset (~4 million samples) where the positive class represents a rare user action.

In each experiment, real-world conditions were simulated by undersampling the negative class during the training phase to observe the impact on score calibration.

Results and Discussion

The experimental results demonstrate that uncertainty is not merely a measure of confidence but a critical signal for identifying model bias. High uncertainty indicates that the model score is likely over- or under-estimating the true probability.

Visualization of (a) how test positivity rates vary across different uncertainty levels and (b) the resulting 2D decision boundary on a score-uncertainty heatmap.

By examining the 2D heatmap of scores versus uncertainty, the authors discovered that certain "low score, low uncertainty" bins actually exhibited higher true positivity rates than "high score, high uncertainty" bins. A standard 1D threshold would have incorrectly prioritized the latter, leading to suboptimal performance.

Performance Gains

  • Recall Improvements: On the Criteo dataset, at a 90% precision bound, the 2D methods achieved a 22% relative gain in recall over the standard single-threshold baseline.
  • Cross-Dataset Consistency: Across all three datasets, the 2D boundary methods consistently outperformed the baseline, with recall gains ranging from 25% to 40% at high precision levels.
  • Enhanced Calibration: The MIST algorithm significantly reduced the Expected Calibration Error (ECE), particularly for high-scoring instances. This improvement makes the model's outputs far more reliable for downstream decision-making processes.

Conclusion

This research highlights that ignoring uncertainty in classification tasks leaves significant performance on the table. By leveraging uncertainty as a second dimension for decision-making, practitioners can substantially improve recall in precision-constrained environments. While the performance is sensitive to binning configurations—requiring a "sweet spot" to avoid overfitting—the gains are compelling. Future work will focus on extending this framework to multi-class classification and regression problems.

Summary updated

BibTeX
@inproceedings{arora2024leveraging,
  author = {Gundeep Arora and Srujana Merugu and Anoop Saladi and Rajeev Rastogi},
  title = {{Leveraging Uncertainty Estimates To Improve Classifier Performance}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=nsNyDvNQTc},
}
Figure