Many deployed classifiers face a mixed world. The inputs, such as app features, sensor readings, or user sessions, come from a distribution that behaves statistically. The labels, by contrast, can be noisy, strategic, or deliberately poisoned. Theory calls this the hybrid stochastic-adversarial setting. Here a learner can reach sublinear regret (its cumulative loss minus that of the best fixed classifier, growing slower than the number of rounds) for classes like thresholds, which are unlearnable against a fully adversarial opponent. The trick is to "hallucinate" future inputs by resampling past ones. Every efficient algorithm in this line assumes the input distribution never changes. In practice it does. On a 12-year Android malware stream, a LightGBM model's F1 falls from 97.49% in-distribution to 47.24% on far-future data (LAMDA).
We propose a single change with a precise rationale. The learner should choose which past inputs it hallucinates from using a cheap drift test that looks only at inputs, never at labels. In this model the labels are already treated as adversarial, so label changes need no detection, and a label-blind trigger cannot be gamed by label poisoning. The underlying observation is that drift too small for a test to see is also too small to hurt the hallucination step much. A detector-gated pool can therefore track drift at the cost of one learner plus a logarithmic-time test, instead of an ensemble of learners over many time scales.
Core Claim
The state of the art for unknown input distributions is the random-playout algorithm of Wu, Sima and Szpankowski. It resamples past features without replacement and calls an offline "Mixed-ERM" solver on real and simulated data. It achieves $\tilde O(T^{3/4})$ regret for finite VC classes, at a cost of $O(\sqrt{T}\log T)$ solver calls per round. Under $K$ discrete feature-distribution shifts it gets $\tilde O(T^{4/5}K^{1/5})$. Its resampling pool is all of history, so after a shift it keeps hallucinating from an obsolete distribution.
Suppose instead the learner restarted the playout exactly at the $K$ shift points, with segment lengths $T_k$. Hölder's inequality then gives
$$\sum_{k=1}^{K} T_k^{3/4} \le K^{1/4}\,T^{3/4},$$
which is smaller than $T^{4/5}K^{1/5}$ whenever $K<T$. The open question is what detection costs when shift times are unknown and drift may be gradual.
Our conjecture rests on a matching of scales, which we will try to prove. Suppose a shift of total-variation size $\varepsilon$ goes undetected by a window of $n$ samples. Then $\varepsilon \lesssim 1/\sqrt{n}$, which is where two-sample tests lose power. The extra hallucination error from that shift over those $n$ rounds is at most about $\varepsilon n \lesssim \sqrt{n}$, which is the same order as the statistical error the learner already pays. If this holds, the regret of the gated learner is bounded by the $K^{1/4}T^{3/4}$ term plus a delay term. That delay term depends only on shifts large enough to detect quickly. Continuous drift with bounded total variation would reduce to an effective number of detected shifts. What would be new is a hybrid-model regret bound under input drift with these properties: it uses no label information to adapt, and its per-round compute is one learner's solver calls plus an $O(m\log N)$ test update.
Research Program
The algorithm keeps one random-playout learner in the style of Wu et al. Its hallucination pool is the feature history since the last alarm. Alarms come from the incremental Kolmogorov–Smirnov test of Reis et al., which keeps windows in a randomized search tree so each update costs $O(\log N)$ and each test evaluation $O(1)$. That test is univariate. For high-dimensional inputs such as LAMDA's bag-of-tokens features, we run it on $m$ random one-dimensional projections plus the learner's own score. Correlated drift that no projection sees is a known blind spot, and we will measure it.
On an alarm we do not discard the model. We freeze the old pool and start a new one, and the playout draws from the new pool once it holds enough samples. A label adversary is handled by the playout itself, so it cannot force alarms.
The theoretical work has three steps. First, prove the delay-cost lemma above under Wu et al.'s approx-admissibility condition, measuring drift in total variation. Second, extend it to continuous drift with variation budget $V_T=\sum_t d_{TV}(P_t,P_{t-1})$. Third, state honestly what the bound does not cover. It compares against a fixed classifier per segment, and real changes in $P(Y\mid X)$ that call for a moving comparator are outside it. For the efficiency–regret tradeoff, we treat the number of hallucinated playouts per round as a knob and trace the empirical frontier of solver calls against regret.
Baselines
The do-nothing reference is a model trained once on the initial period and never updated. On LAMDA this is the LightGBM result already reported: F1 of 97.49% IID, 59.48% NEAR and 47.24% FAR (LAMDA). We rerun it on our streaming protocol so numbers are comparable.
The strongest existing hybrid method is Wu et al.'s random playout with the full-history pool. It is the only algorithm in the file with a guarantee under feature shifts. The file reports no empirical results for it (no reported result found on Lacuna for Wu et al.'s algorithm on any benchmark), so we implement it with the same Mixed-ERM solver and the same playout count as ours. Beating it means lower cumulative mistakes after shifts at an equal solver-call budget, with no loss on stationary segments.
The strongest practical stream baseline is IKS-triggered model replacement with plain retraining. Reis et al. report that it matches a fully supervised topline while requesting 42% to 47% of labels on their drift datasets. We run it with identical projections and thresholds.
For tracking drift, the principled competitor is a geometric-interval ensemble of playout learners, the discrete analogue of the meta-base ensembles in Efficient Methods for Non-stationary Online Learning. It costs a $\log T$ factor more solver calls, and our target is to match its regret at single-learner cost. On LAMDA we also include the active-learning drift-adaptation result reported there, 43% F1 at a budget of 400 labels.
The key ablation swaps the label-blind gate for a gate on error-rate drift. This isolates whether ignoring labels is what buys robustness.
Why not just…?
Why not just restart a standard ERM learner whenever IKS fires? This is the most serious threat on benign data. If LAMDA labels are not adversarial, it may tie us. The theoretical case against it is specific: follow-the-leader can be driven to linear regret by alternating labels even when features are i.i.d., which is exactly what the hybrid playout prevents (Lazaric and Munos). Our experiments settle it with label-flipping adversaries injected into otherwise real streams. If detect-and-restart ERM matches us there too, the playout component is unnecessary, and we will report that.
Why not just run Wu et al. unchanged, since it already handles $K$ shifts? Its pool mixes obsolete features into every hallucination. Our Hölder argument predicts a $K^{1/4}T^{3/4}$ versus $K^{1/5}T^{4/5}$ gap. The synthetic threshold experiments with known $K$ test whether that gap is visible at realistic horizons or swamped by constants.
Why not just use a sliding window or a multi-scale ensemble? A fixed window must guess the drift timescale. An ensemble removes the guess but multiplies solver calls by $\log T$, on top of an already $O(\sqrt{T}\log T)$ per-round cost. We will plot all three on the same solver-call-versus-regret axes. If the ensemble dominates us at modest $T$, the gate's value is purely computational, and we will say so.
Why not detect drift from labels or with a robust neural detector? Label-based triggers are exactly what poisoning exploits: injected data can fake or mask drift (Adversarial concept drift detection under poisoning attacks). That paper's energy-based detector defends against this, but it trains a network per window and carries no regret guarantee. Our label-blind gate sidesteps label poisoning by construction. It does not defend against feature poisoning, which we test separately.
Proposed Experiments
Synthetic threshold and interval classes. Features follow drifting distributions with abrupt, gradual and recurring profiles. Labels come from an adaptive adversary that flips labels to maximize follow-the-leader's error. Here true regret is computable, and we can check the predicted scaling in $K$ and $V_T$.
Reis et al. suite. On Arabic, Posture, Bike, Keystroke, Insects and Abrupt Insects, we measure accuracy, label usage and per-round time. We test both with and without 10–30% adversarial label flips.
LAMDA. We stream LAMDA chronologically, with logistic regression as the approximate ERM solver. We report F1 and false-negative rate on the NEAR and FAR periods, together with solver calls per round.
Decisive checks. Four results would confirm or refute the proposal. First, under label poisoning, the gated learner must keep its alarm rate near the clean rate while the error-gated ablation does not. Second, under abrupt drift, it must beat full-history playout at equal compute. Third, it must come within a small constant of the $\log T$ ensemble's regret at roughly $1/\log T$ of its solver calls. Fourth, the regret curves must flatten for shifts below detectability, as the scale-matching argument predicts. If the fourth check fails, the core lemma is wrong. In that case the result is a heuristic, and we will present it as one.
References
- LAMDA: A Longitudinal Android Malware Benchmark for Concept Drift Analysis
- Oracle-Efficient Hybrid Online Learning with Unknown Distribution
- Fast Unsupervised Online Drift Detection Using Incremental Kolmogorov-Smirnov Test
- Efficient Methods for Non-stationary Online Learning
- Hybrid Stochastic-Adversarial On-line Learning
- Adversarial concept drift detection under poisoning attacks for robust data stream mining