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

Token Gates as Sequential Change Detectors for Video Transformers

Video models waste most of their compute because consecutive frames are nearly identical. One way to save that compute is to keep each patch's result from the previous frame and recompute only the patches that changed. Deciding which patches changed is a change-detection problem, and in high dimensions change detection is hard: the random fluctuation of a test statistic grows with the number of monitored dimensions, so a fixed-size real change sinks below the noise. This proposal argues that the two problems should be solved with one mechanism. Each image-patch token position becomes its own data stream with its own small sequential test, a CUSUM-style statistic that adds up evidence over frames. The decision to recompute a token is then a statistically calibrated alarm instead of a hand-set threshold. Adding these per-token tests sparsely across positions also gives a scene-level change detector, and its delay should grow with the number of tokens that actually changed rather than with the full token count times the channel width.

The opportunity exists because today's gates and today's detectors each lack the other's structure. Eventful Transformers (Eventful Transformers: Leveraging Temporal Redundancy in Vision Transformers) recompute the tokens whose embedding moved most since a stored reference, measured by distance (the $L_2$ norm). They get 2–4× compute savings, but the gate looks at one frame at a time and has no false-alarm control. It cannot tell slow drift from noise, so it needs heuristic periodic "flushes" that recompute everything. On the other side, high-dimensional change detectors treat a video as one flat vector. MOUSSE (Change-Point Detection for High-Dimensional Time Series With Missing Data) monitored 67,744 raw pixels this way. Detectors of this kind then run into the loss proven by Change Detection in Multivariate Datastreams: Likelihood and Detectability Loss: the signal-to-noise ratio of likelihood monitoring decays like $1/d$, and test power falls from near 1.0 at $d=1$ to about 0.1 at $d=128$ for a fixed-size change.

Core Claim

Temporal redundancy means that real changes in video are sparse across token positions and persistent in time. Those two properties are exactly what a multi-stream sequential detector uses to escape detectability loss. Our claim is that a gate built from per-token sequential tests, with three ingredients, can do both jobs. The three ingredients are a shrinkage estimate of what the post-change token looks like, evidence accumulated over frames, and sparse aggregation across tokens. The gate should match or beat the compute–accuracy trade-off of top-$r$ and threshold gates while removing the need for flushes. The same statistics should also act as an unsupervised scene-change detector that keeps spatial localization. The specific new elements are the reframing of the gate as a set of parallel quickest-change detectors and the use of the false-alarm rate as the compute budget. None of the connecting work in the file does either.

Mechanism

For token position $k$ at frame $t$, let $x_{k,t}$ be the token embedding entering a transformer block, and let $z_k$ be the stored reference from the last recomputation. Write the residual as $e_{k,t} = x_{k,t} - z_k$. During stretches where the token is not recomputed, we estimate the residual noise covariance $\hat\Sigma$. The channel width $p$ (for example 768) is large compared with the number of frames available, so we pool the estimate across positions and use Ledoit–Wolf shrinkage. Ledoit–Wolf shrinkage pulls a noisy sample covariance toward a simple target matrix so that it stays well-conditioned. We reuse this ingredient from High-Dimensional Sequential Change Detection. That paper shows that when $p/n$ stays bounded away from zero, detection delay is governed by how well the post-change distribution is estimated, and it shows that this shrinkage estimator minimizes the delay among shrinkage estimators.

The post-change mean $\hat\mu_{k,t}$ is a shrunken running average of recent residuals. The per-token statistic is a CUSUM, a running sum that rises when evidence of change accumulates and is clipped at zero otherwise:

$$S_{k,t} = \max\Big(0,\; S_{k,t-1} + \hat\mu_{k,t}^\top \hat\Sigma^{-1} e_{k,t} - \tfrac12 \hat\mu_{k,t}^\top \hat\Sigma^{-1}\hat\mu_{k,t}\Big).$$

This projects the 768-dimensional residual onto one estimated change direction before accumulating. Projecting first avoids the $1/d$ variance growth that a raw $L_2$ gate inherits. Token $k$ is recomputed when $S_{k,t} > h$, and recomputation resets both $z_k$ and $S_{k,t}$.

A slow illumination ramp produces small residuals that point the same way frame after frame, so $S_{k,t}$ crosses $h$ eventually. A single-frame gate never fires on such a ramp, which is why Eventful Transformers need flushes; under this rule the slow-drift case is handled by construction.

For the scene-level alarm we follow the sparse multi-stream analysis of Large-Scale Multi-Stream Quickest Change Detection via Shrinkage Post-Change Estimation. We sum hard-thresholded statistics, $\sum_k \max(0, S_{k,t} - \tau)$. That paper shows hard thresholding makes delay scale with the number of affected streams $r$ rather than with the total number of streams $K$.

The threshold $h$ has a direct operational meaning. The average run length to false alarm, meaning the average number of frames before a test fires on an unchanged token, sets the expected rate of unnecessary recomputations. The compute budget therefore becomes a false-alarm rate, calibrated on static footage, instead of an arbitrary top-$r$.

One known gap has to be handled honestly. The theory in Malinas et al. and Wang et al. assumes independent observations over time, but token noise in video is autocorrelated. We will prewhiten each stream with a shared first-order autoregressive filter and calibrate $h$ and $\tau$ with a temporal block bootstrap. We will also measure how far realized false-recompute rates drift from their targets. Characterizing this gap is part of the contribution.

Research Program

The work proceeds in three stages. The first stage is controlled synthetic study using the Gaussian setup of Alippi et al. We vary total dimension, the number of changed streams $r$, the change magnitude, and the strength of temporal autocorrelation. The goal is to confirm that our detection delay stays flat as $K$ grows while pooled and full-likelihood detectors degrade. We will also locate where autocorrelation breaks calibration.

The second stage drops the gate into the Eventful Transformer architectures and measures compute–accuracy curves, flush dependence, and robustness to drift.

The third stage uses the same statistics, with no labels, as a scene-change and action-boundary detector. We compare against detectors that either flatten the video or depend on an external pose model.

Baselines

The naive reference point is the dense model that recomputes every token on every frame. For ImageNet VID object detection, Eventful Transformers report this dense ViT baseline at 467 GFlops. Any gate must keep accuracy close to this baseline while cutting compute.

The strongest existing method on the compute question is Eventful Transformers itself, with its top-$r$ and threshold gates and periodic flushes. It is the closest competitor because it already uses the same reference-buffer architecture and delta updates. On ImageNet VID it reports 122 GFlops versus 467 for the dense ViT, a 3.8× reduction, with a 1.68% mAP drop. On EPIC-Kitchens 100 it reports a 2.4× compute reduction with a 1.62% top-1 drop. We will run their released configurations on the same backbones, frames, and evaluation code. Their gate thresholds, $r$, and flush interval get the same tuning budget as our $h$ and $\tau$, selected on the same validation split. Beating them means either a smaller accuracy drop at matched GFlops or fewer GFlops at matched accuracy, with flushing disabled for our method. It also means a clear margin on a drift-stress split where we add synthetic slow illumination ramps and sensor noise to ImageNet VID.

A learned alternative is the spatial-temporal token selector of Efficient Video Transformers with Spatial-Temporal Token Selection. It trains a small scoring network to keep tokens and reports a 20% GFLOPs reduction on Kinetics-400 for MViT with an accuracy drop under 0.7%. We include it on Kinetics-400 to check that a statistics-based gate is competitive with a trained selector that uses a fixed budget.

Two ablations isolate the key ingredients. The first is a calibrated single-frame gate: the same shrinkage-whitened projection and the same false-alarm calibration, but with no accumulation over frames. The difference between this ablation and our method measures the value of the sequential component. The second removes shrinkage, using a raw sample covariance or an identity matrix, and replaces sparse aggregation with a plain sum. This separates the contribution of the Malinas-style estimation from the contribution of the Wang-style aggregation.

For scene-change detection, the comparisons are as follows. We run a CUSUM on the globally pooled embedding, and the same with PCA in place of pooling. We run MOUSSE on downsampled pixels; MOUSSE localized subtle flares on the Solar Dynamics Observatory video without a numeric score. We run DeepLocalization (DeepLocalization: Using change point detection for Temporal Action Localization), which detects changes in pose keypoints; on SynDD2 it reports 51% event detection accuracy versus a 40% prior benchmark. Beating DeepLocalization means exceeding 51% on SynDD2 overall without a pose model. It also means a larger gain on the "quiet" distractions such as talking and singing, where the authors say the pose-based method fails.

Why not just…?

Why not just calibrate the Eventful gate by normalizing each token's distance? This is the most serious threat, and it is exactly our first ablation. For abrupt, large changes, a single-frame test may already be enough. In that regime a CUSUM's advantage is only a few frames of delay, and the calibrated threshold could tie with our method. Sequential testing helps when per-frame evidence is weak but persistent, as with slow drift, subtle motion, and quiet gestures. We will therefore report results separately on abrupt and gradual splits. If the calibrated single-frame gate matches ours on the drift-stress split and on SynDD2 quiet distractions, the accumulation idea fails and we will say so.

Why not just pool the frame into one embedding, or reduce it with PCA, and run standard change detection? Pooling divides the per-token signal by roughly $K/r$ when only $r$ of $K$ positions change, which is the sparse regime of Wang et al. Pooling also throws away the localization that a gate needs. Xie et al. report that single-subspace tracking was much slower or failed outright on nonlinear data where MOUSSE detected changes within 3–5 observations. Our synthetic sweep over $r/K$ and the pooled-CUSUM baseline test this directly.

Why not just monitor model confidence, as in Early Concept Drift Detection via Prediction Uncertainty? That detector needs the true label to compute its uncertainty index. It produces one number per frame, so it cannot say which tokens to recompute. We will still include a label-free variant that monitors maximum softmax confidence, which is our adaptation and not their method, as a scene-level baseline. It is cheap, and if it matches our scene alarms we will report that it does.

Why not just subsample frames uniformly or flush on a schedule? Both are compute knobs that ignore content. Moreno-Muñoz et al. (Continual Learning for Infinite Hierarchical Change-Point Detection) argue that sequential detection needs enough observations to confirm a change, so a change that is shorter than the evidence window under subsampling is missed entirely. We will sweep the subsampling rate and the flush interval on the same compute axis as our curves.

Decisive Checks

Three results would settle the proposal. First, on synthetic streams, scene-alarm delay should stay roughly constant as $K$ grows at fixed $r$, while the pooled and full-likelihood detectors slow down as predicted by the $1/d$ analysis. Second, on held-out static footage, the realized false-recompute rate should stay within a small factor of its target after block-bootstrap calibration; if it does not, the budget-as-false-alarm-rate claim fails. Third, with flushing disabled, our gate should dominate Eventful Transformers' gate and the calibrated single-frame ablation on the ImageNet VID drift-stress split while staying at or below a 1.68% mAP drop at about 122 GFlops on clean ImageNet VID. The same statistics should also exceed 51% event detection accuracy on SynDD2. If the third check fails only against the calibrated single-frame gate, the useful finding is that the gate's real problem was calibration rather than accumulation.