NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Drift-Tolerant Alarms: Sequential Tests Against a Credal Null

Deployed models raise out-of-distribution alarms by comparing each new input's anomaly score to scores from a fixed set of known-good calibration data. The statistical guarantees behind these alarms, such as bounded false positive rates or bounded false discovery rates over a stream, all rest on one fragile assumption: normal traffic tomorrow looks exactly like the calibration data from yesterday. Real normal traffic drifts. Lighting changes, sensors age, and user populations shift in ways that leave the model's accuracy intact. Under this benign drift, a monitor that bets against a single reference distribution will eventually fire with certainty. Its false-alarm guarantee does not hold, even though nothing harmful has happened.

We propose to replace the single reference distribution with a credal null. A credal set is a convex set of probability distributions, the basic object of imprecise probability. Here it contains every score distribution within a stated multiplicative distance of the calibration distribution, widened further to account for the finite size of the calibration set. We then build sequential tests, called e-processes, whose false-alarm and false-discovery guarantees hold uniformly over time for any sequence of normal distributions inside that set, including drifting and adversarially chosen ones. A byproduct is a running, always-valid lower bound on how far the stream has moved from calibration. That bound is a statement about drift severity, not just a yes/no alarm.

Core Claim

The claim is narrower and more testable than "combine credal sets with martingales." Existing streaming guarantees fail under benign drift. These include conformal martingales (Inductive Conformal Martingales for Change-Point Detection; Detecting Changes in Unlabeled Data Streams Using Martingale), betting monitors (Protected Test-Time Adaptation via Online Entropy Matching: A Betting Approach), and online false discovery rate procedures (An Online Statistical Framework for Out-of-Distribution Detection; e-GAI). The failure is not bounded: their wealth processes grow without limit under any persistent shift. No fixed tightening of the threshold repairs this over an infinite horizon.

A simple transformation of conformal p-values restores time-uniform validity against a nonparametric family of drifts. The transformed p-values plug directly into standard betting and online-FDR machinery. The transformation costs a controllable, explicitly quantified amount of power.

The construction is as follows. Let $t(x)$ be the calibration tail mass of input $x$'s score, meaning the fraction of calibration scores at least as large, inflated by a Dvoretzky–Kiefer–Wolfowitz band of width $\epsilon_m$ for calibration size $m$. The null family $\mathcal{P}_\Gamma$ is every distribution whose density relative to the calibration distribution varies by at most a factor $\Gamma^2$ across inputs. The largest tail probability any member can assign then gives the upper p-value

$$p^{\Gamma}(x) = \frac{\Gamma^2\, \bar t(x)}{\Gamma^2\, \bar t(x) + 1 - \bar t(x)}, \qquad \bar t(x) = \min\{1,\, t(x) + \epsilon_m\}.$$

On the event that the DKW band holds, which has probability at least $1-\delta$, $p^\Gamma$ is super-uniform conditionally on the past under every member of $\mathcal{P}_\Gamma$. So for any decreasing betting function $f$ that integrates to one, the wealth $M_T = \prod_{t\le T} f(p^\Gamma_t)$ is a nonnegative supermartingale under every null path. Ville's inequality then bounds the probability that the wealth ever exceeds $1/\alpha$ by $\alpha + \delta$.

This is the algorithmic content that A composite generalization of Ville's martingale theorem using e-processes leaves abstract. That paper proves e-processes are the right object for composite nulls but gives no construction, algorithm, or experiment. We supply a concrete family where the e-process is computable in constant time per step.

Two consequences follow. First, the null families are nested in $\Gamma$ and $p^\Gamma$ increases with $\Gamma$, so the wealth decreases with $\Gamma$. Running the monitor on a grid of $\Gamma$ values and reporting the largest rejected $\Gamma$ gives a lower confidence sequence on the true drift level at no extra multiplicity cost: falsely rejecting any true null implies falsely rejecting the smallest one. Second, each factor $f(p^\Gamma_t)$ is a valid per-sample e-value, meaning a nonnegative statistic with expectation at most one under the null. These e-values can be fed to e-LOND or e-LORD from e-GAI, which control online false discovery rate under arbitrary dependence. The dependence induced by a shared calibration set therefore needs no special handling. The same object thus gives both a stream-level drift alarm and per-sample anomaly flags.

Relation to Prior Work

The file's streaming false-positive-control papers motivate the problem. g-LOND (An Online Statistical Framework for Out-of-Distribution Detection) proves online FDR control for p-values that depend on each other through a shared calibration set. e-GAI (e-GAI) extends online FDR to arbitrary dependence with risk-averse wealth allocation. Both assume the normal distribution is exactly the calibration distribution, and the file records this stationarity assumption as their open limitation. We keep their allocation rules and change only the null.

A Closer Look at Generalized BH Algorithm for Out-of-Distribution Detection shows that detection rates vary strongly with calibration size in batch testing. That paper constrains our design: the $\epsilon_m$ term makes the finite-calibration cost explicit rather than hiding it. We will measure whether this cost is tolerable at practical $m$.

The martingale papers supply the betting mechanism. Inductive conformal martingales, and their "circumcised" variant that resets the log-wealth at zero (Inductive Conformal Martingales for Change-Point Detection), give fast change detection. The reset trades Ville-style guarantees for average-run-length behaviour, so we treat that variant as a baseline, not a component. POEM's scale-free online gradient betting (Protected Test-Time Adaptation via Online Entropy Matching) supplies our default adaptive betting strategy. Diagnostic Runtime Monitoring with Martingales motivates the benign-drift problem directly: its authors note that raw feature shifts need not hurt the downstream task, and that such shifts trigger false alarms. A credal null with nonzero $\Gamma$ is a principled way to tolerate exactly those shifts.

The imprecise probability papers play two roles. Their foundational role is conceptual: a credal set is the right language for "normal, give or take a bounded amount." The composite Ville theorem tells us which process to build. Their second role is optional. Credal epistemic scores could replace the underlying anomaly score: interval widths from decalibration of a frozen model (Efficient Credal Prediction through Decalibration) or Maximum Mean Imprecision in its linear-time form (Integral Imprecise Probability Metrics). We deliberately do not make this the core claim. Any scalar score can be turned into a conformal p-value, so "credal score inside g-LOND" is a feature-engineering change, not a new guarantee. We test it as an ablation. Conformalized Credal Set Predictors conformalizes the label simplex offline. It builds credal sets over labels, whereas we build them over the null score distribution, sequentially.

Research Program

The theory work has three parts. First, prove the conditional super-uniformity of $p^\Gamma$ under adaptively chosen null members, and the resulting time-uniform $(\alpha+\delta)$ false-alarm bound. Second, prove the free simultaneity of the $\Gamma$-confidence sequence. Third, prove online FDR control when the $f(p^\Gamma_t)$ are passed to e-LOND and e-LORD.

We will also characterize the power price. Under a fixed alternative, log-wealth grows at a rate equal to the expected log of the betting function under the alternative, evaluated at the transformed p-values. The loss relative to $\Gamma=1$ is roughly the expected log-growth forfeited by multiplying small p-values by about $\Gamma^2$. We expect this loss to be negligible for strong semantic shifts, whose p-values sit near $1/(m+1)$, and severe for subtle ones. The experiments are designed to locate that crossover.

Finally, we need a way to choose $\Gamma$. We will estimate it from a held-out set of declared-benign environments by taking the largest drift level each benign environment's confidence sequence certifies. This leaves the operator a single interpretable knob, the tolerance, to set in place of an arbitrary threshold.

Baselines

The naive reference point is a static threshold at 95% true positive rate on the calibration split, applied to every sample and to a running count of alarms. It shows the raw cost of ignoring multiplicity and drift.

The strongest per-sample competitor is g-LOND, the streaming FDR procedure built for exactly this dependence structure. On CIFAR-100 in-distribution versus Places365, An Online Statistical Framework for Out-of-Distribution Detection reports a false positive rate of 30.62% and F1 of 52.87%, against 45.63% and 42.85% for the KLM baseline. We will first reproduce these numbers with the same ResNet-18 and scores before any comparison. We will also run e-LORD from e-GAI on ordinary ($\Gamma=1$) conformal e-values. The file reports no numerical result for e-LORD on these image benchmarks.

For stream-level alarms, the strongest competitors are the inductive conformal martingale, its circumcised variant, and POEM's betting martingale. The file reports POEM's downstream adaptation accuracy (67.36% on ImageNet-C with a ViT) but no false-alarm rate under benign drift. The file also reports no result on Lacuna for long-horizon false-alarm rates of any of these monitors under benign drift. The Diagnostic Runtime Monitoring paper reports a 14.92-iteration detection delay versus 38.10 for a plain conformal martingale on X-Plane. We will use that figure only as context, since we are unlikely to have that simulator.

All methods share the same frozen backbone, the same anomaly score, the same calibration set, and the same betting learner where one applies. Tuning happens only on the benign-environment split. Every method gets the same budget for choosing its threshold or tolerance.

Ablations isolate the key ingredient. $\Gamma=1$ with the DKW band keeps finite-calibration robustness but tolerates no drift. $\Gamma>1$ without the band tests which of the two widenings matters. A "stricter threshold" control sets the threshold to $\Gamma^2/\alpha$ on the ordinary martingale. Swapping energy scores for decalibration width or MMI-Lin measures whether credal scores add anything beyond the credal null.

Beating the baselines means two things at matched detection delay on harmful shifts. First, our long-run false-alarm rate on benign streams stays at or below $\alpha$ while theirs rises toward one. Second, per-sample FDR stays below target under benign drift, where g-LOND's is expected to exceed it, with F1 on harmful segments within a few points of g-LOND's.

Why not just…?

Why not just use a stricter threshold? For per-sample decisions, this alternative is essentially right, and we will say so plainly. The transformation is monotone, so a per-sample rejection at $p^\Gamma\le\alpha$ is close to rejecting at roughly $p\le\alpha/\Gamma^2$. The difference appears in the sequential monitor. Under persistent benign drift, the ordinary wealth has positive expected log-growth, so it crosses any fixed threshold with probability one. The credal wealth remains a supermartingale. The "stricter threshold" ablation on long benign streams (tens of thousands of steps) will show this directly. If the stricter threshold matches our false-alarm curve at those horizons, the stream-level claim fails.

Why not just recalibrate on a sliding window of recent data? This is the real threat for slow drift. Refreshing the calibration set tracks benign change cheaply. The cost is that the refreshed set absorbs whatever arrived, including early harmful shift and anomalies. It also discards the exchangeability that makes conformal p-values valid. We will run a sliding-window conformal martingale with several window sizes. We expect it to hold false alarms down on benign streams but to miss or delay gradual harmful shifts, because the window adapts to them. If it detects gradual harmful shifts as quickly as our method, its lack of a formal guarantee becomes the only argument left, and we will report that honestly.

Why not just estimate the shift and reweight the calibration scores? Density-ratio reweighting targets a specific estimated shift and requires a ratio estimate in feature space. That estimate is hard to obtain in high dimensions and carries no guarantee when it is misspecified. Our family instead covers every shift up to $\Gamma$ without estimating any. We will include a classifier-based reweighting baseline on the corruption benchmarks. We will treat our method as preferable only if it matches reweighting's false-alarm control without its estimation step.

Proposed Experiments

The main testbed builds long streams from CIFAR-10-C and CIFAR-100-C with a ResNet-18 trained on clean data. Low-severity corruptions whose accuracy drop falls below a fixed tolerance are labelled benign drift. High-severity corruptions and semantic out-of-distribution data (Places365, SVHN, TinyImageNet) are labelled harmful. Streams interleave benign phases lasting thousands of steps with harmful change-points. ImageNet-C with a ResNet-50 or ViT tests scale. CIFAR-10-CD from Early Concept Drift Detection via Prediction Uncertainty adds concept drift, and the Numenta Anomaly Benchmark adds a univariate check against e-GAI's own setting.

Metrics are:

  • the empirical probability of any false alarm over benign horizons of increasing length;
  • mean detection delay after a harmful change-point;
  • per-sample FDR and F1 on the mixed streams;
  • coverage of the $\Gamma$-confidence sequence, checked on synthetic streams where the true density-ratio bound is known.

Three decisive checks decide the proposal. The first is a false-alarm-versus-horizon curve on benign streams, which should be flat at $\alpha$ for our method and rising for every $\Gamma=1$ baseline, including the stricter-threshold control. The second is a power-price curve of detection delay against $\Gamma$ and shift severity. It will locate where the tolerance becomes too costly, and it may show that subtle harmful shifts inside the tolerance are undetectable by design. The third is a held-out benign environment test: we choose $\Gamma$ on some corruption types and check that false alarms stay controlled on unseen benign corruption types. If the tolerance learned on one kind of benign drift does not transfer, then the credal null is only as good as the operator's specification, and the paper's claim becomes conditional on that specification.