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

Adversarial Attacks for Drift Detection

Fabian Hinder, Valerie Vaquet, Barbara HammerarXiv 2024 · DOI

Introduction

Concept drift detection is a cornerstone of reliable machine learning and system monitoring. In dynamic environments, data distributions rarely stay static; they "drift" due to seasonal changes, sensor aging, or system failures. To handle this, engineers use drift detectors to trigger model retraining or alert operators to anomalies.

Most detectors work by comparing a "reference" window of past data to a "current" window of recent data. If a statistical test (like Kolmogorov-Smirnov or MMD) finds a significant difference between them, an alarm sounds. This paper identifies a critical security and reliability gap: if the windowing logic is known, an attacker can craft a drift that perfectly balances the statistical properties across those windows, effectively "hiding" the change in plain sight.

Theoretical Framework of Window Adversarials

The authors focus on Window Adversarials, which exploit the data selection stage of detection rather than the specific statistical metric used. They provide a theoretical framework (Theorem 1) that outlines the necessary and sufficient conditions for a drift function to be "improper"—meaning it results in zero detected drift for a given windowing scheme.

Theoretical conditions for drift invisibility across different windowing schemes.

The vulnerability is rooted in the geometry of the windows. As shown in the table above, different strategies have distinct mathematical blind spots:

  • Two Sliding Windows: Any drift that is $l$-periodic (repeats every $l$ steps, where $l$ is the window length) can be made invisible.
  • Fixed Reference Window: Vulnerable to drifts that are $l$-periodic after an initial period $a$ with a matching mean.
  • Growing Reference Window: Susceptible to drifts that are arbitrary before a point $a$ and then remain constant.

Empirical Validation

To verify these theoretical "blind spots," the authors developed an algorithm to generate practical attacks. By mixing two distinct distributions such that the mean distributions within the compared windows remain identical, they created streams with clear drift that detectors perceived as stationary.

Experimental results showing p-values for various datasets and windowing configurations; high values indicate failed detection.

In numerical experiments on synthetic data, the authors successfully generated streams that yielded $p$-values as high as 0.65 (where a value below 0.05 usually triggers an alarm). This empirical evidence confirms that the detectors were mathematically incapable of seeing the drift, even when the underlying distribution had changed significantly.

Real-World Application and Insights

The methodology was also evaluated using pressure measurements from Water Distribution Networks, where leakages manifest as concept drifts. This showcase demonstrated that window size choice is a double-edged sword. A one-day window might catch normal weekday vs. weekend changes (benign drift), while a one-week window can be designed to ignore those cycles to highlight actual pipe leakages (anomalous drift).

Interestingly, this theory can be used constructively. By understanding what a detector cannot see, engineers can design "problem-tailored" detectors that intentionally ignore "expected" drifts, such as day-night cycles in utility usage, while remaining sensitive to actual system malfunctions.

Limitations and Future Work

While these adversarials exist theoretically, they can be numerically unstable to construct in complex real-world scenarios. The current study primarily targets two-window detectors; "block-based" detectors, which look for drift within a single window, may be less prone to these specific attacks. Future research will aim to investigate the stability of these attacks and explore how to build more robust, drift-aware monitoring systems.

Summary updated

BibTeX
@misc{hinder2024adversarial,
  author = {Fabian Hinder and Valerie Vaquet and Barbara Hammer},
  title = {{Adversarial Attacks for Drift Detection}},
  year = {2024},
  eprint = {2411.16591},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.16591},
}
Figure