A deployed model needs to know when the data it sees has stopped looking like the data it was built on. The most statistically sound streaming detectors frame this as a betting game. A gambler bets, sample by sample, that new data differs from reference data. If the two really are the same, the gambler's wealth cannot grow on average, so large wealth is evidence of drift, and that evidence stays valid however long the gambler keeps watching. The existing instantiation, Nonparametric Two-Sample Testing by Betting, bets with a kernel distance (maximum mean discrepancy, or MMD). Its authors list extending the game to f-divergences and Rényi divergences as open work. Separately, information-theoretic analyses of distribution shift show that no single divergence is best: An Information-Theoretic Framework for Out-of-Distribution Generalization proves that χ² beats KL for Gaussian shifts while total variation wins for extreme Bernoulli shifts. Nobody has an automatic rule for choosing which divergence to use on a given stream.
This note proposes that the betting game itself is that rule. We build several gamblers, each betting according to a different divergence, and pool their wealth. A pool of fair bets is still a fair bet. The detector therefore keeps exact false-alarm control while its money flows toward whichever divergence the current drift actually rewards. In plain terms: choosing the divergence becomes an online portfolio problem with a known regret cost of about $\log K$ for $K$ candidate divergences. It is no longer a modeling decision made before deployment.
Core Claim
Every bettor shares one online probabilistic classifier. It is trained in the evaluate-then-train manner of Sequential Covariate Shift Detection Using Classifier Two-Sample Tests: each new point is scored before the classifier takes a gradient step on it, so no data is held out. The classifier's logit $\hat\ell_t(z)$ is a running estimate of the log density ratio between the stream and the reference. Bettor $k$ passes this logit through a bounded, monotone transform $\psi_k$ that mirrors one divergence's variational witness function:
- a sign function gives a total-variation bettor, which is essentially Jang et al.'s accuracy test;
- a clipped linear ratio gives a χ²-like bettor;
- the raw clipped logit gives a KL-like bettor;
- a normalized power $e^{(\alpha-1)\hat\ell}$ gives a Rényi-α bettor, which places heavy bets on rare high-ratio points when $\alpha>1$ and on broad mass reweighting when $\alpha<1$.
At each step we draw a fresh reference point $x_t$ and stream point $y_t$. Bettor $k$'s wealth then evolves as
$$W^{(k)}_t = W^{(k)}_{t-1}\bigl(1 + \lambda^{(k)}_t\,[\psi_k(\hat\ell_{t-1}(y_t)) - \psi_k(\hat\ell_{t-1}(x_t))]\bigr).$$
Here $\psi_k$ takes values in $[-1/2,1/2]$, and the bet size $\lambda^{(k)}_t\in[-1,1]$ is chosen by Online Newton Step from past data only, as in the betting paper. If there is no drift, the bracketed payoff has mean zero given the past. Each $W^{(k)}$ is then a nonnegative martingale, and so is the pooled wealth
$$W_t = \sum_{k=1}^K \pi_k W^{(k)}_t,$$
where the fixed prior weights $\pi_k$ sum to one. By Ville's inequality, the rule "alarm when $W_t \ge 1/\delta$" has false-alarm probability at most $\delta$ over an infinite horizon. That is a uniform guarantee, and it removes the per-step-only limitation and the heuristic decay schedules Jang et al. acknowledge.
Because $\log W_t \ge \max_k \log W^{(k)}_t + \log \pi_{k}$, the pool's detection delay matches the best single divergence in hindsight up to an additive $\log K$ in log-wealth. The best single divergence can be far faster than a default choice when drift is concentrated in rare regions or spread as mild reweighting.
What is new is not a single divergence test. It is the combination of three things: f- and Rényi-type witnesses inside an anytime-valid betting test, a shared streaming density-ratio estimator that keeps per-sample cost constant (no kernel matrices), and divergence selection performed by the wealth process rather than by hand.
Research Program
The first piece is the bettor family and its theory. We will show that, when the classifier is consistent, the growth rate of bettor $k$'s log-wealth is bounded below by a quantity monotone in the divergence that $\psi_k$ approximates. This mirrors how the betting paper ties power to regret. We will also characterize which drift shapes favor which $\psi_k$. Rényi bettors with $\alpha>1$ should win when a small new subpopulation appears, where the density ratio is large on little mass. Bettors with $\alpha<1$ or TV-like bettors should win under multimodal reweighting that preserves the mean, the scenario Beyond Euclidean Summaries: Online Change Point Detection for Distribution-Valued Data shows defeats moment tracking.
Multiple Source Adaptation and the Renyi Divergence supplies the intuition that α trades common-support mass against worst-case ratios. That work uses α in offline source weighting, whereas we use it to shape bets.
The second piece is the context-adaptive extension. We will replace fixed priors $\pi_k$ with mixing in the style of fixed-share forecasting. When drift changes character across a long stream, wealth can then migrate between divergences without the $\log K$ penalty compounding. This mixing preserves the martingale property because the mixing weights depend only on the past.
The third piece is robustness of the ratio estimator. Two choices keep the test valid even when the density-ratio estimate is poor: transforms are bounded, and every bet is placed before the classifier sees the point. A bad estimator costs only power, never validity.
We deliberately do not use the minimax von Mises estimators of Nonparametric Estimation of Renyi Divergence and Friends. That paper constrains our design: its optimal corrections require high-dimensional numerical integration, which is infeasible per sample. We also treat the hash-based estimator of Scalable Hash-Based Estimation of Divergence Measures, which gets linear-time f-divergence estimates, as an alternative ratio source to test in low-dimensional tabular streams.
The detector is marginal: it tests whether the stream's distribution changed, not whether a change is harmful. Context-Aware Drift Detection shows that unconditioned MMD "falsely signaled drift with 100% certainty" under benign subpopulation shifts, and our detector will inherit that behavior. We will report it rather than hide it. We will also test one context-stratified variant, in which reference points are drawn to match the stream point's observed context, as a first step toward their conditional setting.
Baselines
The naive reference point is a fixed-window two-sample test with data splitting: a classifier trained on half of each window and tested on the other half. Jang et al. report that data-splitting and Wald-test baselines need "640 to 720+ samples" to reach 80% detection on their ImageNet multiple-shift scenario. Any streaming method should beat this easily.
The strongest existing streaming competitor is the evaluate-then-train sequential classifier test of Jang et al. On the same ImageNet scenario it reaches an 80% detection rate with "only 190 shifted samples" while "consistently respect[ing] the 1% False Positive Rate limit". This is the bar we must beat. We will run it with the identical online classifier, learning rate and feature extractor as our bettors, so that the only difference is the betting transform and the pooling.
The second strong competitor is MMD betting from Shekhar and Ramdas, with a mixture over several kernel bandwidths and the same Online Newton Step bet-sizing and per-sample compute budget. To meet that budget we will subsample its kernel evaluations, and we will report both the budget-matched and the unconstrained versions. No reported result was found on Lacuna for MMD betting on the ImageNet, Insects or tabular drift streams, so we will produce its numbers ourselves.
For cheap univariate monitoring we include the Incremental Kolmogorov-Smirnov test of Fast Unsupervised Online Drift Detection Using Incremental Kolmogorov-Smirnov Test, run per feature with a Bonferroni correction. For distribution-geometry detection we include IDD from Zeng et al., which reports F1 ≈ 0.75 and ARL₁ ≈ 1 on FlowCAP-II.
Two ablations isolate the key ingredient. In the first, each single-divergence bettor runs alone, which shows how much the best fixed choice varies across drift types. In the second, the hindsight-oracle bettor picks the best $k$ per stream after the fact; this is not a valid test, and serves only as a ceiling. The proposal beats its competitors if the pooled detector:
- matches or improves on Jang et al.'s 190-sample figure on ImageNet M-shift;
- is never more than the predicted $\log K$-equivalent delay behind the per-stream best single bettor;
- beats every fixed single bettor on average across drift types;
- holds uniform false-alarm rate at or below δ on null streams of length at least $10^5$.
Why not just…?
Why not just use the evaluate-then-train classifier test, since it already estimates the density ratio? It is the TV-like member of our family. Our claim is precisely that it is optimal only for some drift shapes, as the χ²-versus-TV dominance results in Liu et al. suggest for the analogous bound problem. If the single-bettor ablation shows the sign transform is within noise of the best bettor on every stream, the portfolio adds nothing, and we will report that as a negative result.
Why not just run MMD betting with a mixture of kernel bandwidths? This is the most serious threat. Bandwidth mixing already gives some adaptivity across drift scales, and MMD is a well-understood statistic. Our expected advantages are narrower. First, kernel bets are quadratic in history unless subsampled, while ours cost constant time per sample. Second, the Rényi bettors with $\alpha>1$ target rare-region emergence, which a smooth kernel mean embedding dilutes. The budget-matched comparison on rare-subpopulation synthetic streams, together with the Abrupt Insects stream, settles this. If MMD mixtures tie us there at equal compute, our contribution shrinks to computational efficiency.
Why not just tune α offline on simulated drifts, or Bonferroni-combine a few fixed tests? Offline tuning assumes future drift resembles the simulated drift. The fixed-share experiment on streams with changing drift type tests exactly that assumption. Bonferroni costs $\log K$ in threshold, the same price our mixture pays, but it cannot shift weight over time. Our pooled wealth also behaves at least as well as a union bound without separate threshold bookkeeping. We will include the Bonferroni union of the same $K$ bettors so that any gain is attributable to pooling rather than to the bettor family.
Proposed Experiments
The vision experiments reuse Jang et al.'s ImageNet multiple-shift and IWildCam setups with a frozen pretrained feature extractor. We report:
- samples needed to reach 80% detection;
- detection delay at δ = 0.01;
- empirical uniform false-alarm rate on unshifted streams.
The tabular and sensor experiments use the Insects, Abrupt Insects, Keystroke, Posture and Bike streams from dos Reis et al., plus the NOAA, METER, RIALTO and AGR(A) streams from Bounded Context Management for Tabular Foundation Models on Stream Learning. On the dos Reis streams we also measure the fraction of labels requested when alarms trigger retraining; dos Reis et al. report reaching topline-comparable accuracy with "42% to 47%" of labels.
The decisive synthetic suite reproduces Zeng et al.'s multimodal reweighting and copula shifts and adds a rare-subpopulation emergence family with injected mass from 0.5% to 10%. Here the ground-truth best divergence is known by construction, so we can check whether wealth actually concentrates on the predicted bettor. The contextual Gaussian mixtures from Cobb and Van Looveren measure false alarms under benign shift for both the marginal and context-stratified variants.
The single most informative check has two parts. First, on the rare-emergence family, the Rényi α > 1 bettor should dominate and the pool should track it within the $\log K$ bound. Second, on mean-preserving reweighting, a different bettor should dominate and the pool should again track it. If the same bettor wins both, the premise that the right divergence depends on context is false for streaming detection, and the proposal should be abandoned.
References
- Nonparametric Two-Sample Testing by Betting
- An Information-Theoretic Framework for Out-of-Distribution Generalization
- Sequential Covariate Shift Detection Using Classifier Two-Sample Tests
- Beyond Euclidean Summaries: Online Change Point Detection for Distribution-Valued Data
- Multiple Source Adaptation and the Rényi Divergence
- Nonparametric Estimation of Renyi Divergence and Friends
- Scalable Hash-Based Estimation of Divergence Measures
- Context-Aware Drift Detection
- Fast Unsupervised Online Drift Detection Using Incremental Kolmogorov-Smirnov Test
- Bounded Context Management for Tabular Foundation Models on Stream Learning