[Paper Review] Retrain or not retrain: Conformal test martingales for change-point detection
This paper proposes a conformal test martingale framework for online change-point detection in machine learning data, using exchangeability-based martingales to detect distributional shifts and trigger retraining. It introduces the Ville, CUSUM, and Shiryaev–Roberts procedures for alarm generation, with validity guaranteed under exchangeability and empirical efficiency demonstrated on the Wine Quality dataset, achieving false alarm rates below 1% under ideal conditions.
We argue for supplementing the process of training a prediction algorithm by setting up a scheme for detecting the moment when the distribution of the data changes and the algorithm needs to be retrained. Our proposed schemes are based on exchangeability martingales, i.e., processes that are martingales under any exchangeable distribution for the data. Our method, based on conformal prediction, is general and can be applied on top of any modern prediction algorithm. Its validity is guaranteed, and in this paper we make first steps in exploring its efficiency.
Motivation & Objective
- To address the critical need for automated detection of data distribution shifts in online machine learning systems.
- To develop a valid, nonparametric method for testing the exchangeability of data streams, which generalizes the IID assumption.
- To design practical retraining triggers based on conformal test martingales that balance validity and detection efficiency.
- To evaluate and compare the performance of Ville, CUSUM, and Shiryaev–Roberts procedures in detecting concept and covariate shifts.
- To provide a framework that can be applied on top of any prediction algorithm without requiring model-specific adaptation.
Proposed method
- Construct exchangeability martingales using inductive conformity scores and conformal p-values derived from data sequences.
- Use the Ville procedure to raise alarms when a martingale exceeds a predefined threshold, ensuring validity under exchangeability.
- Introduce conformal CUSUM and Shiryaev–Roberts procedures that monitor the ratio of current to past martingale values to detect early shifts.
- Implement two retraining schemes: variable and fixed schedules, combining multiple martingales and alarm types for robustness.
- Calibrate alarm thresholds using simulations under the ideal (exchangeable) setting, with confidence intervals computed via Clopper–Pearson method.
- Use three-fold cross-validation to train conformal martingales on two folds and monitor the third for exchangeability violations.
Experimental results
Research questions
- RQ1Can conformal test martingales reliably detect data distribution shifts in online settings where the IID assumption is violated?
- RQ2How do the Ville, CUSUM, and Shiryaev–Roberts procedures compare in terms of detection speed and false alarm rate under exchangeability?
- RQ3What is the optimal threshold for alarm triggering that maintains validity while maximizing detection efficiency?
- RQ4How can conformal prediction be used to design a retraining strategy that is both valid and efficient in practice?
- RQ5Can the proposed framework be generalized to any prediction algorithm without requiring model-specific modifications?
Key findings
- The Ville procedure is effective at the beginning of testing but becomes less efficient over time due to diminishing sensitivity.
- The conformal CUSUM and Shiryaev–Roberts procedures significantly improve detection efficiency compared to the Ville procedure.
- For a target lifespan of $ C = 10^6 $, setting the CUSUM threshold to $ f = 4 \times 10^5 $ ensures a false alarm probability of at most 1% under the ideal exchangeable setting.
- The fixed training schedule achieves a total false alarm probability of at most 3%, with each component (Ville and CUSUM) contributing at most 1.5%.
- The confidence intervals for false alarm rates, computed via Clopper–Pearson method over $ 10^5 $ simulations, confirm the validity of the threshold calibration.
- The framework maintains validity under exchangeability and can be applied to any prediction algorithm via conformal prediction, ensuring statistical reliability.
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.