Drift Detection That Treats Every Drift Shape Equally

A data stream drifts when its distribution changes over time. Hinder and colleagues showed that "no drift in this window" is the same statement as "the observations are statistically independent of their arrival times." That turns drift detection into a question about the dependence between a feature and the clock. A separate literature asks how to measure dependence equitably: two relationships with the same noise level should get the same score, whatever the shape of the function linking them. This proposal joins the two ideas. Drifts have shapes in time. A sudden drift is a step, an incremental drift is a ramp, gradual drift is a smooth sigmoid, and recurring concepts are periodic. A detector should respond to how much the distribution moved, not to which shape the movement took.

The core proposal is a streaming statistic, the robust copula dependence between a feature's ranks and time. It has three properties. First, it has an exact interpretation as the average total-variation distance between "the distribution right now" and "the distribution over the whole window," which makes it a bounded drift intensity in $[0,1]$. Second, it can be updated in logarithmic time per arriving point using the same tree structure that makes incremental Kolmogorov–Smirnov testing fast. Third, because it depends only on ranks, its null distribution is known exactly and does not depend on the data. The alarm threshold can therefore be computed once, with no per-window permutation tests. We will test whether this gives drift detection whose power is flat across drift shapes, and whether it has fewer false alarms than the kernel-based independence tests used today.

Core Claim

Let $U = F_W(X) \in [0,1]$ be a feature's rank within a sliding window of $W$ points, and let $S \in [0,1]$ be each point's relative arrival position in that window. $S$ is uniform by construction, so the pair $(U, S)$ already lives in the copula domain, the unit square where the marginals have been flattened to uniform. The robust copula dependence (RCD) of Chang et al. is half the $L_1$ distance between the copula density $c(u,s)$ and the independence density 1. It reduces to

$$\mathrm{RCD}(X,S) \;=\; \tfrac12\iint |c(u,s)-1|\,du\,ds \;=\; \int_0^1 \mathrm{TV}\big(P_{X\mid S=s},\,P_X\big)\,ds ,$$

where $\mathrm{TV}$ is the total-variation distance between the distribution at relative time $s$ and the window-pooled distribution. The identity holds because $c(u,s) = p(x\mid s)/p(x)$ once we change variables from $u$ back to $x$.

This identity is the conceptual payoff. The drift-intensity measure of Feature Selection for Concept Drift Detection is based on Kullback–Leibler divergence. It can diverge when a concept shifts to a nearly disjoint support. The quantity above cannot diverge. It is an "average fraction of probability mass that moved," and it inherits the finite estimation risk that A Robust-Equitable Measure for Feature Ranking and Selection proved for RCD and denied to mutual information. The mixture-noise property of robust-equitability also has a direct drift reading. Suppose a drift affects only a fraction $\pi$ of the window, for example a short recurring episode. The score then scales proportionally with $\pi$ times the size of the shift. It does not jump or vanish.

The claim is therefore concrete. At a fixed average run length before a false alarm, a detector built on this statistic should have detection power that depends on the window-averaged total-variation budget and not on the temporal profile of the drift. Existing independence-based detectors should show strong shape-dependence.

Research Program

The estimator uses the structure that Measuring Dependence Powerfully and Equitably exploited for $MIC_e$. There, the search over two-dimensional grids reduces to fixing one axis to a uniform partition and adapting the other. For drift, the uniform axis is given for free: we split the window into $B$ equal time blocks. On the feature axis we use $k$ equal-frequency rank bins. The estimate is half the $L_1$ discrepancy of the $B\times k$ count table from its independence expectation $W/(Bk)$.

We maintain the ranks in a treap, the randomized search tree used by Fast Unsupervised Online Drift Detection Using Incremental Kolmogorov-Smirnov Test. When a point arrives and the oldest leaves, each time-block boundary moves by one point and each rank-bin boundary moves by at most one point. The table therefore changes in $O(B+k)$ cells, and each update costs $O(\log W + B + k)$.

A single $B$ favors drifts at one time scale. Following the move from $MIC_e$ to $TIC_e$, where summing over grid resolutions rather than maximizing gave higher independence-testing power, we sum the normalized statistic over a geometric ladder of block counts. This makes sensitivity roughly uniform across drift frequencies, from single steps to fast recurrence. Whether sum or max aggregation is more shape-equitable is itself an experimental question.

Calibration is where the rank construction matters most. Under the no-drift hypothesis, points within a window are exchangeable. The count table then follows a known distribution determined only by $W$, $B$ and $k$. We will precompute null quantiles and, for sequential monitoring, the full distribution of run lengths under no drift by simulating rank streams once. These thresholds then apply to any continuous feature on any dataset. This directly targets the false-alarm weakness of DAWIDD, whose kernel and SVM permutation tests ranked 3.3 on false positives. We will also quantify the positive finite-sample bias of the histogram estimate, which shrinks roughly as $\sqrt{Bk/W}$ from standard multinomial fluctuation arguments. We will show that exact null calibration removes the bias's effect on error rates, though it still costs power in small windows.

Two extensions are in scope because they address documented gaps.

The first is multivariate. Per-feature statistics are combined by the maximum over features. The distribution-free null lets us calibrate this maximum exactly instead of applying a Bonferroni correction. Features are ranked by their drift score, which gives the feature-level localization that Feature Selection for Concept Drift Detection obtains with tree ensembles.

The second is copula drift, where the dependence between features changes but no individual marginal does. Here we apply the same construction to a pair's joint rank cell, $k\times k$ cells crossed with $B$ blocks, and subtract the two marginal components. What remains measures change in dependence alone. Beyond Euclidean Summaries detects such shifts using Wasserstein barycenters and optimal-transport maps on distribution-valued batches. We target the same phenomenon for single-point streams at rank-table cost. We will limit this to screened pairs, because we do not claim to escape the curse of dimensionality for dense high-order copula changes.

Baselines

The naive reference point is a sliding reference-versus-current two-sample Kolmogorov–Smirnov test on each feature. It is implemented with the incremental Kolmogorov–Smirnov (IKS) treap of Fast Unsupervised Online Drift Detection Using Incremental Kolmogorov-Smirnov Test and combined across features with Bonferroni correction. It is fast, rank-based, and unsupervised, so it isolates what our statistic adds beyond a marginal comparison. That paper reports speed (one to two orders of magnitude over standard KS) and a label budget of 42% to 47%, but we found no reported detection-accuracy number on Lacuna for IKS on the standard drift benchmarks. We will therefore run it ourselves.

The strongest existing method on this question is DAWIDD. It implements the same drift-equals-dependence-on-time equivalence, with kernel and SVM permutation tests and an adaptive window. It reports a mean rank of 2.2 for true and false negatives, best overall, and a mean rank of 3.3 for false positives across synthetic, real, and "fooling" streams. We will rerun it with the authors' window settings on identical streams. Our detector gets the same window budget and no more tuning than DAWIDD's own hyperparameters: one pass over $W$ and the scale ladder, chosen on held-out synthetic streams only. Beating it means strictly better detection at matched false-alarm rate, with the matching calibrated by the run length before a false alarm on the drift-free prefix. It also means an equal or better mean rank on both true and false positives, not a trade of one for the other.

For noisy high-dimensional streams, the reference is maximum mean discrepancy (MMD) with extra-trees feature selection from Feature Selection for Concept Drift Detection. On Nebraska Weather with 250 injected noise features, that paper reports raw MMD ROC-AUC falling from 0.68 to 0.52, while the version with extra-trees feature importance held 0.89. Beating 0.89 on the same injected-noise protocol is the target.

For copula shifts, we compare against the intrinsic distribution-valued change-point method (IDD) of Beyond Euclidean Summaries on its synthetic copula-shift streams. We batch our points to match its batch sizes. On FlowCAP-II it reports F1 of about 0.75 and a detection delay of about 1. We do not expect to beat it on distribution-valued data. The success criterion there is comparable delay at much lower cost on its synthetic copula-shift setting.

Three ablations isolate the key ingredients. The first replaces the rank table with a plug-in $TIC_e$ or $MIC_e$ between feature and time, computed in batch. The second uses a single block count instead of the multiscale sum. The third calibrates by permutation instead of the exact rank null.

Why not just…?

Why not just run parallel IKS tests on every feature? This is the most serious threat for sudden marginal drift. A step change is exactly what a reference-versus-current KS test is built for, and we expect near parity there. It fails in two documented regimes. Beyond Euclidean Summaries shows that marginal tests are blind to copula shifts. And a reference-versus-current comparison averages away recurring drift whose period is shorter than the window. Our shape-sweep experiment will show whether the gap exists on periodic and gradual profiles. If it does not, the marginal version of our method adds nothing, and we will say so.

Why not just use DAWIDD, or a Hilbert–Schmidt independence test between features and time? These already test dependence on time. However, kernel bandwidths implicitly pick a temporal scale, and permutation-calibrated kernel tests produced DAWIDD's weak false-positive rank. Our experiments match both methods at identical false-alarm rates and sweep drift shape at fixed total-variation budget. If the kernel test's power is already flat across shapes, the equitability claim fails. The contribution then shrinks to cheaper exact calibration, which we would still measure.

Why not just plug $TIC_e$ between each feature and time into a sliding window? This is an honest option and our first ablation. We expect similar power, because the estimator uses the same "one uniform axis" idea. The differences are that $TIC_e$ must be recomputed in batch at each step, its null must be simulated per window size, and its score lacks the total-variation interpretation. If it matches our detector on power and false alarms, the paper's contribution becomes the streaming, distribution-free implementation rather than a new statistic.

Why not just track Pearson or Spearman correlation between features and time? That captures only monotone trends. It assigns roughly zero to recurring concepts and to the variance-preserving "fooling" drifts of DAWIDD. This is the same blindness Hu et al. found for Pearson on a nonlinear sensor relationship. We will include it as a cheap reference in the shape sweep.

Proposed Experiments

The central experiment is a drift-shape equitability library, modeled on the 160 Gaussian-process relationships used in Measuring Dependence Powerfully and Equitably. The difference is that here the random functions describe drift trajectories in time. Each stream's concept parameter follows a Gaussian-process draw, a step, a ramp, a sigmoid, or a periodic schedule. Streams are then rescaled so that the window-averaged total variation, which is known analytically, takes fixed values. For every detector we record power at matched false-alarm rate across all shapes. The equitability score is the spread of power across shapes at each budget. The decisive check is whether our multiscale detector's spread is substantially smaller than that of DAWIDD, IKS, and the kernel independence test. We also check whether its score tracks the true budget monotonically, which is the drift analogue of tracking $R^2$.

On standard streams we compare detection delay, true and false positives, and mean ranks against DAWIDD. These streams are STAGGER, SEA, AGRAWAL, and Rotating Hyperplane, plus DAWIDD's Blinking X and Mixing Gaussians. The real streams are Electricity, Nebraska Weather, and Forest Covertype, and we add the IKS streams (Insects, Abrupt Insects, Bike, Posture, Keystroke). On Nebraska Weather we inject 0 to 250 noise features to reproduce the protocol behind the 0.52 and 0.89 ROC-AUC figures. We also test whether the per-feature scores localize the drifting features as well as extra-trees importance does.

For copula drift, the pairwise extension runs on the synthetic copula-shift setting of Beyond Euclidean Summaries and on a reconstruction of Hu et al.'s cosine-relationship breakdown. The latter checks whether a known nonlinear dependence failure is caught while every marginal test stays silent.

Finally, we report wall-clock time per update against IKS and batch $TIC_e$ at window sizes from $10^3$ to $10^5$. We also verify empirically that the precomputed rank-null thresholds hold their nominal false-alarm rate on drift-free segments of real streams with ties and heavy tails. This is where the distribution-free calibration could fail in practice.