Manuscript Offprint
arXiv:2610.17343Monitoring for Shifts at Unknown Times: Parameter-Free Conditional Conformal Martingales
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Conditional conformal test martingales provide sequential tests for detecting distribution shifts, using a fixed reference dataset to avoid contamination from test-time samples. Prior work used a penalized betting function via online optimization with smoothing, clipping, and other hyperparameters, which can adapt slowly when a shift occurs after a long stationary period. In this work, we introduce an approach that requires no hyperparameters and provably adapts quickly to shifts occurring at unknown times. Our key idea is to frame the penalized betting problem as portfolio selection in a three-asset market. Then, we use a restarting universal portfolio, with a heavy-tailed wealth allocation over time. We establish anytime false-alarm control and derive optimal finite-sample bounds on detection delay under detectable alternatives. We also develop an FFT-based implementation that computes the portfolio sequence over T rounds in time, instead of of the naive implementation. Synthetic and real-world experiments suggest that the proposed approach adapts rapidly after long periods of null samples, with detection delays depending substantially less on shift time than prior baselines.
1 Introduction
A deployed machine learning model is typically only reliable when the data distribution it was trained on is consistent with the distribution it currently sees. In reality, this consistency can break in many ways: a hospital replaces an imaging scanner, a camera lens degrades, or the questions a user asks a large language model evolve over time. Labels usually arrive late or not at all, so the resulting drop in accuracy can go unnoticed for a long time. Monitoring the inputs for distribution shift gives an early warning, which can trigger model retraining, additional data collection, or human review. A common approach is to monitor a scalar score of each incoming input, such as the confidence of a classifier [Hendrycks and Gimpel, 2017] or the likelihood under a density model [Ren et al., 2019], and to raise an alarm once the scores no longer resemble those of in-distribution data. In particular, a useful monitor should meet at least two key requirements. First, false alarms must stay minimal no matter how long the monitor runs, so the probability of rejecting a true null should be anytime valid. Second, shifts rarely happen at the start of deployment; a model usually operates normally for a long and unknown period before, say, a sensor degrades or incoming images become corrupted. So, a good monitor should detect a shift quickly, whenever it happens.
The framework of testing by betting [Shafer, 2021, Ramdas et al., 2023] allows one to design algorithms that meet the first requirement by construction. In this framework, a gambler starts with unit wealth and repeatedly places bets that are fair under the null hypothesis of no shift, and statistical evidence
francesco@orabona.com for distribution shift is accumulated by the wealth process. As no bet is favorable under the null, the wealth is a nonnegative supermartingale, and by Ville's inequality [Ville, 1939] it exceeds level at any time with probability at most . Conformal test martingales (CTMs) [Vovk et al., 2003, Vovk, 2021] apply this idea to monitoring for distribution shift by betting on conformal p-values, which rank each new score among all observations seen so far. Because the ranking uses test data, however, new scores collected after a shift gradually enter the reference pool; post-shift observations then look typical, weakening the evidence against the null, an effect known as test-time contamination [Podkopaev and Ramdas, 2022, Shaer et al., 2026]. To tackle this issue, Shaer et al. [2026] proposed conditional CTMs (CCTMs), which instead compare every test score with a fixed reference dataset and add a penalty that absorbs the estimation error of the reference distribution.
Crucially, the additional penalty term, , for a bet size of is not differentiable at , and Shaer et al. [2026] learn the bet with the online Newton step (ONS) [Hazan et al., 2007] as proposed by Cutkosky and Orabona [2018]. The resulting detector carries several hyperparameters: a smoothing constant to smooth , a bound on the bet size, a clipping threshold that sets small bets to zero, and a warm-up period, with different clipping thresholds and warm-up lengths used for synthetic and image data. A good value will depend on how long the null period lasts, which is exactly what is unknown. More fundamentally, ONS is designed to compete with the best constant bet in hindsight, which is a poor target when the shift comes late. Before the shift, the optimal bet is precisely zero, since systematic wealth growth is impossible under the null, and every nonzero constant bet will cause wealth decay at a rate proportional to its size. Therefore, every nonzero constant bet needs a number of post-shift observations that grows linearly with the length of the null period to recover its expected wealth loss, so competing with the best constant bet guarantees little for late shifts. Empirically, we measured that the median delay of the CCTM grows roughly 9 times for a shift after null samples (Section 5).
In this paper, we address both problems: hyperparameter tuning and the slow response to late shifts. These are our contributions:
• An equivalent reformulation of conditional CTMs. Our key observation is that bet selection for the penalized betting function of Shaer et al. [2026] is equivalent to investing in a three-asset market (Section 2). So, the nonsmooth penalty becomes a linear function of the portfolio weights. The test martingale keeps the original betting function and is bounded below by the market wealth, so the reformulation needs no smoothing and costs no power.
- A parameter-free detector. With the new formulation, betting strategies can be built with the tools from online portfolio selection, which offers algorithms with wealth guarantees on every sequence of returns [Cover, 1991, Orabona and Jun, 2024, Orabona, 2019]. To adapt to an unknown shift time, we propose a restarting universal portfolio with a heavy-tailed allocation of the initial wealth among the start times (Section 3). Each portfolio thus holds cash until its start time, so the one started right after the shift loses no wealth during the null period and then competes with the best constant-rebalanced portfolio (CRP) on the post-shift data alone. Apart from the test level and the confidence level of the reference band, it has no hyperparameters.
• Adaptivity to an unknown shift time. In Section 4, we show that false alarms are controlled anytime. For a detectable shift after null observations, the cost of not knowing a priori is , measured in log-wealth. So, the delay grows only logarithmically with , compared with the linear growth for constant bets. We also prove that is unavoidable: under anytime false-alarm control, no procedure detects shifts with a delay of smaller order than uniformly over all , even if the pre- and post-shift distributions are known.
• Efficient implementation. Despite this adaptivity, restarting a universal portfolio at every round costs over a horizon of T when computed directly. We give a divide-and-conquer FFT-based algorithm that computes exactly the portfolio sequence in time (Section 3.2).
On synthetic and ImageNet-C data, our detector's delay is nearly flat in shift time, while those of conditional/standard CTMs grow steadily; after 4000–8000 null samples, we detect shifts two to five times faster.
Abbreviated Related Work. Sequential change detection has a long history, starting with the CUSUM procedure [Page, 1954]. However, classical theory [Lorden, 1971, Lai, 1998, Tartakovsky et al., 2014] generally assumes simple and parametric settings with known pre- and post-change distributions, and its guarantees generally control the average run length (ARL) to a false alarm under the null, which bounds how soon a false alarm is expected but allows one to occur eventually with probability one. E-detectors [Shin et al., 2023] extend CUSUM-type and Shiryaev–Roberts (SR)-type procedures to certain composite and nonparametric settings by starting a new e-process (a generalization of a test supermartingale) at every round and combining them, with a guarantee on the ARL to false alarm. For ARL control under the null of exchangeability, Vovk [2021] similarly studies CUSUM- and SR-type standard CTMs. Our detector also starts a new bettor at every round, but it combines them with weights that sum to one, so that the total wealth itself is a valid test supermartingale. This yields a stronger, unbounded-horizon guarantee: given a reference dataset whose confidence band holds, the probability of raising a false alarm is at most anytime. Under this criterion, a delay growing logarithmically with the shift time is unavoidable (Section 4). For additional related work on sequential change detection, see Appendix A.
Universal portfolios [Cover, 1991, Cover and Ordentlich, 1996] achieve logarithmic regret against the best constant-rebalanced portfolio without tuning, and coin betting connects portfolio selection with parameter-free online learning [Orabona and Pál, 2016, Orabona, 2019]. To compete with comparators that change over time, one can mix over sequences of experts [Herbster and Warmuth, 1998, Singer, 1997, Kozat and Singer, 2008, Hazan and Seshadhri, 2009, Daniely et al., 2015, Jun et al., 2017]. The use of a universal portfolio as a testing-by-betting algorithm appeared for the first time in Orabona and Jun [2024], for the specific case of confidence sequences.
2.1 Problem Setup
Let be a reference dataset drawn i.i.d. from an unknown distribution on with a continuous cumulative distribution function (CDF) , and let be test observations, independent of , that arrive one at a time. In applications, each observation is a score computed from a possibly high-dimensional input by a fixed function (e.g., entropy of a pretrained classifier), so a change in the score distribution signals a shift in the inputs. Given , we test the null hypothesis
The alternative hypothesis of interest is a shift to a distribution at an unknown time , i.e., the scores are independent with
so that is the last round in which holds. We write for the probability law under , and for the law under with a given and . Let denote the natural filtration, with . A sequence is predictable if each is -measurable. A sequential test is a stopping time with respect to : it raises a false alarm under if , and means that no alarm is raised. Our goals are (a) anytime false-alarm control, i.e., for a given level , and (b) under (2), a short detection delay .
Testing By Betting. Testing by betting [Shafer, 2021, Ramdas et al., 2023] measures evidence against by the wealth of a gambler who bets against it. The gambler starts with the wealth and, before seeing , chooses an -measurable betting function , so that
The constraint says that no bet is favorable under the null, and it makes the wealth a non-negative supermartingale under :
Ville's inequality [Ville, 1939] then bounds the probability that the wealth ever reaches the level 1/α:
Hence the test meets goal (a), and goal (b) asks the gambler to grow the wealth quickly once the shift has happened.
If the true CDF were known, the values would be i.i.d. uniform on under , and the factor with and a predictable would be a fair bet on whether, and by how much, deviates from its mean under the null. In practice, we replace by the accessible empirical CDF of the reference sample. Given , the resulting -values may no longer be i.i.d. uniformly distributed under ; their mean can differ from [Bates et al., 2023]. Betting on the sign of this bias grows the wealth even under the null and inflates false alarms [Shaer et al., 2026].
The Conditional CTM. Shaer et al. [2026] compensate for this error by bounding the finite-sample approximation error of to with a confidence band, and penalizing the bet by a term proportional to the bet size as well as the band width. Specifically, fix a confidence level and let be a band width, computed from , such that the event
has probability at least over the draw of . We write for the set of reference datasets on which (3) holds. For example, the Dvoretzky–Kiefer–Wolfowitz (DKW) inequality [Dvoretzky et al., 1956] gives the constant band , and likelihood-based bands give widths that vary with [Owen, 1995]. With the scale , the penalized betting function of Shaer et al. [2026] is
for a bet and . The first part is the ideal bet, with in place of . The second part works like a tax: a bet of size pays , regardless of the outcome. A bet therefore increases the gambler's wealth only when deviates from by more than the band width, in the direction of the bet. Since , the normalization by ensures . For a predictable sequence of bets, the resulting wealth is a valid test supermartingale given any ; the level then controls false alarms given such a , while bounds the probability that .
Proposition 2.1 (Shaer et al., 2026). Let be predictable with values in , and let with . If , then under , is a nonnegative -supermartingale, and
Consequently, .
Learning The Bets Online. Proposition 2.1 holds for every predictable sequence of bets , and statistical power demands choosing one that grows the wealth quickly after a shift. Maximizing over rounds is an online learning problem with losses . These losses are convex in , but not differentiable at when .
Issues With ONS. Following Cutkosky and Orabona [2018], Shaer et al. [2026] use ONS to learn the bets, using a surrogate in which is replaced by the smooth approximation for a small , and restrict the bets to . Before the shift, the bets fluctuate around zero; every nonzero bet pays tax, so the wealth decays and must be won back after the shift, a problem already observed for CTMs [Volkhonskiy et al., 2017]. To prevent this, Shaer et al. [2026] set to zero whenever its magnitude falls below a threshold , and no bets are placed during an initial warm-up period (after smoothing, even a zero bet pays a tax proportional to ). Notably, the threshold trades off wealth loss before the shift against a slower reaction after it. The smoothing constant , the range of bets, the threshold , and the warm-up length must all be set by the user.
2.2 A Three-Asset Market
Here, we show how to remove the non-differentiability by an equivalent reparameterization of Shaer et al. [2026]'s original construction. The reframing turns the choice of bets into portfolio selection, a problem for which parameter-free algorithms are available.
Intuition. Split a bet into its positive and negative parts, with and , so that . Substituting both identities into (4) gives
The penalized bet is thus the return of a portfolio that keeps a fraction of the wealth in cash and invests the fractions and in two assets whose returns are the two most aggressive bets, and . The three fractions are all nonnegative and sum to one. This suggests treating the three fixed bets as assets.
Definition 2.2 (The three-asset market). In round t, the price relatives of the three assets are
A portfolio is a vector in the simplex . Investing with in round multiplies the wealth by .
We call the three assets cash, the up asset, and the down asset. The up asset pays , so the wealth invested in it grows when exceeds 1/2 by more than the band width, which happens systematically when the scores shift upwards. The down asset behaves similarly when scores shift downwards. Applying Proposition 2.1 to the constant bets shows that neither risky asset can grow in expectation under when , so cash is the only safe asset. Without estimation error, that is, with , the market reduces to the standard two-asset form of betting on a coin [Orabona and Pál, 2016, Orabona, 2019]. Expanding the inner product shows how a portfolio bets:
so a portfolio bets the difference but pays the tax on the sum (or hedging) . The two coincide exactly when the portfolio holds at most one risky asset, which gives the following lemma.
Lemma 2.3. For every and every round ,
Conversely, for every , the portfolio satisfies for every round . Consequently, for all rounds and every realization of ,
In portfolio selection, the standard comparator is the best constant-rebalanced portfolio (CRP) in hindsight, which keeps the same fraction w of wealth in each asset at every round [Cover, 1991]. Lemma 2.3 shows that, in the three-asset market, the best CRP earns exactly as much as the best constant bet, the comparator of ONS in Shaer et al. [2026]. More importantly, the market construction turns the choice of betting strategies into online portfolio selection while keeping the comparator: any portfolio algorithm with a regret guarantee against CRPs thus competes with the best constant bet automatically. Since the return is linear in the allocation w, the portfolio view also allows mixes over strategies with different start times, which will be crucial for adapting to an unknown shift time in Section 3. Finally, in contrast to the ONS solution, the full range of bets is available.
From Portfolio Wealth To Test Martingale. A portfolio algorithm chooses a predictable sequence of portfolios in . We will use it only to select the bet and keep the penalized betting function for the test (4). With , this involves two wealth processes,
with . The two processes play different roles. The portfolio algorithm sees only the market and controls , while the alarm is raised by . Since (Proposition 2.4 below), any lower bound on , such as a regret bound against some comparator, also holds for . All our guarantees on the detection delay are proved for and therefore apply to the test based on . In short, we choose the bets in the market and measure the evidence with the original betting function.
Proposition 2.4 (Validity). Let be predictable with respect to , define , , and by (7), and let . Then for all . If , then is a nonnegative supermartingale under and . Without conditioning, .
3 Restarting Universal Portfolios
Lemma 2.3 holds for any sub-interval of all the rounds , and any sequence of scalar bets is realized exactly by the portfolios . The correspondence is therefore not limited to constant strategies, and a comparator may change over time. For monitoring purposes, after a long null phase, however, the best constant bet could be a weak comparator. Intuitively, the right comparator should place no bets until the shift and then bet in the right direction, i.e., it holds for and for with a fixed . Its log-wealth at a round is , which, unlike the log-wealth of a constant bet, suffers no decay during the null period. In this section, we construct a parameter-free portfolio algorithm that competes with all such comparators at once, without knowing . We first explain why a single constant bet is a weak comparator for late shifts, then recall Cover's universal portfolio, and finally design a variant that restarts at every round with a heavy-tailed allocation of the initial wealth. Detailed proofs are given in Appendix C.
Why Constant Bets Adapt Slowly. Under the null, no bet can grow the wealth in expectation by the supermartingale property, yet every nonzero constant bet keeps paying the tax, so its wealth decays throughout the null period and the best constant bet becomes a weak comparator for late shifts. We formalize this argument in Appendix C.1: tests with constant bets must first recover the wealth lost before the shift, so their expected detection delay grows linearly in .
Universal Portfolios. Let be the Jeffreys prior Dirichlet(1/2, 1/2, 1/2) on W. The universal portfolio [Cover, 1991, Cover and Ordentlich, 1996] invests at round t in the average of all constant portfolios, weighted by the wealth they would have earned so far,
By telescoping the wealth updates, the universal portfolio started at round s has wealth
by round . This is the mixture of all CRPs’ wealths with respect to . Cover and Ordentlich [1996, Theorem 2] showed that this mixture loses at most a logarithmic factor against the best CRP on every sequence of price relatives; for three assets and all with ,
By Lemma 2.3, the universal portfolio started at round would thus compete with the ideal comparator described at the beginning of this section, at a regret of in log-wealth. Unlike ONS, however, the universal portfolio has no step size, smoothing, restricted range of bets, or any other hyperparameter. Since is unknown, we start one at every round.
3.1 Restarting at Every Round
Fix positive weights with , to be chosen later. The restarting portfolio assigns the initial wealth to a portfolio sequence that starts at round . The sequence holds cash during the rounds , and from round on it is invested in a fresh universal portfolio that has not seen the earlier data. Its wealth component is
After time t, the restarting portfolio holds the mixture
where the residual is the part of the unit initial wealth of the portfolios that have not started yet. Starting a new component does not add new wealth since all portfolios share the initial unit of wealth, and a new start only moves wealth out of the residual. This is what keeps the detector valid as a supermartingale, in contrast to procedures that add a new unit of wealth at every round and therefore control only the ARL to false alarm [Shin et al., 2023]. The next proposition writes (9) as the wealth of a predictable portfolio with the recursion for Algorithm 1.
Proposition 3.1. Let and for , and let
Then is -measurable and equals (9) for all .
Note that by unrolling the recursion, so is the weighted (by wealth) average of the allocations of all active universal portfolios, together with the cash residual (proof in Appendix C). Algorithm 1 summarizes the resulting test. We emphasize that Algorithm 1 has no tuning parameters: its only inputs are the levels and . Combining (8) with Lemma 2.3 yields an adaptive guarantee.
Lemma 3.2 (Restarting regret). For every sequence and all ,
Algorithm 1 Restarting universal portfolio test
Require: reference dataset , test level , confidence level
1: Compute , the band width , and from and
2: Set and
3: for do
4: Compute by (10)
5: Observe and set
6: Set and
7: if then
8: Reject and stop
9: Set
A Heavy-Tailed Allocation. Lemma 3.2 shows that the portfolio started at round pays a restart cost of in log-wealth, on top of the regret in (8). The delay after a shift at therefore grows with , and the allocation should decay as slowly as possible, while being summable to one. We choose the following heavy-tailed allocation
which behaves like . Obviously, the sum telescopes, so , and the residual also has the closed form .
Corollary 3.3. With the allocation (11), for every sequence and all ,
For a shift after round , taking shows that the restarting portfolio competes with the ideal comparator that places no bets until and then makes the best constant bet on the shifted data (described at the beginning of this section). Unlike for constant bets, the null period enters only through the prior cost of . Wealth decay under , which Shaer et al. [2026] manually handled by clipping, is thus automatically controlled by our construction.
3.2 Efficient Implementation
The allocation (10) needs the integrals of and of , , under the Dirichlet prior in every round. Since is a polynomial of degree with coefficients, and the moments of the prior have closed forms, a direct computation costs operations in round and over rounds. Our key observation is that all portfolios started in a block of rounds grow by the same factor after the block, so their contributions to many later rounds can be handled at once. We bisect the horizon recursively, store the polynomials by their values on Chebyshev grids, after a change of variables that maps the simplex to the unit square, and evaluate the contributions of each block with fast cosine transforms. This computes the same allocations, exactly in exact arithmetic without knowing the horizon, in time and memory (Appendix E). On one CPU core, it is faster than the direct computation from about rounds onwards, and 5.7 times faster at .
4 Statistical Guarantees
We now show that the detector of Section 3 controls false alarms at any time. Let be the detection time (or alarm time) of Algorithm 1. We provide a bound on under a change after an arbitrary round . A lower bound then shows that the logarithmic dependence cannot be improved by any detector. Detailed proofs are given in Appendix D.
False-Alarm Control. Type-I error control is guaranteed by the supermartingale property of the detector. By Proposition 3.1, the restarting portfolio is predictable, so Proposition 2.4 applies directly.
Detection Delay. To turn Corollary 3.3 into a bound on the delay, the shift must be detectable by some constant bet. We measure the signal strength by
the expected gain of the best unit bet after the change. It is the effective signal strength of Shaer et al. [2026] without smoothing, and . If , no constant bet has positive expected log-return after the change, so we call a shift detectable if . The following theorem holds for any valid allocation .
Theorem 4.1. Under (2) with a shift after round , let satisfy , let be the rejection time of Algorithm 1, and let . Then,
Theorem D.3 in Appendix D.3 adds an exponential tail bound on the delay and a bound given no false alarm before the shift. With the heavy-tailed allocation (11), Theorem 4.1 gives the following corollary.
Corollary 4.2. Under the conditions of Theorem 4.1,
The bound separates three sources of delay: the evidence required by the test, a statistical cost of order , and the restarting cost of not knowing the shift time . At it recovers the order that Shaer et al. [2026] prove for a shift at the first observation. For , additional null observations enter only through the restart cost , in contrast with the linear growth that constant bets incur (Appendix C.1).
Unavoidable Logarithmic Cost. The logarithmic growth cannot be avoided. Classical change detectors control the ARL to a false alarm, and their worst-case delay does not depend on [Lorden, 1971]. When a false alarm may ever occur with probability at most , however, every detector must become more conservative as time passes, even one that knows and a priori: for every large , some shift time between and costs it an expected delay of order at least (Appendix D.5). The dependence of Corollary 4.2 on is therefore optimal in order, and since Pinsker's inequality gives for detectable shifts on , the two bounds differ only in how they measure the size of the shift.
5 Experiments
We test empirically how the detection delay depends on the unknown shift time. We extend the synthetic and ImageNet-C benchmarks of Shaer et al. [2026] with a null phase of varying length before the shift. Appendix F gives the full setup and all results.
Setup. In the synthetic benchmark, , and after round , the scores follow either a sharp change to with and , or a gradual drift with mean with and , with 100 runs per configuration. In
Restarting UP (ours) Conditional CTM Standard CTM - = - Oracle
(a) Sharp change, d = 1

(b) Gradual drift,
(c) ImageNet-C, n = 1000
Figure 1: Median detection delay vs. shift time on logarithmic y axes: (a) sharp change to and (b) gradual drift, with 100 runs per , and (c) ImageNet-C with n = 1000, with 150 runs per .
Restarting UP (ours) Conditional CTM Standard CTM Oracle
(ImageNet-C: 1000) (ImageNet-C: 8000)
(a) Sharp change, d = 1

(b) Gradual drift,
(c) ImageNet-C, n = 1000
Figure 2: Power given no false alarm, versus the number of rounds after the shift.
the ImageNet-C benchmark, the scores are the predictive entropies of a pretrained ViT-B/16 classifier [Dosovitskiy et al., 2021], and clean ImageNet images [Deng et al., 2009] precede their severity-5 corruptions [Hendrycks and Dietterich, 2019], for 15 corruptions, 10 seeds, and reference images. All tests use and the DKW band. Our detector is Algorithm 1 with the heavy-tailed allocation (11); it bets from the first round and has no hyperparameters. We compare it with the conditional and the standard CTM, which use ONS with the hyperparameters and the warm-up of Shaer et al. [2026], and place no bets during the warm-up. As a reference, the oracle holds cash until and then makes the best constant bet in hindsight, the comparator of Corollary 3.3. We report the median delay and the power over the runs without a false alarm, counting misses as infinite delays. On both benchmarks, every method keeps its false-alarm rate below , except that of the standard CTM on ImageNet-C with , which is 0.10 for .
Detection Delay. Figure 1 shows the median delay against for one configuration of each benchmark; Appendix F gives all configurations. For an immediate shift ( ), all methods are close on synthetic data, the case for which the CCTM was designed and tuned, while on ImageNet-C, most of the larger delay of the CTMs is their warm-up on corrupted images. As grows, the delays of both CTMs grow roughly linearly, e.g., for the CCTM with , from 24 rounds at to 216 at . In contrast, the delay of our detector grows logarithmically, as Theorem 4.1 predicts, by only 2.2 to 3.8 rounds each time grows by a factor of on synthetic data. At the largest shift time, our detector is 2.0 to 4.2 times faster than the CCTM on synthetic data, and 3.4 to 5.3 times faster on ImageNet-C, e.g., 51 against 245 rounds for . On ImageNet-C with , the CTMs are ahead only at , where their warm-up manually avoids wealth loss early in the null phase.
Power. Figure 2 shows that the power curve of our detector hardly changes with , while those of the CTMs move to the right as grows. For at , our detector detects 90% of the shifts within 72 rounds, against 245 for the CCTM, and after 8000 clean images, it detects 82% of the

Figure 3: ImageNet-C by corruption group. For each seed, we take the median ratio over the corruptions of the group; lines show the mean over 10 seeds and bands one standard error. Values above 1 indicate faster detection by our detector.
shifts within 100 rounds, while both CTMs detect none that quickly.
Corruption Groups. Figure 3 compares the CCTM with our detector by corruption group and reference size. The advantage of our detector grows with and : the delay ratio is 1.0 to 2.2 at , where the warm-up of the CCTM falls into the clean images, and 1.4 to 5.7 at ; at , it mostly reflects this warm-up. The Digital corruptions are the hardest for all methods and show the smallest gains. For , our detector is the fastest method in every group and at every shift time (Table 10 in Appendix F.2).
6 Discussion
We introduced a parameter-free conditional conformal martingale for detecting distribution shifts at unknown times. The main idea is to recast the penalized betting problem as portfolio selection in a three-asset market and to restart a universal portfolio at every round. This eliminates the need for hyperparameter tuning in existing CCTMs while retaining anytime false-alarm control. It adapts to an unknown shift time at a logarithmic cost that our lower bound shows is unavoidable. We also developed an exact FFT-based implementation that runs in time. Experiments on synthetic data and ImageNet-C agree with the theory: our detection delay depends only weakly on the length of the null period, unlike that of existing CTMs.
Limitations And Future Work. The detection-delay theory applies to shifts that are detectable by a constant post-shift bet, quantified by , and assumes a fixed alternative distribution Q. It thus does not directly cover nonstationary alternatives, such as recurring or gradual changes, although our experiments include the latter. One future direction is to replace the constant post-shift comparator by richer portfolio classes that can track time-varying alternatives while preserving anytime validity. Our method also uses a fixed score and a fixed reference dataset, so its power depends on whether the score reveals the shift. Designing the score and the betting strategy jointly may improve sensitivity to weak shifts.
References
Stephen Bates, Emmanuel Candès, Lihua Lei, Yaniv Romano, and Matteo Sesia. Testing for outliers with conformal p-values. The Annals of Statistics, 51(1):149–178, 2023.
Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press, 2013.
Thomas M. Cover. Universal portfolios. Mathematical Finance, 1(1):1–29, 1991.
Thomas M Cover and Erik Ordentlich. Universal portfolios with side information. IEEE Transactions on Information Theory, 42(2):348–363, 1996.
Ashok Cutkosky and Francesco Orabona. Black-box reductions for parameter-free online learning in banach spaces. In Conference On Learning Theory, pages 1493–1529. PMLR, 2018.
Amit Daniely, Alon Gonen, and Shai Shalev-Shwartz. Strongly adaptive online learning. In Proceedings of the 32nd International Conference on Machine Learning, pages 1405–1411, 2015.
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, 2009.
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021.
Aryeh Dvoretzky, Jack Kiefer, and Jacob Wolfowitz. Asymptotic minimax character of the sample distribution function and of the classical multinomial estimator. The Annals of Mathematical Statistics, 27(3):642–669, 1956.
Charalambos Eliades and Harris Papadopoulos. A betting function for addressing concept drift with conformal martingales. In Conformal and Probabilistic Prediction with Applications, pages 219–238. PMLR, 2022.
Elad Hazan and C. Seshadhri. Efficient learning algorithms for changing environments. In Proceedings of the 26th International Conference on Machine Learning, pages 393–400, 2009.
Elad Hazan, Amit Agarwal, and Satyen Kale. Logarithmic regret algorithms for online convex optimization. Machine Learning, 69(2–3):169–192, 2007.
Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations, 2019.
Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In International Conference on Learning Representations, 2017.
Mark Herbster and Manfred K. Warmuth. Tracking the best expert. Machine Learning, 32(2):151–178, 1998.
Kwang-Sung Jun, Francesco Orabona, Stephen Wright, and Rebecca Willett. Online learning for changing environments using coin betting. Electronic Journal of Statistics, 11(2):5282–5310, 2017.
Suleyman S Kozat and Andrew C Singer. Universal switching portfolios under transaction costs. In 2008 IEEE International Conference on Acoustics, Speech and Signal Processing, pages 5404–5407. IEEE, 2008.
Tze Leung Lai. Information bounds and quick detection of parameter changes in stochastic systems. IEEE Transactions on Information Theory, 44(7):2917–2929, 1998.
Gary Lorden. Procedures for reacting to a change in distribution. The Annals of Mathematical Statistics, 42(6):1897–1908, 1971.
George V Moustakides. Optimal stopping times for detecting changes in distributions. the Annals of Statistics, 14(4):1379–1387, 1986.
Francesco Orabona. Online learning: A modern introduction using convex optimization. arXiv preprint arXiv:1912.13213, 2019.
Francesco Orabona and Kwang-Sung Jun. Tight concentrations and confidence sequences from the regret of universal portfolio. IEEE Trans. Inf. Theory, 70(1):436–455, 2024. URL https://arxiv.org/abs/2110.14099.
Francesco Orabona and Dávid Pál. Coin betting and parameter-free online learning. In Advances in Neural Information Processing Systems, volume 29, 2016.
Art B Owen. Nonparametric likelihood confidence bands for a distribution function. Journal of the American Statistical Association, 90(430):516–521, 1995.
E. S. Page. Continuous inspection schemes. Biometrika, 41(1/2):100–115, 1954.
Aleksandr Podkopaev and Aaditya Ramdas. Tracking the risk of a deployed model and detecting harmful distribution shifts. In International Conference on Learning Representations, 2022.
Moshe Pollak. Optimal detection of a change in distribution. The Annals of Statistics, pages 206–227, 1985.
Moshe Pollak and Alexander G Tartakovsky. Optimality properties of the shiryaev-roberts procedure. Statistica Sinica, pages 1729–1739, 2009.
Drew Prinster, Xing Han, Anqi Liu, and Suchi Saria. Watch: Adaptive monitoring for ai deployments via weighted-conformal martingales. arXiv preprint arXiv:2505.04608, 2025.
Aaditya Ramdas and Ruodu Wang. Hypothesis testing with e-values. Foundations and Trends in Statistics, 1(1-2):1–390, 2025.
Aaditya Ramdas, Johannes Ruf, Martin Larsson, and Wouter Koolen. Admissible anytime-valid sequential inference must rely on nonnegative martingales. arXiv preprint arXiv:2009.03167, 2020.
Aaditya Ramdas, Johannes Ruf, Martin Larsson, and Wouter M Koolen. Testing exchangeability: Fork-convexity, supermartingales and e-processes. International Journal of Approximate Reasoning, 141:83–109, 2022.
Aaditya Ramdas, Peter Grünwald, Vladimir Vovk, and Glenn Shafer. Game-theoretic statistics and safe anytime-valid inference. Statistical Science, 38(4):576–601, 2023.
Jie Ren, Peter J Liu, Emily Fertig, Jasper Snoek, Ryan Poplin, Mark Depristo, Joshua Dillon, and Balaji Lakshminarayanan. Likelihood ratios for out-of-distribution detection. Advances in neural information processing systems, 32, 2019.
SW Roberts. A comparison of some control chart procedures. Technometrics, 8(3):411–430, 1966.
Shalev Shaer, Yarin Bar, Drew Prinster, and Yaniv Romano. Testing for distribution shifts with conditional conformal test martingales. In International Conference on Machine Learning, 2026.
Glenn Shafer. Testing by betting: A strategy for statistical and scientific communication. Journal of the Royal Statistical Society Series A: Statistics in Society, 184(2):407–431, 2021.
Jaehyeok Shin, Aaditya Ramdas, and Alessandro Rinaldo. E-detectors: A nonparametric framework for sequential change detection. The New England Journal of Statistics in Data Science, 2(2): 229–260, 2023.
Albert N Shiryaev. The problem of the most rapid detection of a disturbance in a stationary process. Soviet Mathematics Doklady, 2:795–799, 1961.
Albert N Shiryaev. On optimum methods in quickest detection problems. Theory of Probability & Its Applications, 8(1):22–46, 1963.
Yoram Singer. Switching portfolios. International journal of neural systems, 8(04):445–455, 1997.
Alexander Tartakovsky, Igor Nikiforov, and Michèle Basseville. Sequential Analysis: Hypothesis Testing and Changepoint Detection. Chapman and Hall/CRC, 2014.
Lloyd N. Trefethen. Approximation Theory and Approximation Practice. SIAM, 2013.
Jean Ville. Etude critique de la notion de collectif. Gauthier-Villars Paris, 1939.
Denis Volkhonskiy, Evgeny Burnaev, Ilia Nouretdinov, Alexander Gammerman, and Vladimir Vovk. Inductive conformal martingales for change-point detection. In Conformal and Probabilistic Prediction and Applications, pages 132–153. PMLR, 2017.
Vladimir Vovk. Testing randomness online. Statistical Science, 36(4):595–611, 2021.
Vladimir Vovk. The power of forgetting in statistical hypothesis testing. In Conformal and Probabilistic Prediction with Applications, pages 347–366. PMLR, 2023.
Vladimir Vovk, Ilia Nouretdinov, and Alexander Gammerman. Testing exchangeability on-line. In Proceedings of the 20th international conference on machine learning (ICML-03), pages 768–775, 2003.
Vladimir Vovk, Ivan Petej, Ilia Nouretdinov, Ernst Ahlberg, Lars Carlsson, and Alex Gammerman. Retrain or not retrain: Conformal test martingales for change-point detection. In Conformal and Probabilistic Prediction and Applications, pages 191–210. PMLR, 2021.
Abraham Wald. Sequential tests of statistical hypotheses. In Breakthroughs in statistics: Foundations and basic theory, pages 117–186. Springer, 1945.
Ross Wightman. Pytorch image models. https://github.com/rwightman/pytorch-image-models, 2019.
A Additional Related Work
Classical sequential hypothesis testing and change-point detection: Classical approaches to sequential hypothesis testing and change-point detection assumed simple, parametric settings where the null and alternative hypotheses are each specified by a single parametric distribution, and they generally focused on finite monitoring horizons. This literature dates as far back as Wald's sequential probability ratio test (SPRT) [Wald, 1945], designed for testing the null that all data in a sequence are sampled from a given distribution P against the alternative of all the data being sampled from a different distribution Q. Change-point detection, in contrast, refers to sequential tests where the alternative hypothesis allows for a change to a different distribution Q at an unknown time . Page [1954] introduced the CUSUM procedure for a simple, parametric change-point detection setting, where the procedure can be viewed as starting a Wald SPRT at every time step and rejecting the null as soon as the maximum over sequentially started SPRTs exceeds a threshold. The Shiryaev-Roberts procedure [Shiryaev, 1961, 1963, Roberts, 1966] is another classical approach to the same setting, which can be viewed as the sum of SPRTs started at every timestep. Validity guarantees for these classical procedures, however, have generally concerned the average run length (ARL) to a false alarm under the null hypothesis, rather than the anytime-valid setting of this paper. Lorden [1971] and Moustakides [1986] proved asymptotic and exact optimality results respectively for CUSUM with respect to minimizing the worst-case detection delay, for i.i.d. data from known distributions P and Q. Various optimality results exist for the Shiryaev-Roberts procedure as well, including those due to Shiryaev [1963], Pollak [1985], Pollak and Tartakovsky [2009].
Sequential anytime-valid testing of composite and nonparametric hypotheses: Recent work has substantially advanced sequential testing of composite and nonparametric hypotheses with anytime-valid guarantees over unbounded monitoring horizons. A null or alternative hypothesis is composite if it specifies a non-singleton set of distributions, and it is nonparametric if such a set is not parametrically specified. We refer to Ramdas et al. [2023] for a more comprehensive review of this literature sometimes referred to as sequential anytime-valid inference (SAVI), to Shaer [2021] for an overview of the closely related framework of testing-by-betting, and to Ramdas and Wang [2025] for a recent textbook on the closely related topic of hypothesis testing with e-values. Anytime-valid guarantees fundamentally build on properties of test supermartingales [Ramdas et al., 2020], especially Ville's inequality [Ville, 1939], which yields anytime-valid false-alarm control for nonnegative supermartingales. Conformal test martingales (CTMs) [Vovk, 2021] are a type of test supermartingale with anytime-valid guarantees for testing the null of exchangeability/i.i.d., and thus for testing for distribution shifts. E-processes are an important generalization of test supermartingales (see Ramdas et al., 2023, Section 2.4); for the purpose of change-point detection (with ARL control rather than anytime guarantees), e-detectors [Shin et al., 2023] can be constructed by running CUSUM or Shiryaev-Roberts procedures on top of an e-process.
Standard and conditional conformal test martingales: Monitoring the null hypothesis of exchangeable or i.i.d. data from an unknown distribution is a highly composite and nonparametric setting, and it is especially difficult when the time of a potential shift is also unknown. Standard conformal test martingales (CTMs), originally developed by Vovk et al. [2003] and reviewed by Vovk [2021], provided the first framework for nontrivial anytime-valid testing of this null hypothesis. CTMs construct a betting process adapted to the filtration generated by conformal p-values. This filtration is coarser than the canonical data filtration, which may help explain their power for change-point detection [Ramdas et al., 2022, Vovk, 2023, Volkhonskiy et al., 2017, Vovk et al., 2021]. Nonetheless, standard CTMs' detection speed can suffer due to test-time contamination [Shaer et al., 2026] or when the shift occurs after a long null period due to difficulty recovering wealth lost or difficulty adapting to the shift [Eliades and Papadopoulos, 2022].
Shaer et al. [2026] inspired the present work with their introduction of conditional conformal test martingales (CCTMs), which accommodated a fixed reference dataset to avoid contamination from test-time samples by penalizing the betting function to account for finite-sample bias. The fixed reference dataset additionally allowed Shaer et al. [2026] to prove guarantees on the detection power and detection delay of CCTMs, which had previously been elusive for standard CTMs, but only for an immediate change point occurring at the first round of testing. However, Shaer et al. [2026] used the online Newton step of Cutkosky and Orabona [2018] to fit the penalized betting function, which involves several hyperparameters that require tuning and can adapt slowly when a shift occurs after a long null period. The present paper addresses these limitations of CCTMs by introducing a parameter-free approach that is provably fast to adapt to an unknown shift time and empirically beats standard CTMs and the original CCTM when shifts occur after many null samples. Our approach combines a three-asset reformulation of CCTM bet selection, universal portfolios restarted every round and mixed using a heavy-tailed wealth allocation, and a fast FFT-based implementation. These mixture weights are distinct from the weights in weighted CTMs [Prinster et al., 2025], which weight nonconformity scores to extend standard CTMs to the null of covariate shift and an invariant conditional label distribution.
B Proofs for Section 2
B.1 Proof of Proposition 2.1
The argument follows Shaer et al. [2026]; we include it for completeness. Fix and a round . Under the null, has law and is independent of . Since is continuous, is uniform on and independent of , so . Because , the band (3) at gives . Hence
The bet is -measurable, and is the sum of an affine function of and the term . Therefore
Since is -measurable and nonnegative, . Together with for all and (Section 2.1), this shows that is a nonnegative supermartingale with . Ville's inequality [Ville, 1939] gives the conditional bound. For the unconditional bound, average over , and use the conditional bound on and the trivial bound 1 outside it:
The right-hand side is at most , since by the choice of the band.
B.2 Proof of Lemma 2.3
Fix and let . Since , substituting into (5) gives
which is (6) by the definition (4).
For , the coordinates of are nonnegative and sum to , so . Its risky weights satisfy and , so (6) gives .
Fix rounds . Both maxima in the last claim exist, since they maximize continuous functions over compact sets. For every , (6) and give in every round . Multiplying these nonnegative factors over gives
and maximizing over proves the inequality “ ”. Conversely, for every , the second claim gives , which is at most the maximum over . Maximizing over proves the inequality “ ”.
B.3 Proof of Proposition 2.4
Since is -measurable, so is . By (6), in every round. Multiplying these nonnegative factors gives for every . Since , the remaining claims are Proposition 2.1 applied to .
C Proofs for Section 3
C.1 Constant Bets After a Long Null Phase
This appendix makes precise the claim of Section 3 that constant bets adapt slowly to late shifts. The loss of a constant bet before the shift and its gain after the shift are governed by
where the subscript gives the law of , so that is the signal strength (12). For a bet , let be the rejection time of the test that bets in every round.
Proposition C.1. Under (2) with a shift after round , let . Then , and the following hold.
(a) For every and every ,
(b) For every with , if , then
and if , the left-hand side is infinite.
By (a), if , the expected log-wealth of every constant bet is nonpositive until , a number of post-shift rounds linear in . By (b), the same holds for the expected detection delay whenever : the wealth lost before the shift must be recovered before the test can reject. In contrast, Corollary 4.2 bounds the expected delay of the restarting portfolio by a function of that grows only logarithmically. Part (b) does not apply to learners that change their bets, such as ONS, but by (a), a regret bound against constant bets guarantees them little over the same number of post-shift rounds. We exclude from (b) only to keep the log-returns bounded.
Proof of Proposition C.1. Throughout, we condition on and omit it from the notation. Given , the -values are independent, and has the law of with for and with for . We first show . Under , the conditional law of given is the law of with , so the first display in the proof of Proposition 2.1 reads .
(a) Fix . For , Jensen's inequality, the inequality , and give
For , the same steps under give the upper bound . Summing over proves (a).
(b) Fix with , and write , , , and , so that . Since for all by the definition of , the variables are bounded. They are independent, is independent of , and their means for and for satisfy and by the proof of (a).
We first bound the log-wealth at the shift on the event of no false alarm. The event depends only on , whose law is the same under and , so Proposition 2.1 gives . Since equals on and vanishes on , we have , where on . Since , each term satisfies , and therefore
We now turn to the rounds after the shift. If , there is nothing to prove, so assume . The delay is a stopping time with respect to , and is independent of with mean for every , so Wald's identity gives . On , the delay is finite almost surely, and ; on , the sum is empty. Together with and the previous display,
Hence , and thus , since . This shows that if . If , dividing by and using proves (b).
C.2 Proof of Proposition 3.1
Throughout, denotes the mixture (9), so that , and denotes the denominator in (10). Unrolling the recursion gives for every , where the empty product is one. Since , the polynomial is nonnegative on , and the definition of gives, for every ,
We first show that . Splitting off the term , whose product is empty, gives , and , so . In particular, , because all weights are positive, so is well defined. The numerator of (10) has nonnegative coordinates, which sum to because on , so . Moreover, depends only on , which are functions of , so it is -measurable. Finally, since ,
By induction from Wealth0 = 1, the wealth of equals (9) for every .
C.3 The Regret Bound (8)
Cover and Ordentlich [1996, Theorem 2] show that, in a market with three assets and arbitrary nonnegative price relatives, the universal portfolio with the prior started at round earns by round at least the fraction
of the wealth of the best CRP in hindsight over the rounds . Since and , this fraction equals . The wealth of this universal portfolio is the mixture on the left-hand side of (8), so taking logarithms gives (8).
C.4 Proof of Lemma 3.2
By Proposition 3.1, the wealth of the restarting portfolio equals (9), whose terms are all nonnegative, so for every . By the regret bound (8) and Lemma 2.3,
This proves the second inequality, and Proposition 2.4 gives .
C.5 The Restart Cost of the Heavy-Tailed Allocation
We show that the allocation (11) satisfies, for every ,
which, plugged into Lemma 3.2, gives Corollary 3.3. Since monotonically decreases for ,
and taking logarithms gives (13).
D Proofs for Section 4
Throughout this appendix, denotes a random variable with law that is independent of , and . Under (2) and given , the -values with are i.i.d. copies of , so that .
D.1 False-Alarm Control
Corollary D.1. Let be the restarting portfolio (10), define by (7), and let . If , then . Without conditioning, .
Proof. By Proposition 3.1, the restarting portfolio is predictable, so the claims follow from Proposition 2.4.
D.2 A Constant Bet With Positive Growth
The proof of Theorem D.3 compares the detector with a single constant bet, which is chosen with the knowledge of Q and but not of the test observations.
Lemma D.2. Fix with , let , and let . Then , and satisfies
Proof. All expectations and variances below are conditional on , and we omit the conditioning. The sign is nonzero because . Let , so that by the choice of . Since takes values in , the variable lies in , an interval of length at most 2, so and . Let . Since and increases on , we have , and gives . Because , the definition (4) gives with , which proves the range of . The inequality for gives
where the last step uses . Finally, is 2-Lipschitz on , and a 2-Lipschitz function of a random variable has at most four times its variance, so
D.3 Full Statement and Proof of Theorem 4.1
Theorem 4.1 states the bound on the expected delay. We prove the following full version, which also bounds the tail of the delay and the delay given no false alarm before the shift.
Theorem D.3 (Detection delay, full statement). Under (2) with a shift after round , let satisfy , let be the rejection time of Algorithm 1, and let be as in Theorem 4.1. Then for every integer ,
Consequently,
If moreover , then for all .
The first two bounds hold for every reference dataset with , and the second is Theorem 4.1. The conditional bound uses only to ensure that a false alarm before the shift is unlikely, so that conditioning on costs at most a factor .
Proof of Theorem D.3. Fix with and an integer , and write and . Let , , and be as in Lemma D.2, and let be the log-wealth that the constant bet earns after the shift. Since is the first round with , Lemma 3.2 and give
We bound both terms of the threshold by . Both terms in the definition of are nonnegative, so implies by Lemma D.2. For the second term, let
, so that and . Since decreases on , and since by ,
The threshold is therefore at most , and . Given , the terms of are i.i.d. copies of , so is a sum of independent centered variables, each with variance at most by Lemma D.2, and each bounded above by . Bernstein's inequality [Boucheron et al., 2013, Corollary 2.11] gives
where the last step uses and . This proves the tail bound.
For the expectation, let . Since , the tail bound gives
Finally, let . The event depends only on , whose law is the same under and , so Corollary D.1 gives . Dividing the tail bound by this probability proves the last claim.
D.4 Proof of Corollary 4.2
By (13) with ,
We substitute this bound into and use and , which holds since . The expectation bound of Theorem D.3 then gives the claim with the constant .
D.5 A Lower Bound on the Expected Delay
Classical change detectors control the average run length to a false alarm, and their worst-case delay does not depend on [Lorden, 1971]. Under the stronger requirement that a false alarm ever occurs with probability at most , the detector must become more conservative as time passes. The next theorem shows that every such detector, even one that knows P and Q a priori, has an expected delay that grows at least logarithmically with the shift time.
Theorem D.4 (Lower bound on the expected delay). Suppose that is absolutely continuous with respect to and that the Kullback–Leibler divergence is finite and positive. Let be any stopping time with . Then, as ,
where the constant in depends only on and .
In words, for any choice of a detector, there are shift times between and at which its expected delay is at least of order . The theorem applies to our setting conditionally on , and a detector that knows neither nor can only do worse.
Proof of Theorem D.4. Write . The proof first shows that a detector cannot raise alarms in short windows after many different shift times without paying in false alarms, and then converts a bound on the expected delay into such windows with Markov's inequality. Throughout, and refer to the shift time indicated in the event, and is a stopping time with respect to . Since is independent of the test observations and has the same law under and , the same argument applies conditionally on .
Lemma D.5. Let be a stopping time with , and fix integers and a number . If for every shift time , then
Proof. Let and consider the shift times for , which lie in . The events are disjoint, so their probabilities under sum to at most , and some satisfies . Write for the law under with the shift time , so that . Since is a stopping time, the event is determined by . Under and under , these variables have the same law except for the last observations, which are i.i.d. from and from , respectively, and independent of the others. By the chain rule, the Kullback–Leibler divergence between the two laws is . Moreover, since is absolutely continuous with respect to , so is the first law with respect to the second, and forces . The data-processing inequality applied to the indicator of , and the bound on the binary entropy, give
where the second inequality drops the nonnegative term , and the third uses and .
We now prove the theorem. Let and . If , there is nothing to prove, so assume . For every shift time , the event depends only on , whose law is the same under and , so . Since on this event, . Let , so that and
Since grows logarithmically, for all beyond a threshold that depends only on and , and we consider such . For every , Markov's inequality gives , hence
Lemma D.5 with , together with , gives . Substituting into yields
Since with constants that depend only on and , the last three terms are , which proves the theorem.
Comparison With the Signal Strength. We verify the bound used in Section 4 for detectable shifts on . Let with . By the band (3), , and since is continuous. Hence
where the supremum is over measurable sets, the second inequality uses that takes values in , and the last one is Pinsker's inequality. Since , squaring gives the bound.

Figure 4: The grid for N = 5.
E Efficient Implementation
This appendix details the computation summarized in Section 3.2. Appendix E.1 explains the main idea and states its guarantee, Appendices E.2–E.4 give the direct and the divide-and-conquer methods in full, and the remaining subsections prove the guarantee, discuss floating-point accuracy, and compare the two methods empirically.
E.1 Overview
We show that the allocations of Algorithm 1 can be computed exactly in time over rounds, instead of the time of a direct computation. For a function on , write
Since , the components of sum to , so the allocation (10) depends on the data only through .
Direct Computation. The polynomial has degree in and thus monomial coefficients. Since the moments of the Dirichlet prior have closed forms, both the update and the vector take operations on these coefficients (Appendix E.2), which adds up to time and memory. The bottleneck is that the full polynomial is updated and integrated at every round . We instead group the total horizon into blocks and handle the contributions of many start times to many rounds at once, which requires a different way of storing polynomials than by their monomial coefficients. By reusing shared computations within blocks, we avoid integrating separately at every round.
Grid Representation. We first change variables. Write and , so that a CRP can be written as (Figure 4)
Every pair gives a valid CRP, and the simplex is now mapped to the unit square , facilitating tensor representation. Write , so that . Note that is a bivariate polynomial of degree at most in each of and . We store such a polynomial by its values on the tensor grid of Chebyshev points, with larger than its degree [Trefethen, 2013]. In the transformed coordinates, the integral becomes a weighted sum of values on the grid, using Gauss–Chebyshev quadrature in and an interpolatory rule in . On its own, the grid representation does not reduce the cost of a single integration, since still has about grid values to update at every round, but as we will show, it enables faster evaluation of once many rounds are processed together.
start round s

(a)

(b)

(c)
Figure 5: (a) The pairs of start rounds and rounds . The split at handles the dark block at once, later splits handle the lighter blocks, and the gray cells are computed directly. (b) The portfolios started in are merged at round into one polynomial, whose integrals are needed at every round in (white dots). (c) Without a known horizon, doubling trick is used, and all earlier portfolios are merged at the start of each epoch.
Divide And Conquer. Since , we need for all , with terms for all . These can be illustrated by a triangle of pairs (Figure 5(a)). The diagonal is explicit, , so it remains to sum over the pairs . We recursively bisect the time horizon, forming a binary partition of the time indices. For simplicity, we assume that is known in advance and is a power of two:
Consider a block of rounds and its midpoint . The pairs within each half are two smaller copies of the same problem, which we solve recursively, starting from the block of all rounds. For a pair that crosses the midpoint, with and , all portfolios started in the first half grow by the same factor after round , so
Given , computing the crossing contributions requires applying the single fixed linear functional to the products for . With our earlier grid representation, this step can be performed in with discrete cosine transforms. This step handles the darkest block in Figure 5(a) at once. Recursing on both halves handles the remaining pairs, i.e., the two triangles, and the call on also returns .
Summing the computational cost over the blocks yields the following guarantee.
Proposition E.1. The divide-and-conquer method computes each allocation in (10) from only, exactly in exact arithmetic and without knowing the horizon. Its first T rounds cost operations and memory.
Running Online. For simplicity, we have described the recursion for a known horizon T. Every step uses only the price relatives of earlier rounds, so the recursion can run online in a straightforward way. The horizon can be removed by intervals of doubling length, at the start of which all earlier portfolios are merged into one polynomial (Figure 5(c)) and will be reused afterwards. The rest of this appendix gives this online schedule, the proof of Proposition E.1, and a discussion of floating-point accuracy.
Notation For The Proofs. The rest of this appendix uses the notation above: the moment vector , the growth for , the blocks , and the merged growth
so that . Unrolling the recursion of Proposition 3.1 gives , and since on , the allocation (10) is
Both methods therefore compute . For and , the definitions give the identities
as well as for .
E.2 The Direct Method
For a multi-index of nonnegative integers, let and , and let be the multi-index with a one in position and zeros elsewhere. Since on , the constant in the recursion may be replaced by . The recursion then produces homogeneous polynomials of degree that agree with on . We store their coefficients weighted by the moments of the prior, .
Proposition E.2. For every and ,
Moreover, , and for every with ,
Proof. For , the moments are
so that for every . With , this gives
For the recursion, the coefficient of with in
is . Multiplying it by gives the first term. The multinomial theorem gives , and multiplying each coefficient by gives the second term, since for every integer .
A homogeneous polynomial of degree in three variables has coefficients, so round costs operations, and rounds cost time and memory. In floating point, we store , divided by its sum, together with the logarithm of this sum, which avoids overflow. Since all terms are nonnegative, the computation involves no cancellation, and each round adds a relative error of the order of the machine precision to every coefficient.
E.3 The Grid Representation
Coordinates. For with , let and , so that with ; the excluded cash corner has measure zero under . The density of with respect to the Lebesgue measure in is , and the map has Jacobian , so for every -integrable function ,
The two factors are the densities of Beta(1/2, 1/2) and Beta(1, 1/2), so and are independent under with these laws. Since , the return has degree at most one in each of and , and so do , , and . For , let denote the polynomials in of degree at most in each variable, so that for all and . In particular, and .
Grids and Resampling. For , let for be the Chebyshev points of the first kind on , and let collect the values of a function on the tensor grid. Since the points are distinct, is a bijection from to . Let denote the Chebyshev polynomials, defined by . In one variable, a polynomial satisfies , so its values and its coefficients are related by a discrete cosine transform, which the fast Fourier transform computes in operations [Trefethen, 2013]. For , the resampling applies, along each axis, the transform that maps values to coefficients, keeps the first min coefficients and pads them with zeros to coefficients, and evaluates the result at the points.
Quadrature. Let for all , which are the weights of the Gauss–Chebyshev rule for the arcsine law Beta(1/2, 1/2) at the points , and let
be the weights of the interpolatory rule for Beta(1, 1/2) at the same points. These weights follow from the discrete orthogonality of the vectors for , together with the moments for , which the substitution turns into . Since , every weight satisfies . For , define the moment weights , where is written in the coordinates ; they are nonnegative. We also write for the entrywise inner product of arrays, and for their entrywise product.
Lemma E.3 (Grid operations). Let and .
(a) The resampling costs operations, and for every .
(b) If , then for every and every .
(c) If , then for every and every .
Proof. (a) Each one-dimensional transform costs operations, and each axis requires at most of them. For , the Chebyshev coefficients of along each axis vanish from the index on, so truncating or padding them does not change , and the last step evaluates itself.
(b) The product lies in . The interpolatory rule with points is exact for polynomials of degree at most , and the Gauss–Chebyshev rule with points is exact for polynomials of degree at most . Since is the product of the two laws in the coordinates , the tensor rule is exact on , which is spanned by products of univariate polynomials, so .
(c) By (a), , so , where denotes the adjoint with respect to the entrywise inner product. Let be the orthonormal type-II discrete cosine transform of size , and let pad a vector with zeros, so that truncates. Along one axis, acts as , and acts as , where the factors account for the normalization of the orthonormal transforms. Hence the adjoint of the first map is , which is times the second map. Two axes give the factor , so .
Functionals. We store a linear functional on polynomials by weights , and we say that represents on , for some , if for every . Weights can be formed and transformed exactly in three ways. First, by Lemma E.3(c), the weights on the grid with points also represent on , and we call them the restriction of to points. Second, if represents on and for some , then represents the functional on , because for such . Third, by Lemma E.3(b), if for some , then represents the functional on , because for such . We write for the triple of these functionals, , and for the functional .
E.4 The Divide-and-Conquer Method
Algorithm 2 gives the method in a form that runs online, without knowledge of the horizon. It keeps an accumulator for every round , initialized to the contribution of the portfolio started at round , since . The procedure SOLVE( ) adds the contributions of all pairs , as in Appendix E.1. The procedure PREFIX( ) applies a triple of linear functionals to the products for and adds the results to the accumulators; it evaluates the functional of the crossing pairs in Appendix E.1. The procedure EPOCHS removes the horizon: epoch consists of the rounds , and at its start, all portfolios started before round are merged into . Blocks of at most rounds, for a fixed integer , are leaves, which are handled round by round.
Representation. In a call on a block of rounds, the polynomials and are stored by their values on the grid with points per axis, and products and sums are formed on this grid after resampling the operands. In SOLVE, the weights of are formed on the grid with points as , and they are restricted to points before the call of PREFIX. In PREFIX, the weights of lie on the grid with points; the first sub-call receives their restriction to points, and the second sub-call receives the restriction of to points. In a leaf of PREFIX, is evaluated on the grid of , after resampling to it. In EPOCHS, the weights of at the start of epoch are formed on the grid with points and restricted to points, and the update of at the end of epoch is formed on the grid with points. In practice, grid sizes may be rounded up to lengths for which the fast transforms are efficient, which preserves exactness.
Scheduling. The procedures run as coroutines. The statement “wait for ” suspends the current call until has been observed, and returns at once if it has. The statement “run concurrently” starts two calls, which are then resumed independently, and continues once both have returned. After
Algorithm 2 Online computation of and without a known horizon
1: procedure SOLVE(L, R) adds to for all ; returns 2: if then 3: and 4: for do 5: and wait for 6: and 7: return 8: 9: 10: Run and concurrently crossing pairs 11: return 12: procedure adds to for all ; returns 13: if then 14: 15: for do 16: and wait for 17: 18: return 19: 20: 21: 22: return 23: procedure EPOCHS 24: at the start of epoch 25: for do 26: Run and concurrently 27:
28: Set for all , and run EPOCHS until it waits for 29: for do 30: Compute from and as in (10), and invest with 31: Observe , and resume every suspended call until it waits for
observing , the main loop resumes every suspended call, in any order, until each call waits for or has returned. The calls share no state except the accumulators, to which they only add, so the order does not matter. When all price relatives are known in advance, every wait returns at once, and the same procedures compute offline, as in Appendix E.1.
The first lemma shows that the procedures compute the right quantities, regardless of the schedule.
Lemma E.4. Let .
(a) If the weights of represent on , then adds to for every and returns .
(b) SOLVE(L, R) adds to for every pair and returns .
(c) For every , the calls started by EPOCHS add to in total, so that reaches .
Proof. We prove (a) and (b) by induction on , and we first treat PREFIX. In a leaf, when is added to , because and , and at the end, . Since for , the weights of evaluate exactly. Otherwise, . The first sub-call receives weights that represent on , so by induction it adds for and returns . For , we have by (14), and the weights of the functional represent it on by the second operation on weights, with and . By induction, the second sub-call adds these values for and returns , and by (14).
For SOLVE, a leaf has when is added to , because and . Since for , Lemma E.3(b) with evaluates exactly, and the leaf returns . Otherwise, by induction, the two calls of SOLVE add the pairs with and with , and return and . The remaining pairs have , and for each such , their contributions sum to by (14). The weights of represent it on by the third operation on weights, with and , and so does their restriction to points; by (a), the call of PREFIX adds these contributions. The returned values follow from (14). All products and sums are exact, since every polynomial formed in a call on rounds lies in .
For (c), induction on shows that at the start of epoch : initially , and by (14). The weights of , formed on the grid with points, represent it on by the third operation on weights, since . Every round lies in exactly one epoch, the one with . In this epoch, the call of SOLVE adds the pairs with by (b), and the call of PREFIX adds by (a) and (14). Calls of other epochs add nothing to . Together with the initial value , this gives .
The second lemma shows that the schedule never needs a future price relative.
Lemma E.5. In Algorithm 2, every call on a block is started before is computed, and after has been observed if , and its inputs depend only on . For every , the call completes its contribution to before it waits for , using only . Consequently, when is computed, and depends only on .
Proof. A call on waits for in this order and returns right after has been observed. We show the first two claims by induction over the calls, in the order in which they start. The calls of epoch 0 start before round 1 with the input . The calls of epoch start as soon as those of epoch return, that is, right after has been observed and before is computed, and their input depends on , which depends only on . Within SOLVE( ), the first sub-call starts with its parent, and the other two start as soon as the first returns, that is, right after has been observed, with the input , which depends only on . The same holds within PREFIX( ), whose second sub-call receives . In a leaf, the contribution to is added right before the wait for , and it depends on the inputs and on ; a call that is not a leaf contributes only through its sub-calls. This proves the first two claims.
When is computed, has not been observed, and every call has been resumed until it waits for or has returned. By the first claim, every call whose block contains has been started, and by the second claim, it has completed its contribution to . No call adds to later, since every contribution to is added before a wait for . Hence has its final value, which is by Lemma E.4(c), and it depends only on .
E.5 Proof of Proposition E.1
Lemmas E.4 and E.5 show that Algorithm 2 computes from and , using only , exactly in exact arithmetic and without the horizon. Running two calls concurrently changes the order of the operations but not the operations themselves, so the cost is the same as for a sequential run.
Time. Consider a call on a block of m rounds that is not a leaf. Apart from its sub-calls, it performs a constant number of resamplings, restrictions, entrywise products, and sums, all on grids with at most
points per axis, which cost by Lemma E.3. A leaf has at most rounds, so it costs . Let and be the largest costs of PREFIX and SOLVE on blocks of rounds. Then, for ,
At depth of the recursion of PREFIX, there are at most calls, each on at most rounds, so the calls that are not leaves cost in total, and the at most leaves cost . Summing over gives . Hence
and the same argument gives . Epoch consists of one call of each procedure on rounds, together with the construction of and the update of on grids with points, so it costs . The first rounds involve only the epochs with , and the work done in an unfinished epoch is at most the cost of the whole epoch. Summing the geometric series over gives a total time of .
Memory. At any time, the active calls are those whose blocks contain the current round. They form one chain of nested calls of SOLVE in the current epoch, together with, for each of these calls whose second half contains the current round, one chain of nested calls of PREFIX on that second half, and the call of PREFIX of the epoch with its own chain. A call on m rounds stores numbers, namely its inputs, the values returned by its first sub-call, and its current polynomials, and the block sizes decrease geometrically along each chain and across the chains. Together with A, which has grid values, and the accumulators, the memory is .
Uneven Work. The work is not spread evenly over the rounds. A call performs its own work at its start, at its midpoint, and right after its last price relative has been observed, and each epoch starts with the construction of on its largest grid. A single round can therefore require operations, while the first rounds take operations per round on average, compared with operations at every round for the direct method.
E.6 Numerical Accuracy
In floating point, every grid array is stored as a matrix of values together with a common logarithmic scale, which avoids overflow. The values of and on the grids are nonnegative, and so are the moment weights , since both one-dimensional rules have positive weights. Entrywise products and sums of nonnegative arrays are accurate to machine precision in every entry. Resampling and restriction, in contrast, mix all entries of an array through orthogonal cosine transforms, so they are accurate only relative to the size of the whole array, and an entry far below the largest one can lose its relative accuracy. The grid values of are wealths of CRPs, and they spread over many orders of magnitude when the rounds from s to t carry strong evidence for one direction of the shift, but also during a long null phase, in which the tax shrinks the wealth of the risky portfolios while cash keeps its wealth. In both cases, an entry that loses accuracy belongs to a portfolio far behind the best one, and it matters only if later rounds lift it by the order of 30 nats relative to the best one. We expect this to require strong evidence for a shift, and thus to happen typically long after has crossed , but this is a heuristic rather than a guarantee. In any case, projecting every computed allocation onto W keeps the test valid by Proposition 2.4, so numerical errors can reduce the power of the detector but not its false-alarm control. Running the method a second time on slightly larger grids, which is exact in exact arithmetic but rounds differently, gives an empirical estimate of the error. Appendix E.7 tests this account against the direct method.
E.7 Comparison With the Direct Method
We compare the divide-and-conquer method with the direct method of Appendix E.2, first on the computed allocations and then on cost. All streams use reference scores from , the DKW band at level , and .
Agreement. Both methods first match the definition (9) evaluated literally, with each component integrated separately by a tensor Gauss rule that is exact for its degree. For and a shift to after round , the allocations of both methods differ from the literal ones by at most . We then compare the two methods on four streams of rounds: a null stream; a shift to after round ; a drift with mean ; and a reversal, with on the rounds and afterwards. On the first three streams, the allocations agree to within in every round and to within (Table 1). The reversal stream is the difficult case of Appendix E.6: it first collects strong evidence for an upward shift, between 25 and 644 nats in by the reversal, and then evidence for a downward one. Both methods raise the alarm in the same round, and their allocations agree to within until 15 to 28 rounds after the reversal. From then on, the divide-and-conquer allocations are inaccurate, and for they even leave . The error estimate of Appendix E.6 detects this: it first exceeds at most three rounds after the allocations first differ by . Since the test stops at the alarm, which comes 142 to 2627 rounds before this point, the detector itself is not affected. A monitor that keeps betting after an alarm can project the allocations onto (Appendix E.6), which keeps the test valid, although no longer exact.
Table 1: Agreement of the direct and the divide-and-conquer methods. Left: largest difference between the allocations and of the two methods. Right, for the reversal stream: the alarm time (the same for both methods), the round of the reversal, at the reversal, and the first round at which the allocations differ by more than .
| largest allocation difference | reversal stream | ||||||
|---|---|---|---|---|---|---|---|
| null | shift | drift | reversal | there | first difference | ||
| 500 | 218 | 333 | 25 | 360 | |||
| 1000 | 401 | 666 | 84 | 694 | |||
| 2000 | 712 | 1333 | 165 | 1350 | |||
| 4000 | 1371 | 2666 | 330 | 2687 | |||
| 8000 | 2721 | 5333 | 644 | 5348 | |||
Cost. Figure 6 reports the wall-clock time and the peak memory of both methods on the shift stream, on one core of an Apple M1 Max. Every run starts a fresh process, and for we report the fastest of three runs. The direct method is a compiled loop, and the divide-and-conquer method uses the fast cosine transforms of SciPy, with blocks of at most rounds as leaves. The times follow the predicted orders: from to , the direct method slows down by a factor of 3.3, against , and the divide-and-conquer method by 2.4, against . The divide-and-conquer method is faster from on, and the gap grows with : at , it takes 43 seconds against 242, a speedup of 5.7. The price is memory. Both methods need memory, but the constant of the divide-and-conquer method is much larger: its peak is 7.8 GiB at , against 0.8 GiB for the direct method, which stores only the coefficients of . On a machine with 32 GiB of memory, this limits a single run of the divide-and-conquer method to roughly 20,000 rounds.

Figure 6: Cost of the direct and the divide-and-conquer methods on one core, against the horizon : (a) wall-clock time, with reference lines through the last point of each method, and (b) peak memory of the process, including about 0.1 GiB for the Python interpreter.
F Details of the Experiments
This appendix gives the complete setup of the experiments in Section 5, the results for every configuration, and further checks. Throughout, the restarting universal portfolio uses the Dirichlet prior Dirichlet(1/2, 1/2, 1/2) and the heavy-tailed allocation (11), and its allocations are computed exactly with the direct method of Appendix E.2. It rejects when its test martingale reaches , and we also record its portfolio wealth .
F.1 Synthetic Experiments
Data. The reference dataset has i.i.d. draws from , and the test scores satisfy for . After the shift, they follow one of two alternatives.
• Sharp change point: with , and .
- Gradual drift: with , and . The per-round rates 0.015, 0.03, and 0.05 are those of Shaer et al. [2026].
The shift time runs over , every stream has length , and every configuration is repeated 100 times. Within a trial, all magnitudes (or rates) share the same draws, so they differ only after .
Relation To The Experiments Of Shaer et al. [2026]. The three synthetic experiments of Shaer et al. [2026] are slices of this design, with their own random draws. Their delayed change point is at , and we use their seed for each trial for every . Their immediate change point (horizon 1000) and their drift (horizon 100) are the slices ; there, we use their seeds, draw their reference dataset and their test points, and continue the stream to with an independent generator. On all of these slices, both CTM implementations reproduce the authors' code exactly, including the randomized conformal p-values and the warm-up. The median delays read off our results agree with those in Figure 3 of Shaer et al. [2026] within three rounds, with one exception: for the CCTM at , the published curve crosses 1/2 about eight rounds later than ours. Since the code paths agree exactly, we attribute this difference to the random draws.
Methods And Hyperparameters. All methods use and the Dvoretzky–Kiefer–Wolfowitz band at level .
• Restarting universal portfolio (Algorithm 1): no further parameters and no warm-up.
- CCTM [Shaer et al., 2026]: ONS on the smoothed bet, with bets in , clipping threshold , and smoothing constant .
• Standard CTM: randomized conformal p-values against the growing pool, with the same ONS settings.
- Oracle: cash up to , then the constant bet that maximizes the wealth over the rounds . It knows and the future.
The two CTMs get a warm-up of min rounds, in which ONS runs but no bet is placed. This is the warm-up of 100 rounds that Shaer et al. [2026] use for their delayed change point and the absence of warm-up in their other two experiments, and it never uses shifted data.
Metrics. For each configuration, we report the following quantities.
• The false-alarm rate .
Table 2: Median detection delay in the synthetic experiments, over the trials without a false alarm; Ours is the restarting universal portfolio. Bold: the fastest method for each configuration and shift time excluding oracle (not implementable). Note that the oracle's delay depends very weakly on (here we only show it for ). Tables 3–8 give further statistics.
| Oracle | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Ours | CCTM | CTM | Ours | CCTM | CTM | Ours | CCTM | CTM | ||
| Sharp change, | ||||||||||
| Sharp change, | ||||||||||
| Sharp change, | ||||||||||
| Gradual drift, | ||||||||||
| Gradual drift, | ||||||||||
| Gradual drift, | ||||||||||
-
The power given no false alarm, , whose complement Theorem D.3 bounds.
-
The median delay of over the trials without a false alarm, counting a missed detection as .
-
The mean delay , which counts a missed detection as . No synthetic trial misses, so this is the plain mean.
Computation. The restarting portfolio processes each null prefix once and copies its exact state for the three magnitudes (or rates). At , every method runs to and its whole wealth path is kept; at the other shift times, the restarting portfolio stops once both of its wealths have crossed . The full run takes about 3.5 hours on nine cores of an Apple M1 Max.
Sharp Change Point. Table 2 summarizes the median delays of all synthetic settings, and Figures 8 and 9 and Tables 3–5 give the results for the sharp change. The delays of the CTMs grow steadily with the length of the null phase: least-squares fits through yield slopes of 43, 30, and 25 rounds per 1000 null rounds for the CCTM at , and 2, respectively. The delay of the restarting portfolio grows like : regressed on for , it gains 3.8, 2.7, and 2.3 additional rounds whenever increases by a factor of . It has the shortest median delay among the implementable methods at every and every magnitude, and at it is 4.0 to 4.2 times faster than the CCTM. At , it is 1.5 rounds ahead of the CCTM for and one round behind for and . The wealth paths in Figure 10 show why the CTMs slow down. At the shift, the median log-wealth of every method is close to zero, between and ; the difference arises after the shift, when the ONS iterate needs many rounds to move away from zero (Section 3), and the standard CTM additionally absorbs post-shift scores into its pool. At the end of the stream, of the restarting portfolio is within 16 nats of the oracle's, while that of the CCTM is between 87 and 989 nats lower than that of the restarting portfolio. Before the shift, the restarting portfolio raises a false alarm in of the runs and the standard CTM, despite its warm-up, in .
Gradual Drift. Figures 8, 9, and 10 and Tables 6–8 give the results. The drift is harder for every method, because the evidence arrives slowly at first, but the picture is the same. The CCTM's median delay grows by 21 to 25 rounds per 1000 null rounds, and the restarting portfolio's by 2.2 to 3.2 additional rounds whenever increases by a factor of . The restarting portfolio is the fastest implementable method at every , and at it is 2.0, 2.4, and 2.7 times faster than the CCTM for , and 5; at , it is within two rounds of the CCTM. Here, the oracle is not uniformly faster. The best constant bet over the whole post-shift window is large, because the drift eventually pushes every to one, and this bet is too aggressive while the drift is still small. The universal portfolio instead averages over all portfolios and increases its exposure as the evidence grows. The final wealth of the standard CTM is capped at by the reference implementation, which explains its constant value of in the tables.
Null Streams. We run 100 null streams of length 4500 for each of n = 1000 and n = 2000, without any warm-up, as in the type-I experiment of Shaer et al. [2026]. Neither the restarting portfolio nor the CCTM ever reaches , and the standard CTM does so on 2% of the streams (Table 9 and Figure 11). After 4500 null rounds, the median log-wealth of the restarting portfolio is -0.9 at n = 1000 and -1.0 at n = 2000, which reflects the logarithmic cost of betting from the first round; the CCTM, which also bets from the first round here, ends lower, at -2.6 and -2.8.
Type-I Error Against The Reference Size. Following Figure 2 (left) of Shaer et al. [2026], we vary the reference size over and run 100 null streams of rounds for each , drawn as in their code. They use rounds and in place of ; we keep the horizon of the other synthetic experiments, since 1100 exact runs of 20,000 rounds would take more than a day on our machine (Appendix E.7). The CTM settings are those above, without warm-up. Figure 7 shows that both conditional tests reject on at most 1% of the streams for every , far below , including , where the band has width . Over all 1100 streams, the restarting portfolio rejects twice, with both and , and the CCTM three times.

Figure 7: Type-I error against the reference size : fraction of 100 null streams of rounds on which the test martingale ( for the restarting portfolio) reaches . The two lines coincide except at .
Test Martingale Versus Portfolio Wealth. Rejecting on the portfolio wealth instead of delays detection by a median of 3 rounds in both scenarios, with a mean of 6 rounds for the sharp change and 8 rounds for the drift. The difference never has the other sign, since (Proposition 2.4).
■ Restarting UP (ours)
— Conditional CTM
— Standard CTM
— Oracle

Figure 8: Synthetic experiments: median delay against the shift time, over the trials without a false alarm, for every sharp change (top) and every drift (bottom), on logarithmic vertical axes.
| strategy | false al. | power | delay after | ||||||
|---|---|---|---|---|---|---|---|---|---|
| median | mean | median | mean | median | mean | ||||
| 0 | restarting UP | 0.00 | 1.00 | 22 | 22.6 | 1157.0 | 1159.2 | 1158.4 | 1160.7 |
| conditional CTM (ONS) | 0.00 | 1.00 | 24 | 24.0 | 747.8 | 747.5 | 747.8 | 747.5 | |
| standard CTM | 0.00 | 1.00 | 31 | 31.6 | 171.8 | 172.0 | 171.8 | 172.0 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 10 | 13.6 | 1164.0 | 1166.1 | 1164.0 | 1166.1 | |
| 200 | restarting UP | 0.00 | 1.00 | 43 | 45.6 | 1088.2 | 1090.7 | 1090.9 | 1093.1 |
| conditional CTM (ONS) | 0.00 | 1.00 | 44 | 44.6 | 709.2 | 707.4 | 709.2 | 707.4 | |
| standard CTM | 0.00 | 1.00 | 50 | 50.3 | 189.1 | 188.3 | 189.1 | 188.3 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 10 | 11.8 | 1101.0 | 1103.7 | 1101.0 | 1103.7 | |
| 600 | restarting UP | 0.00 | 1.00 | 48 | 49.3 | 996.2 | 997.3 | 998.5 | 999.7 |
| conditional CTM (ONS) | 0.00 | 1.00 | 73 | 73.9 | 637.2 | 638.5 | 637.2 | 638.5 | |
| standard CTM | 0.01 | 1.00 | 84 | 83.3 | 208.6 | 209.0 | 208.6 | 209.0 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 11 | 13.2 | 1011.2 | 1011.5 | 1011.2 | 1011.5 | |
| 4000 | restarting UP | 0.00 | 1.00 | 54 | 55.8 | 112.3 | 112.4 | 114.3 | 114.4 |
| conditional CTM (ONS) | 0.00 | 1.00 | 216 | 217.4 | 27.0 | 27.3 | 27.0 | 27.3 | |
| standard CTM | 0.01 | 1.00 | 227 | 233.0 | 19.0 | 18.3 | 19.0 | 18.3 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 11 | 12.9 | 127.6 | 127.6 | 127.6 | 127.6 | |
Table 3: Sharp change point, . after . Reference set , stream length , 100 trials; details in Appendix F.1. False al.: fraction rejecting at or before ; power: fraction of the trials without a false alarm that reject by , . Delays are over the trials without a false alarm; the median counts misses as , the mean counts them as . The restarting portfolio rejects on its test martingale ; Wealth is its portfolio wealth, and Wealth for the others. Bold: best implementable strategy in the block.

Figure 9: Synthetic experiments: power given no false alarm, , against the number of rounds after the shift, for every configuration (rows) and (columns).

Figure 10: Synthetic experiments: median log-wealth after the shift, for the sharp change with (top) and the drift with (bottom), and (columns). For the restarting portfolio, the wealth is its test martingale . The dashed line is the rejection threshold , and the vertical axes are linear between and and logarithmic outside.

Figure 11: Synthetic null streams: fraction of the 100 streams whose wealth ( for the restarting portfolio) has reached by round t, for (a) n = 1000 and (b) n = 2000. The CCTM never rejects, and its line is hidden under that of the restarting portfolio.
| strategy | false al. | power | delay after | ||||||
|---|---|---|---|---|---|---|---|---|---|
| median | mean | median | mean | median | mean | ||||
| 0 | restarting UP | 0.00 | 1.00 | 14 | 14.6 | 1905.2 | 1903.6 | 1905.7 | 1904.2 |
| conditional CTM (ONS) | 0.00 | 1.00 | 13 | 14.4 | 1113.4 | 1112.8 | 1113.4 | 1112.8 | |
| standard CTM | 0.00 | 1.00 | 21 | 21.1 | 259.5 | 258.7 | 259.5 | 258.7 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 7 | 7.5 | 1914.2 | 1912.5 | 1914.2 | 1912.5 | |
| 200 | restarting UP | 0.00 | 1.00 | 28 | 28.4 | 1801.7 | 1801.3 | 1803.2 | 1802.9 |
| conditional CTM (ONS) | 0.00 | 1.00 | 30 | 29.7 | 1055.3 | 1054.4 | 1055.3 | 1054.4 | |
| standard CTM | 0.00 | 1.00 | 36 | 35.5 | 278.5 | 278.6 | 278.5 | 278.6 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 7 | 7.5 | 1817.0 | 1816.4 | 1817.0 | 1816.4 | |
| 600 | restarting UP | 0.00 | 1.00 | 32 | 32.0 | 1636.3 | 1637.6 | 1638.0 | 1639.4 |
| conditional CTM (ONS) | 0.00 | 1.00 | 52 | 51.2 | 950.2 | 951.6 | 950.2 | 951.6 | |
| standard CTM | 0.01 | 1.00 | 61 | 59.5 | 303.5 | 303.8 | 303.5 | 303.8 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 7 | 7.8 | 1652.3 | 1654.0 | 1652.3 | 1654.0 | |
| 4000 | restarting UP | 0.00 | 1.00 | 36 | 36.4 | 194.3 | 194.0 | 196.0 | 195.8 |
| conditional CTM (ONS) | 0.00 | 1.00 | 150 | 148.6 | 57.5 | 57.6 | 57.5 | 57.6 | |
| standard CTM | 0.01 | 1.00 | 168 | 166.6 | 35.2 | 34.7 | 35.2 | 34.7 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 7 | 7.9 | 211.1 | 210.8 | 211.1 | 210.8 | |
Table 4: Sharp change point, . after . Reference set , stream length , 100 trials; details in Appendix F.1. False al.: fraction rejecting at or before ; power: fraction of the trials without a false alarm that reject by , . Delays are over the trials without a false alarm; the median counts misses as , the mean counts them as . The restarting portfolio rejects on its test martingale ; is its portfolio wealth, and for the others. Bold: best implementable strategy in the block.
| strategy | false al. | power | delay after | ||||||
|---|---|---|---|---|---|---|---|---|---|
| median | mean | median | mean | median | mean | ||||
| 0 | restarting UP | 0.00 | 1.00 | 12 | 12.4 | 2333.2 | 2333.5 | 2333.7 | 2333.9 |
| conditional CTM (ONS) | 0.00 | 1.00 | 11 | 11.8 | 1344.8 | 1343.7 | 1344.8 | 1343.7 | |
| standard CTM | 0.00 | 1.00 | 17 | 17.6 | 315.5 | 315.0 | 315.5 | 315.0 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 6 | 6.2 | 2342.5 | 2342.8 | 2342.5 | 2342.8 | |
| 200 | restarting UP | 0.00 | 1.00 | 23 | 23.2 | 2221.1 | 2221.6 | 2222.5 | 2223.1 |
| conditional CTM (ONS) | 0.00 | 1.00 | 24 | 24.4 | 1279.6 | 1279.5 | 1279.6 | 1279.5 | |
| standard CTM | 0.00 | 1.00 | 30 | 29.7 | 340.0 | 340.1 | 340.0 | 340.1 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 6 | 6.2 | 2236.7 | 2237.1 | 2236.7 | 2237.1 | |
| 600 | restarting UP | 0.00 | 1.00 | 26 | 26.4 | 2015.9 | 2015.9 | 2017.5 | 2017.5 |
| conditional CTM (ONS) | 0.00 | 1.00 | 43 | 42.6 | 1154.6 | 1154.5 | 1154.6 | 1154.5 | |
| standard CTM | 0.01 | 1.00 | 51 | 50.2 | 368.1 | 368.5 | 368.1 | 368.5 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 6 | 6.4 | 2031.1 | 2032.7 | 2031.1 | 2032.7 | |
| 4000 | restarting UP | 0.00 | 1.00 | 30 | 30.4 | 243.3 | 242.9 | 245.1 | 244.6 |
| conditional CTM (ONS) | 0.00 | 1.00 | 122 | 122.7 | 82.7 | 82.5 | 82.7 | 82.5 | |
| standard CTM | 0.01 | 1.00 | 141 | 140.0 | 48.4 | 47.9 | 48.4 | 47.9 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 6 | 6.3 | 260.8 | 260.1 | 260.8 | 260.1 | |
Table 5: Sharp change point, . after . Reference set , stream length , 100 trials; details in Appendix F.1. False al.: fraction rejecting at or before ; power: fraction of the trials without a false alarm that reject by , . Delays are over the trials without a false alarm; the median counts misses as , the mean counts them as . The restarting portfolio rejects on its test martingale ; is its portfolio wealth, and for the others. Bold: best implementable strategy in the block.
| strategy | false al. | power | delay after | ||||||
|---|---|---|---|---|---|---|---|---|---|
| median | mean | median | mean | median | mean | ||||
| 0 | restarting UP | 0.00 | 1.00 | 65 | 62.4 | 2814.1 | 2814.6 | 2815.0 | 2815.4 |
| conditional CTM (ONS) | 0.00 | 1.00 | 64 | 63.7 | 1634.8 | 1634.5 | 1634.8 | 1634.5 | |
| standard CTM | 0.00 | 1.00 | 67 | 68.1 | 575.6 | 575.6 | 575.6 | 575.6 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 76 | 72.4 | 2819.0 | 2818.6 | 2819.0 | 2818.6 | |
| 200 | restarting UP | 0.00 | 1.00 | 79 | 78.5 | 2682.9 | 2682.5 | 2684.2 | 2683.8 |
| conditional CTM (ONS) | 0.00 | 1.00 | 78 | 77.4 | 1558.0 | 1558.0 | 1558.0 | 1558.0 | |
| standard CTM | 0.00 | 1.00 | 82 | 82.8 | 575.6 | 575.6 | 575.6 | 575.6 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 76 | 75.3 | 2690.8 | 2690.4 | 2690.8 | 2690.4 | |
| 600 | restarting UP | 0.01 | 1.00 | 81 | 82.3 | 2425.6 | 2425.6 | 2427.1 | 2427.1 |
| conditional CTM (ONS) | 0.01 | 1.00 | 98 | 98.3 | 1402.9 | 1403.0 | 1402.9 | 1403.0 | |
| standard CTM | 0.00 | 1.00 | 104 | 104.6 | 575.6 | 575.6 | 575.6 | 575.6 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 77 | 75.9 | 2434.4 | 2434.2 | 2434.4 | 2434.2 | |
| 4000 | restarting UP | 0.00 | 1.00 | 88 | 87.1 | 251.2 | 251.0 | 252.9 | 252.7 |
| conditional CTM (ONS) | 0.00 | 1.00 | 179 | 178.7 | 86.8 | 86.9 | 86.8 | 86.9 | |
| standard CTM | 0.00 | 1.00 | 197 | 196.2 | 50.1 | 50.0 | 50.1 | 50.0 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 73 | 74.2 | 261.0 | 260.1 | 261.0 | 260.1 | |
Table 6: Gradual drift, . after . Reference set , stream length , 100 trials; details in Appendix F.1. False al.: fraction rejecting at or before ; power: fraction of the trials without a false alarm that reject by , . Delays are over the trials without a false alarm; the median counts misses as , the mean counts them as . The restarting portfolio rejects on its test martingale ; is its portfolio wealth, and for the others. Bold: best implementable strategy in the block.
| strategy | false al. | power | delay after | ||||||
|---|---|---|---|---|---|---|---|---|---|
| median | mean | median | mean | median | mean | ||||
| 0 | restarting UP | 0.00 | 1.00 | 41 | 40.8 | 2842.2 | 2842.4 | 2842.9 | 2843.0 |
| conditional CTM (ONS) | 0.00 | 1.00 | 43 | 42.3 | 1649.9 | 1649.9 | 1649.9 | 1649.9 | |
| standard CTM | 0.00 | 1.00 | 47 | 47.0 | 575.6 | 575.6 | 575.6 | 575.6 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 43 | 42.4 | 2848.6 | 2848.5 | 2848.6 | 2848.5 | |
| 200 | restarting UP | 0.00 | 1.00 | 54 | 53.2 | 2709.5 | 2709.6 | 2710.7 | 2710.8 |
| conditional CTM (ONS) | 0.00 | 1.00 | 53 | 53.7 | 1573.1 | 1572.9 | 1573.1 | 1572.9 | |
| standard CTM | 0.00 | 1.00 | 59 | 59.3 | 575.6 | 575.6 | 575.6 | 575.6 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 43 | 42.5 | 2721.3 | 2720.7 | 2721.3 | 2720.7 | |
| 600 | restarting UP | 0.01 | 1.00 | 56 | 55.8 | 2452.7 | 2452.5 | 2454.2 | 2453.9 |
| conditional CTM (ONS) | 0.01 | 1.00 | 70 | 70.5 | 1418.0 | 1417.9 | 1418.0 | 1417.9 | |
| standard CTM | 0.00 | 1.00 | 77 | 76.9 | 575.6 | 575.6 | 575.6 | 575.6 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 41 | 41.5 | 2464.9 | 2464.6 | 2464.9 | 2464.6 | |
| 4000 | restarting UP | 0.00 | 1.00 | 60 | 59.9 | 277.3 | 277.2 | 278.8 | 278.8 |
| conditional CTM (ONS) | 0.00 | 1.00 | 142 | 142.3 | 101.2 | 101.2 | 101.2 | 101.2 | |
| standard CTM | 0.00 | 1.00 | 161 | 160.4 | 58.6 | 58.5 | 58.6 | 58.5 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 42 | 41.8 | 290.2 | 289.5 | 290.2 | 289.5 | |
Table 7: Gradual drift, . after . Reference set , stream length , 100 trials; details in Appendix F.1. False al.: fraction rejecting at or before ; power: fraction of the trials without a false alarm that reject by , . Delays are over the trials without a false alarm; the median counts misses as , the mean counts them as . The restarting portfolio rejects on its test martingale ; is its portfolio wealth, and for the others. Bold: best implementable strategy in the block.
| strategy | false al. | power | delay after | ||||||
|---|---|---|---|---|---|---|---|---|---|
| median | mean | median | mean | median | mean | ||||
| 0 | restarting UP | 0.00 | 1.00 | 31 | 31.1 | 2852.6 | 2852.9 | 2853.2 | 2853.4 |
| conditional CTM (ONS) | 0.00 | 1.00 | 33 | 33.0 | 1655.8 | 1655.7 | 1655.8 | 1655.7 | |
| standard CTM | 0.00 | 1.00 | 38 | 37.8 | 575.6 | 575.6 | 575.6 | 575.6 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 29 | 29.2 | 2860.5 | 2860.5 | 2860.5 | 2860.5 | |
| 200 | restarting UP | 0.00 | 1.00 | 41 | 41.4 | 2720.3 | 2720.3 | 2721.6 | 2721.5 |
| conditional CTM (ONS) | 0.00 | 1.00 | 42 | 42.4 | 1578.8 | 1578.8 | 1578.8 | 1578.8 | |
| standard CTM | 0.00 | 1.00 | 48 | 47.7 | 575.6 | 575.6 | 575.6 | 575.6 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 28 | 28.7 | 2733.2 | 2732.8 | 2733.2 | 2732.8 | |
| 600 | restarting UP | 0.01 | 1.00 | 44 | 43.8 | 2463.0 | 2463.0 | 2464.4 | 2464.5 |
| conditional CTM (ONS) | 0.01 | 1.00 | 57 | 57.4 | 1423.7 | 1423.7 | 1423.7 | 1423.7 | |
| standard CTM | 0.00 | 1.00 | 64 | 63.6 | 575.6 | 575.6 | 575.6 | 575.6 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 29 | 29.0 | 2476.9 | 2476.7 | 2476.9 | 2476.7 | |
| 4000 | restarting UP | 0.00 | 1.00 | 47 | 47.3 | 287.8 | 287.6 | 289.4 | 289.2 |
| conditional CTM (ONS) | 0.00 | 1.00 | 126 | 126.7 | 107.1 | 107.1 | 107.1 | 107.1 | |
| standard CTM | 0.00 | 1.00 | 146 | 145.3 | 62.1 | 62.1 | 62.1 | 62.1 | |
| best CRP after shift (oracle) | 0.00 | 1.00 | 28 | 29.0 | 301.8 | 301.4 | 301.8 | 301.4 | |
Table 8: Gradual drift, . after . Reference set , stream length , 100 trials; details in Appendix F.1. False al.: fraction rejecting at or before ; power: fraction of the trials without a false alarm that reject by , . Delays are over the trials without a false alarm; the median counts misses as , the mean counts them as . The restarting portfolio rejects on its test martingale ; is its portfolio wealth, and for the others. Bold: best implementable strategy in the block.
| strategy | ||||
|---|---|---|---|---|
| rejected | median final log-wealth | rejected | median final log-wealth | |
| restarting UP | 0.00 | -0.88 | 0.00 | -0.97 |
| conditional CTM (ONS) | 0.00 | -2.56 | 0.00 | -2.75 |
| standard CTM | 0.02 | -0.68 | 0.02 | -0.76 |
Table 9: Type-I error. Fraction of 100 null streams ( throughout, ) whose wealth ever reaches ( for the restarting portfolio, the martingale itself for the CTMs), and the median final log-wealth, for the reference sizes of the sharp change point () and the drift ().
Table 10: Median detection delay on ImageNet-C with , by corruption group, over 10 seeds and the corruptions of each group. The delays of the CTMs include their warm-up of 50 rounds. Bold: the fastest implementable method. Table 14 gives the false-alarm rates, the power, and the mean delays, and Tables 11–15 give the other reference sizes.
| All | Noise | Blur | Weather | Digital | All | Noise | Blur | Weather | Digital | All | Noise | Blur | Weather | Digital | |
| Ours | 17 | 18 | 16.5 | 12 | 27.5 | 42 | 41.5 | 38 | 27.5 | 88.5 | 50.5 | 54.5 | 45 | 31 | 130.5 |
| CCTM | 67 | 69 | 65.5 | 61 | 77.5 | 84.5 | 85 | 74.5 | 59.5 | 143 | 244.5 | 250 | 220.5 | 165 | 425.5 |
| CTM | 75 | 76 | 72.5 | 66 | 85 | 78 | 82 | 74 | 58 | 106.5 | 264 | 270 | 241 | 192.5 | 390.5 |
| Oracle | 8 | 7 | 8.5 | 6 | 19 | 8 | 7 | 8.5 | 6 | 19 | 8 | 7 | 8.5 | 6 | 19 |
F.2 ImageNet-C
Data. We repeat the ImageNet-C experiment of Shaer et al. [2026, Figure 4] with a clean phase of length inserted before the corrupted stream, so that their experiment is the slice . The scores are the predictive entropies of the ViT-B/16 classifier [Dosovitskiy et al., 2021] of the timm library [Wightman, 2019] (weights augreg2) on the ImageNet validation images [Deng et al., 2009]. The 50,000 images are split into a clean holdout of 12,500 images and 37,500 images whose severity-5 ImageNet-C versions [Hendrycks and Dietterich, 2019] form the shifted stream, for each of the 15 corruptions. As in the authors' code, the seed shuffles the holdout and the corrupted images. The reference dataset is the first images of the holdout, and the clean phase consists of the next images, which are never in the reference dataset.
Grid And Hyperparameters. We keep the grid of Shaer et al. [2026], , the seeds , and all 15 corruptions, and we vary , a geometric grid on which a dependence of order appears as a straight line. The CTMs keep the ImageNet hyperparameters of Shaer et al. [2026]: , band level , bets in , , , and a warm-up of 50 rounds; the released code skips the first 51 observations for the CCTM and 50 for the standard CTM. The restarting portfolio uses the same band and no warm-up. The oracle holds cash until and then makes the best constant bet in hindsight. Every method runs for rounds after the shift, because the direct method costs ; at , almost all runs detect the shift well within . The restarting portfolio processes the clean phase once for each and copies its state for the 15 corruptions, and the whole grid takes about 40 minutes on seven cores.
Delay. The delay is for every method, and the warm-up of a CTM is not subtracted. For , the warm-up lies in the clean phase and costs nothing. At , it falls on shifted data, so the CTMs discard the first 51 or 50 corrupted images, and these rounds count towards their delay; Shaer et al. [2026] instead measure time from the end of the warm-up. Medians count missed detections, i.e., no rejection within rounds, as , and they are taken over the runs without a false alarm. Means count a missed detection as instead of dropping it, and like the medians, they are taken over the runs of each method without a false alarm; where some runs miss, the mean is a lower bound.
Results. Figures 12 and 13 show the delay against and the power for each , pooled over corruptions and seeds, and Tables 11–15 break the delay down by corruption group; Table 10 summarizes them for .
-
At , the restarting portfolio is the fastest method for every , with 16 to 30 rounds against 65 to 83 for the CCTM and 74 to 93 for the standard CTM. Most of this gap is the warm-up of the CTMs; counted from the end of the warm-up, the restarting portfolio and the CCTM are within two rounds of each other.
-
The delay of the restarting portfolio grows like . From to , its median delay rises from 33 to 50.5 rounds at , and regressed on it gains 3.6 (at ) to 10 (at ) additional rounds whenever increases by a factor of . The slope is larger for small , because a wider band makes each nat of restart cost take more rounds to earn.
-
The delays of both CTMs grow roughly linearly with , by 24 to 41 rounds per 1000 clean rounds. At , the CCTM needs 3.4 () to 5.3 () times as many rounds as the restarting portfolio.
The CTMs are ahead only for short clean phases. At , one of them is faster for every , e.g., the CCTM with 28 against 33 rounds at . For , the restarting portfolio has the shortest median delay from on. For , the standard CTM stays ahead up to , because its growing pool of clean scores sharpens its -values, and the restarting portfolio leads from on. Among the corruption groups, the Digital corruptions are the hardest. For brightness at , both conditional tests often miss the shift within , because the band width at exceeds the signal; the standard CTM pays no band and detects it once its pool has grown. Figure 3 in Section 5 summarizes the comparison of the two conditional tests as the ratio of their delays. At , the ratio is 3.1 to 5.3 for Noise, Blur, and Weather and 1.2 to 3.3 for Digital, dominated by the warm-up of the CCTM; at , where the warm-up is free, it is 1.4 to 2.2 (1.0 to 1.9 for Digital); and at , it grows to 3.3 to 5.7 (1.4 to 4.2 for Digital). For , the standard CTM raises a false alarm at round 392 of the clean phase for one of the 10 seeds, and since the 15 corruptions share the clean phase of a seed, this counts as a false-alarm rate of 0.10 at every , including in Table 15.
Null Check. As in the reproduction, the null stream is the rest of the clean holdout, i.e., images, with 100 seeds for each (Table 16). The test martingale of the restarting portfolio reaches on one of the 300 streams (at ), and its portfolio wealth on none. The CCTM never rejects, and the standard CTM rejects on to of the streams. All rates are below . After 8500 to 12,400 clean rounds, the median log-wealth of the restarting portfolio is between and .
| strategy | false al. | power | median delay | mean delay | ||||
|---|---|---|---|---|---|---|---|---|
| all | noise | blur | weather | digital | ||||
| 0 restarting UP | 0.00 | 0.93 | 30 | 30 | 26.5 | 16.5 | 177.5 | |
| conditional CTM (ONS) | 0.00 | 0.93 | 83 | 89 | 78 | 65.5 | 203 | |
| standard CTM | 0.00 | 0.96 | 93 | 97 | 88 | 75.5 | 126.5 | |
| best CRP after shift (oracle) | 0.00 | 0.93 | 18.5 | 18.5 | 16 | 9 | 136.5 | |
| 1000 restarting UP | 0.00 | 0.92 | 90.5 | 99.5 | 66.5 | 40.5 | 818 | |
| conditional CTM (ONS) | 0.00 | 0.93 | 130.5 | 133 | 113.5 | 72 | 480 | |
| standard CTM | 0.00 | 1.00 | 80.5 | 83.5 | 76 | 60.5 | 114 | 96.8 |
| best CRP after shift (oracle) | 0.00 | 0.93 | 18.5 | 18.5 | 16 | 9 | 136.5 | |
| 8000 restarting UP | 0.00 | 0.92 | 114.5 | 119 | 84 | 47 | 1064.5 | |
| conditional CTM (ONS) | 0.00 | 0.91 | 388 | 398.5 | 318.5 | 215.5 | 1364 | |
| standard CTM | 0.00 | 1.00 | 250.5 | 265.5 | 240.5 | 191 | 383.5 | 296.6 |
| best CRP after shift (oracle) | 0.00 | 0.93 | 18.5 | 18.5 | 16 | 9 | 136.5 | |
Table 11: ImageNet-C, . 15 severity-5 corruptions seeds after clean images; every method runs rounds past the change. False al.: rejection at or before ; power: . Delays (warm-up rounds included), medians over the trials without a false alarm, misses counted as ; the mean counts misses as (: some runs missed, so the mean is a lower bound). The restarting portfolio rejects on . Groups as in Shaer et al. [2026], Figure 4. Bold: best implementable strategy.

Restating UP (ours)
Conditional CTM
Standard CTM
Oracle
Figure 12: ImageNet-C: median delay against the length of the clean phase, for every reference size , over 15 corruptions and 10 seeds. Runs that miss the shift within 2000 rounds count as infinite delays. The vertical axes are logarithmic, and the horizontal axes are logarithmic beyond .
| strategy | false al. | power | median delay | mean delay | ||||
|---|---|---|---|---|---|---|---|---|
| all | noise | blur | weather | digital | ||||
| 0 restarting UP | 0.00 | 0.98 | 21 | 21 | 19 | 14 | 67 | |
| conditional CTM (ONS) | 0.00 | 0.99 | 73 | 75 | 68.5 | 63 | 102 | |
| standard CTM | 0.00 | 1.00 | 79 | 84 | 75.5 | 69 | 102.5 | |
| best CRP after shift (oracle) | 0.00 | 0.99 | 11 | 11 | 11 | 7 | 29 | |
| 1000 restarting UP | 0.00 | 0.96 | 60.5 | 65.5 | 49 | 31.5 | 185 | |
| conditional CTM (ONS) | 0.00 | 0.99 | 103.5 | 105 | 88 | 63 | 213.5 | |
| standard CTM | 0.00 | 1.00 | 83.5 | 82.5 | 75.5 | 63 | 125.5 | |
| best CRP after shift (oracle) | 0.00 | 0.99 | 11 | 11 | 11 | 7 | 29 | |
| 8000 restarting UP | 0.00 | 0.95 | 71.5 | 78 | 59.5 | 37.5 | 238.5 | |
| conditional CTM (ONS) | 0.00 | 0.94 | 295.5 | 301.5 | 247.5 | 184.5 | 612.5 | |
| standard CTM | 0.00 | 1.00 | 272 | 283.5 | 249 | 196.5 | 438.5 | 313.0 |
| best CRP after shift (oracle) | 0.00 | 0.99 | 11 | 11 | 11 | 7 | 29 | |
Table 12: ImageNet-C, . 15 severity-5 corruptions 10 seeds after clean images; every method runs rounds past the change. False al.: rejection at or before ; power: . Delays (warm-up rounds included), medians over the trials without a false alarm, misses counted as ; the mean counts misses as (: some runs missed, so the mean is a lower bound). The restarting portfolio rejects on . Groups as in Shaer et al. [2026], Figure 4. Bold: best implementable strategy.

Figure 13: ImageNet-C: power given no false alarm, , against the number of rounds after the shift, for every reference size (rows) and (columns), over 15 corruptions and 10 seeds.
| strategy | false al. | power | median delay | mean delay | ||||
|---|---|---|---|---|---|---|---|---|
| all | noise | blur | weather | digital | ||||
| 0 restarting UP | 0.00 | 1.00 | 19 | 20 | 17.5 | 13 | 29.5 | 48.3 |
| conditional CTM (ONS) | 0.00 | 1.00 | 70 | 71 | 67 | 61.5 | 82 | 91.5 |
| standard CTM | 0.00 | 1.00 | 76 | 78.5 | 74 | 68 | 93 | 84.3 |
| best CRP after shift (oracle) | 0.00 | 1.00 | 9 | 8 | 9 | 6.5 | 20 | 29.3 |
| 1000 restarting UP | 0.00 | 1.00 | 46.5 | 44 | 41.5 | 29 | 134.5 | 106.9 |
| conditional CTM (ONS) | 0.00 | 1.00 | 90 | 91 | 80.5 | 59.5 | 163 | 128.0 |
| standard CTM | 0.00 | 1.00 | 83 | 85 | 78 | 64.5 | 120.5 | 97.1 |
| best CRP after shift (oracle) | 0.00 | 1.00 | 9 | 8 | 9 | 6.5 | 20 | 29.3 |
| 8000 restarting UP | 0.00 | 1.00 | 62 | 65 | 51.5 | 35 | 161 | 129.2 |
| conditional CTM (ONS) | 0.00 | 1.00 | 263.5 | 271 | 226.5 | 176 | 488 | 347.2 |
| standard CTM | 0.00 | 1.00 | 261 | 287 | 241 | 193 | 355.5 | 297.0 |
| best CRP after shift (oracle) | 0.00 | 1.00 | 9 | 8 | 9 | 6.5 | 20 | 29.3 |
Table 13: ImageNet-C, . 15 severity-5 corruptions × 10 seeds after clean images; every method runs rounds past the change. False al.: rejection at or before ; power: . Delays (warm-up rounds included), medians over the trials without a false alarm, misses counted as ; the mean counts misses as . The restarting portfolio rejects on . Groups as in Shaer et al. [2026], Figure 4. Bold: best implementable strategy.
| strategy | false al. | power | median delay | mean delay | ||||
|---|---|---|---|---|---|---|---|---|
| all | noise | blur | weather | digital | ||||
| 0 restarting UP | 0.00 | 1.00 | 17 | 18 | 16.5 | 12 | 27.5 | 31.8 |
| conditional CTM (ONS) | 0.00 | 1.00 | 67 | 69 | 65.5 | 61 | 77.5 | 80.3 |
| standard CTM | 0.00 | 1.00 | 75 | 76 | 72.5 | 66 | 85 | 81.3 |
| best CRP after shift (oracle) | 0.00 | 1.00 | 8 | 7 | 8.5 | 6 | 19 | 17.3 |
| 1000 restarting UP | 0.00 | 1.00 | 42 | 41.5 | 38 | 27.5 | 88.5 | 74.1 |
| conditional CTM (ONS) | 0.00 | 1.00 | 84.5 | 85 | 74.5 | 59.5 | 143 | 106.1 |
| standard CTM | 0.00 | 1.00 | 78 | 82 | 74 | 58 | 106.5 | 87.9 |
| best CRP after shift (oracle) | 0.00 | 1.00 | 8 | 7 | 8.5 | 6 | 19 | 17.3 |
| 8000 restarting UP | 0.00 | 1.00 | 50.5 | 54.5 | 45 | 31 | 130.5 | 91.4 |
| conditional CTM (ONS) | 0.00 | 1.00 | 244.5 | 250 | 220.5 | 165 | 425.5 | 301.9 |
| standard CTM | 0.00 | 1.00 | 264 | 270 | 241 | 192.5 | 390.5 | 301.5 |
| best CRP after shift (oracle) | 0.00 | 1.00 | 8 | 7 | 8.5 | 6 | 19 | 17.3 |
Table 14: ImageNet-C, . 15 severity-5 corruptions × 10 seeds after clean images; every method runs rounds past the change. False al.: rejection at or before ; power: . Delays (warm-up rounds included), medians over the trials without a false alarm, misses counted as ; the mean counts misses as . The restarting portfolio rejects on . Groups as in Shaer et al. [2026], Figure 4. Bold: best implementable strategy.
| strategy | false al. | power | median delay | mean delay | ||||
|---|---|---|---|---|---|---|---|---|
| all | noise | blur | weather | digital | ||||
| 0 restarting UP | 0.00 | 1.00 | 16 | 16 | 16 | 12 | 25 | 23.9 |
| conditional CTM (ONS) | 0.00 | 1.00 | 65 | 66 | 64 | 60.5 | 73.5 | 73.8 |
| standard CTM | 0.00 | 1.00 | 74 | 76 | 71.5 | 66 | 83.5 | 79.9 |
| best CRP after shift (oracle) | 0.00 | 1.00 | 7 | 7 | 7 | 6 | 17.5 | 13.9 |
| 1000 restarting UP | 0.00 | 1.00 | 39.5 | 41.5 | 36 | 26 | 73.5 | 58.0 |
| conditional CTM (ONS) | 0.00 | 1.00 | 82.5 | 85.5 | 74.5 | 59.5 | 133 | 101.7 |
| standard CTM | 0.10 | 1.00 | 105 | 109 | 94 | 76 | 155 | 116.6 |
| best CRP after shift (oracle) | 0.00 | 1.00 | 7 | 7 | 7 | 6 | 17.5 | 13.9 |
| 8000 restarting UP | 0.00 | 1.00 | 43.5 | 47 | 38 | 28.5 | 99.5 | 67.8 |
| conditional CTM (ONS) | 0.00 | 1.00 | 229 | 237 | 209.5 | 165.5 | 398.5 | 274.7 |
| standard CTM | 0.10 | 1.00 | 229 | 249 | 217 | 181 | 342 | 273.7 |
| best CRP after shift (oracle) | 0.00 | 1.00 | 7 | 7 | 7 | 6 | 17.5 | 13.9 |
Table 15: ImageNet-C, . 15 severity-5 corruptions × 10 seeds after clean images; every method runs rounds past the change. False al.: rejection at or before ; power: . Delays (warm-up rounds included), medians over the trials without a false alarm, misses counted as ; the mean counts misses as . The restarting portfolio rejects on . Groups as in Shaer et al. [2026], Figure 4. Bold: best implementable strategy.
| restarting UP | conditional CTM | standard CTM | ||||
|---|---|---|---|---|---|---|
| rejected | med. final | rejected | med. final | rejected | med. final | |
| 100 | 0.00 | -0.56 | 0.00 | -0.89 | 0.03 | -0.80 |
| 500 | 0.00 | -0.79 | 0.00 | -1.54 | 0.02 | -0.94 |
| 4000 | 0.01 | -1.07 | 0.00 | -2.33 | 0.01 | -0.86 |
Table 16: ImageNet null check. The stream is the rest of the clean holdout ( for , for , for ), 100 seeds per : fraction of streams whose wealth ever reaches ( for the restarting portfolio, the martingale itself for the CTMs), and the median final log-wealth.