Performance Estimation in Binary Classification Using Calibrated Confidence

Juhani Kivimäki, Jakub Bialek, Wojtek Kuberski, Jukka K. Nurminen

TL;DR

This paper introduces Confidence-Based Performance Estimation (CBPE), a framework for estimating a model's performance (accuracy, precision, recall, and F1-score) in production without needing ground truth labels. By treating the elements of a confusion matrix as random variables derived from calibrated model confidence scores, CBPE provides not just point estimates but full probability distributions and valid confidence intervals for model monitoring.

What Problem Does This Paper Address?

In the real world, machine learning models often face "distribution shift"—the data they see in production looks different from the data they were trained on. To ensure a model is still working, engineers need to monitor its performance.

The traditional way to do this is to compare predictions against ground truth labels. However, labels are often expensive, difficult to obtain, or arrive with significant latency (e.g., waiting weeks to see if a loan applicant defaults). While researchers have developed ways to estimate accuracy without labels, accuracy is a poor metric for imbalanced datasets. This paper addresses the gap in estimating more nuanced metrics like precision, recall, and F1-score in an unsupervised "monitoring" setting where data arrives in small batches.

Methods

The core idea behind CBPE is that if a model is perfectly calibrated, its confidence score is exactly the probability of being correct.

  1. Estimating the Confusion Matrix: For a batch of predictions, the authors treat the number of True Positives ($TP$) and True Negatives ($TN$) as random variables. Specifically, $TP$ follows a Poisson binomial distribution, where the success probabilities are the model's confidence scores for its positive predictions.
  2. Deriving Metrics: Since metrics like Precision and Recall are functions of the confusion matrix, they too become random variables.
  3. Algorithms for Distributions: For simple metrics like accuracy and precision, the math is straightforward. For Recall and F1 (where the denominator is also a random variable), the authors provide specific algorithms to compute the full probability distribution.
  4. Shortcuts for Speed: Recognizing that computing full distributions can be computationally expensive for large batches, they provide "shortcut" formulas to approximate the expected values with high theoretical accuracy.

Datasets

The authors evaluated CBPE using two main approaches:

  • Synthetic Data: Used to precisely control and simulate covariate shift (changes in feature distribution) and label shift (changes in class proportions) to verify theoretical guarantees.
  • TableShift Benchmark: A suite of 8 real-world tabular datasets (including ASSISTments, Diabetes, Hospital Readmission, and Income) designed to test model robustness under distribution shift.

Key Insights and Ideas

  • Calibration is the Key: The method's success hinges on the model being "honest." If a model says it is 80% confident, it must be right 80% of the time. The authors show that as long as calibration error is low, performance estimation is remarkably accurate.
  • Beyond Point Estimates: Unlike previous methods that just give a single number, CBPE provides a full distribution. This allows practitioners to see the "uncertainty" of the estimate, which is vital when making decisions based on small batches of data.
  • The "Monitoring" Focus: Most research looks at performance over an entire dataset. This paper focuses on the "monitoring window" (e.g., batches of 500 samples), where high variance usually makes estimation difficult.
  • Unbiasedness: The authors provide mathematical proofs (Theorem 1 and 6) showing that their estimators are unbiased and consistent under the assumption of perfect calibration.

Key Results

  • High Accuracy: In synthetic tests, the "shortcut" estimators converged to the true values extremely quickly, with a Mean Absolute Error (MAE) below 0.001 once the window size reached 100 samples.
  • Real-World Performance: On the TableShift datasets, CBPE produced very low estimation errors when the model remained relatively calibrated. For example, on the Income dataset, the MAE for accuracy was only 0.29%.
  • Conservative Confidence Intervals: The 95% confidence intervals produced by the method were found to be "slightly conservative," meaning they captured the true performance slightly more often than 95% of the time—a desirable trait for safety-critical monitoring.

Limitations and Future Work

  • The "Concept Shift" Wall: The authors acknowledge that no confidence-based method can reliably handle concept shift (where the fundamental relationship between features and labels changes, e.g., a "positive" feature suddenly becomes "negative"). This remains an "unidentifiable" problem without labels.
  • Dependency on Calibration: If a model becomes severely uncalibrated due to a shift, the estimates will fail. The authors suggest that future work should focus on methods to maintain calibration even as data distributions drift.
  • Tabular Focus: While the theory applies broadly, the empirical results are focused on tabular data; testing on computer vision or NLP tasks remains for future research.

Summary updated

BibTeX
@article{kivimaki2026performance,
  author = {Juhani Kivimäki and Jakub Bialek and Wojtek Kuberski and Jukka K. Nurminen},
  title = {{Performance Estimation in Binary Classification Using Calibrated Confidence}},
  journal = {Machine Learning},
  year = {2026},
  doi = {10.1007/s10994-025-06970-3},
}
Figure