Estimating Model Performance Under Covariate Shift Without Labels

Jakub Białek, Juhani Kivimäki, Wojtek Kuberski, Nikolaos Perrakis

TL;DR

Probabilistic Adaptive Performance Estimation (PAPE) is a new method for estimating how well a binary classifier is performing on unlabeled production data, even when the data distribution has shifted. By combining density ratio estimation with weighted calibration, PAPE provides more accurate estimates of metrics like Accuracy, F1-score, and AUROC than existing benchmarks, without requiring any changes to the original model.

What Problem Does This Paper Address?

Machine learning models are rarely "set it and forget it." Once deployed, they often encounter covariate shift—where the distribution of input data changes over time, leading to performance degradation.

The nightmare scenario for a production engineer is a model failing silently. While you can monitor "data drift" (e.g., using KS tests on features), these proxies don't tell you the actual impact on business metrics. To get real performance numbers, you usually need ground-truth labels, which are often delayed by weeks or may never arrive at all.

Existing "unsupervised" estimation methods have significant gaps: some only estimate accuracy (ignoring class imbalance), while others rely on the model being perfectly "calibrated"—a property that almost always breaks the moment the data distribution shifts.

Methods

The authors introduce PAPE, which builds upon and improves the Confidence-based Performance Estimation (CBPE) framework.

The workflow follows three main steps:

  1. Density Ratio Estimation (DRE): PAPE trains a separate "domain classifier" to distinguish between the original training data and the new, unlabeled production data. This allows the system to calculate a "weight" for every training sample, representing how much it resembles the current production environment.
  2. Weighted Calibration: Instead of trusting the original model's raw confidence scores, PAPE trains a new calibration mapping (using an LGBM regressor) on the training data, weighted by the density ratios from step one. This effectively "re-calibrates" the model's expectations to match the shifted production distribution.
  3. Confusion Matrix Estimation: Using these adjusted probabilities, PAPE treats each prediction as a random variable (following a Poisson binomial distribution) to estimate the expected values of True Positives, False Positives, etc. From these, any standard metric can be derived.

Crucially, PAPE is non-invasive; it doesn't require retraining or altering the "monitored" model—it only needs its output scores.

Datasets

The researchers conducted an extensive evaluation using:

  • Folktables: A large-scale suite derived from US Census data. They used five tasks (Income, Employment, etc.) across 50 states over 4 years, resulting in over 900 model-dataset combinations.
  • TableShift: A newer benchmark specifically designed for distribution shifts in tabular data.
  • Synthetic Data: A controlled environment used to verify the method's performance under "pure" covariate shift.

Key Insights and Ideas

  • Calibration is the Key: The "aha moment" here is that performance estimation is essentially a calibration problem. If you can accurately predict the probability that a specific prediction is correct, you can estimate the aggregate performance. PAPE's innovation is making this calibration adaptive to the shift.
  • Soft Scores > Hard Labels: PAPE often outperforms Importance Weighting (IW) because it uses the "soft" probability scores from the model. This acts as a smoothing mechanism, reducing the high variance that typically plagues IW when the training and production distributions are very different.
  • Theoretical Bounds: The paper provides mathematical proofs showing that for "composable" metrics (like accuracy or precision), the estimation error is directly bounded by the calibration error.
  • Metric Agnostic: Unlike many competitors that only estimate Accuracy, PAPE can estimate any metric derived from a confusion matrix, making it much more useful for imbalanced real-world datasets where F1-score or AUROC matters more.

Key Results

The authors compared PAPE against several heavyweights, including Importance Weighting (IW), Average Thresholded Confidence (ATC), and Difference of Confidence (DoC).

PAPE tracking realized AUROC during a distribution shift

As illustrated in the figure above, PAPE is highly responsive to sudden performance drops in production data, closely tracking the realized AUROC where static test set estimates fail entirely to capture the degradation.

Performance estimation errors across different methods

Across comprehensive benchmark evaluations, PAPE consistently demonstrated superior accuracy:

  • Superior Accuracy: In the Folktables experiments, PAPE achieved a Normalized Mean Absolute Error (NMAE) of 0.97 for accuracy, significantly lower than the second-best method (IW at 1.04).
  • Robustness on F1 and AUROC: PAPE showed even stronger leads on complex metrics. For F1-score, its NMAE was 0.90, compared to 1.07 for IW and 1.03 for CBPE.
  • Performance under Stress: As the "magnitude" of the data shift increased (i.e., the model's performance dropped further), PAPE's advantage over other methods became even more pronounced.

Limitations and Future Work

  • The "Concept Shift" Wall: PAPE assumes the relationship between features and labels remains constant. If the world changes such that the same input now leads to a different output (Concept Shift), PAPE will not detect the performance drop.
  • Dimensionality: Like all methods relying on density ratio estimation, PAPE may struggle in extremely high-dimensional feature spaces where it becomes difficult to distinguish between distributions accurately.
  • Multiclass Extension: While currently focused on binary classification, the authors note that extending PAPE to multiclass problems is a straightforward next step.
  • Support Overlap: The method requires that the production data "lives" within the same general range of values as the training data. If the model encounters entirely new types of data (out-of-support), the density ratios cannot be calculated.

Summary updated

BibTeX
@inproceedings{biaek2025estimating,
  author = {Jakub Białek and Juhani Kivimäki and Wojtek Kuberski and Nikolaos Perrakis},
  title = {{Estimating Model Performance Under Covariate Shift Without Labels}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=QPEAZ182Ps},
}
Figure