[Paper Review] Tracking the risk of a deployed model and detecting harmful distribution shifts
This paper proposes a sequential framework for detecting harmful distribution shifts in deployed machine learning models by testing for significant increases in a risk function (e.g., accuracy, calibration), using time-uniform confidence sequences to enable continuous monitoring without inflating false alarms. The method distinguishes harmful from benign shifts and detects risk increases with minimal samples, validated on simulated and real-world datasets including corrupted MNIST and CIFAR-10.
When deployed in the real world, machine learning models inevitably encounter changes in the data distribution, and certain -- but not all -- distribution shifts could result in significant performance degradation. In practice, it may make sense to ignore benign shifts, under which the performance of a deployed model does not degrade substantially, making interventions by a human expert (or model retraining) unnecessary. While several works have developed tests for distribution shifts, these typically either use non-sequential methods, or detect arbitrary shifts (benign or harmful), or both. We argue that a sensible method for firing off a warning has to both (a) detect harmful shifts while ignoring benign ones, and (b) allow continuous monitoring of model performance without increasing the false alarm rate. In this work, we design simple sequential tools for testing if the difference between source (training) and target (test) distributions leads to a significant increase in a risk function of interest, like accuracy or calibration. Recent advances in constructing time-uniform confidence sequences allow efficient aggregation of statistical evidence accumulated during the tracking process. The designed framework is applicable in settings where (some) true labels are revealed after the prediction is performed, or when batches of labels become available in a delayed fashion. We demonstrate the efficacy of the proposed framework through an extensive empirical study on a collection of simulated and real datasets.
Motivation & Objective
- To address the gap in existing methods that detect all distribution shifts regardless of harm, leading to unnecessary interventions.
- To enable continuous, real-time monitoring of deployed models without increasing false alarm rates.
- To distinguish between benign and harmful distribution shifts by testing for significant increases in model risk (e.g., misclassification rate, Brier score).
- To provide a practical, sequential testing framework applicable when labels arrive with delay or in batches.
- To validate the method on both synthetic and real-world data, including corrupted image benchmarks (MNIST-C, CIFAR-10-C).
Proposed method
- The framework formulates the detection of harmful distribution shifts as a sequential hypothesis test on the increase in a risk function between source (training) and target (test) distributions.
- It uses time-uniform confidence sequences to aggregate statistical evidence continuously, ensuring valid inference over time without multiplicity issues.
- The method employs betting-based upper confidence bounds and conjugate-mixture empirical-Bernstein bounds for sequential estimation of risk on source and target domains.
- It applies sequential estimation to track the risk difference and triggers an alarm only when a significant increase (e.g., 5% or 10%) is detected with high confidence.
- The approach is designed for settings with delayed or batch-arriving labels, making it suitable for real-world deployment.
- The framework is implemented using sequential probability ratio tests (SPRT) and conformal prediction principles to maintain error control under sequential sampling.
Experimental results
Research questions
- RQ1Can a sequential testing framework detect harmful distribution shifts while ignoring benign ones, without inflating false alarm rates?
- RQ2How effective is the method in detecting a significant increase in model risk (e.g., misclassification or calibration error) under delayed or batch-arriving labels?
- RQ3Can the framework detect harmful shifts with minimal sample sizes, particularly in cases where standard methods fail?
- RQ4How does the method perform on real-world corrupted datasets like MNIST-C and CIFAR-10-C, where shifts are complex and non-i.i.d.?
- RQ5Does the framework maintain statistical validity under sequential monitoring, especially when compared to non-sequential or conformal test martingale-based approaches?
Key findings
- The framework successfully detects harmful distribution shifts with minimal sample sizes, such as identifying a 10% increase in misclassification risk after processing only a small number of target samples.
- On the MNIST-C and CIFAR-10-C benchmarks, the method consistently raises alarms only for the most severe corruptions (e.g., fog), while ignoring less harmful ones, demonstrating its ability to distinguish benign from harmful shifts.
- The use of time-uniform confidence sequences ensures that the false alarm rate remains controlled under continuous monitoring, unlike non-sequential tests which suffer from inflated error rates.
- The framework maintains high statistical power and detects risk increases earlier than standard methods, particularly when using lower error thresholds (e.g., β = 0.05) in prediction set construction.
- In the covariate shift simulation, the method correctly identifies that a logistic regression model trained on a source distribution fails on the target due to a mismatch in feature distribution, triggering an alarm after few samples.
- The average size of prediction sets increases with data corruption, reflecting uncertainty, but the framework still rejects the null (no risk increase) for the most severe corruptions, confirming its sensitivity to harmful shifts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.