[Paper Review] Plug-in martingales for testing exchangeability on-line
This paper introduces plug-in martingales for on-line testing of data exchangeability, adapting betting functions to p-values from conformal prediction to improve detection of distributional shifts. The method outperforms fixed-betting power martingales, especially on complex p-value distributions, achieving a 1.8×10¹⁷ final martingale value on the Statlog Satellite dataset where power martingales fail.
A standard assumption in machine learning is the exchangeability of data, which is equivalent to assuming that the examples are generated from the same probability distribution independently. This paper is devoted to testing the assumption of exchangeability on-line: the examples arrive one by one, and after receiving each example we would like to have a valid measure of the degree to which the assumption of exchangeability has been falsified. Such measures are provided by exchangeability martingales. We extend known techniques for constructing exchangeability martingales and show that our new method is competitive with the martingales introduced before. Finally we investigate the performance of our testing method on two benchmark datasets, USPS and Statlog Satellite data; for the former, the known techniques give satisfactory results, but for the latter our new more flexible method becomes necessary.
Motivation & Objective
- To develop a more flexible method for on-line testing of exchangeability in data streams, where examples arrive sequentially.
- To address the limitation of fixed-betting function martingales that assume a priori knowledge of p-value behavior, which may not hold in practice.
- To improve detection of distributional shifts by adapting the betting function to the observed sequence of p-values.
- To demonstrate that the plug-in approach achieves asymptotically better performance than fixed-betting martingales under exchangeability.
- To validate the method on real-world datasets where traditional approaches fail due to non-uniform p-value distributions.
Proposed method
- Construct exchangeability martingales using a sequence of p-values generated by a conformal predictor in on-line mode.
- Introduce a plug-in betting function that estimates the optimal betting strategy from past p-values, adapting to the empirical distribution.
- Use a non-parametric estimation of the betting function to maximize martingale growth without assuming a specific parametric form.
- Apply the plug-in betting function to update the martingale value at each step, ensuring the martingale remains a supermartingale under exchangeability.
- Compare the plug-in martingale against established methods (power, simple mixture, sleepy jumper) using the same p-value sequence.
- Use the final martingale value as a test statistic: values exceeding thresholds (e.g., 20 or 100) indicate rejection of exchangeability.
Experimental results
Research questions
- RQ1Can a data-adaptive betting function improve the detection of exchangeability violations compared to fixed-betting functions?
- RQ2How does the plug-in martingale perform on datasets with non-uniform p-value distributions that violate assumptions of standard power martingales?
- RQ3Does the plug-in approach achieve asymptotic dominance over fixed-betting martingales in terms of martingale growth under exchangeability?
- RQ4In what scenarios does the increased flexibility of the plug-in method become essential for detecting distributional shifts?
- RQ5Can the plug-in method extract more information from the same p-value sequence than existing martingale constructions?
Key findings
- On the USPS dataset, the plug-in martingale performs comparably to power martingales, as both achieve similar final martingale values, indicating no significant advantage in this case.
- On the Statlog Satellite dataset, the plug-in martingale achieves a final value of 1.8×10¹⁷, while the simple mixture martingale reaches only 5.6×10², demonstrating a dramatic performance gain.
- The plug-in method’s flexibility allows it to better capture deviations in p-value distributions with multiple peaks, which power martingales fail to model effectively.
- When tested on only the first 1000 examples of the Statlog Satellite dataset, the plug-in martingale reaches 3.74×10¹⁵ compared to 0.013 for the simple mixture martingale, highlighting its sensitivity to early distributional shifts.
- The plug-in martingale asymptotically dominates all fixed-betting martingales in terms of expected growth under exchangeability, due to its adaptive estimation of the optimal betting function.
- The method successfully detects exchangeability violations even when p-values cluster near 1, a scenario where traditional methods relying on small p-values fail.
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.