Reliably detecting model failures in deployment without labels

Viet Nguyen, Changjian Shui, Vijay Giri, Siddharth Arya, Amol Verma, Fahad Razak, Rahul Krishnan

Machine learning models operating in dynamic, real-world environments inevitably encounter data that differs from their training sets—a phenomenon known as distribution shift. While retraining is the standard solution, knowing when to retrain is an open challenge. In high-stakes fields like healthcare, ground-truth labels are often delayed or expensive to obtain, making real-time performance monitoring difficult.

Furthermore, not all data shifts degrade model performance. Many standard monitoring tools detect any change in the data distribution, triggering false alarms for "benign" shifts. To address this, researchers have developed D3M (Disagreement-Driven Deterioration Monitoring), a practical, label-free algorithm designed to detect Post-Deployment Deterioration (PDD). D3M successfully distinguishes between harmless data drift and critical performance failures without requiring access to original training data or real-time labels.

The D3M Approach: Disagreement as a Proxy for Error

D3M operates on the principle of model disagreement. The core intuition is that when a model encounters unfamiliar data that will likely cause it to fail, different internal variations of that model will start producing wildly different predictions.

To measure this efficiently, D3M utilizes Variational Bayesian Last Layers (VBLL). Instead of a standard "flat" model, the final layer uses a Bayesian approach, allowing the model to output a distribution over possible answers rather than a single point estimate. Because only the last layer is Bayesian, the bulk of the neural network backbone remains standard, keeping the computational overhead low.

At deployment, D3M compares the model's "mean" prediction against several samples drawn from its Bayesian posterior. Significant disagreement between these samples signals that the model is operating in an area of high uncertainty.

The three-stage D3M pipeline: Train, Calibrate, and Deploy.

The framework operates in a simple three-stage pipeline:

  1. Train: The backbone and the Bayesian last layer are trained on in-distribution data.
  2. Calibrate: A held-out validation set is used to establish a baseline threshold for normal disagreement levels.
  3. Deploy: The live data stream is monitored. If the disagreement rate exceeds the pre-set quantile threshold established during calibration, the system flags a deteriorating shift.

Crucially, D3M is source-free. Once deployed, it does not need access to the original training data, making it highly scalable and privacy-preserving.

Experimental Validation and Key Insights

The researchers evaluated D3M across diverse modalities, including tabular data (UCI Heart Disease), images (CIFAR-10, Camelyon17), and large-scale electronic health records (GEMINI).

A major insight emerged from the GEMINI dataset experiments, which tested temporal shifts (how patient data changed over years, including the COVID-19 pandemic). Over time, the data distribution drifted significantly, but the model's actual accuracy remained stable. D3M correctly identified this as "benign" drift and ignored it, whereas standard distribution-shift detectors triggered false alarms.

Performance Highlights

  • High Precision Monitoring: On the high-stakes Camelyon17 histopathology dataset, D3M achieved a True Positive Rate (TPR) of 99% in detecting failures using a batch size of only 50 samples.
  • Low False Alarms: During the GEMINI temporal experiments, D3M maintained a remarkably low False Positive Rate (FPR). It successfully resisted alerting during the COVID-19 period, where data changed but model performance did not.
D3M maintains a near-zero False Positive Rate (FPR) during benign temporal shifts, outperforming baseline divergence metrics.
  • Efficiency and Scalability: Compared to leading baselines, D3M requires 0% additional training or finetuning at deployment. It offers up to a 10x reduction in training FLOPs for large models and proved effective across both simple tabular models and deep ResNet architectures.

Limitations and Future Directions

While highly effective, D3M has a few limitations. At very small query sizes (e.g., evaluating only 10 samples at a time), the algorithm exhibits higher variance and noisiness compared to some baselines. Additionally, its performance is sensitive to the "temperature" parameter used during Bayesian sampling, requiring careful tuning during the calibration phase. Finally, current mathematical proofs assume clean ground-truth labels; future work will explore how D3M handles adversarially poisoned or naturally noisy labels in the wild.

Overall, D3M presents a highly viable, efficient alert mechanism for high-stakes machine learning pipelines operating in dynamic environments.

Summary updated

BibTeX
@inproceedings{nguyen2025reliably,
  author = {Viet Nguyen and Changjian Shui and Vijay Giri and Siddharth Arya and Amol Verma and Fahad Razak and Rahul Krishnan},
  title = {{Reliably detecting model failures in deployment without labels}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=hwRVeHkLvO},
}
Figure