Abstract
We present the BCS-Detector, a nonparametric framework for sequential changepoint detection. By leveraging the intersection of forward and backward confidence sequences, our method achieves order-optimal detection delays without requiring prior knowledge of pre- or post-change distributions. We demonstrate its effectiveness across various parametric and nonparametric settings, showing that detection delay scales inversely with the square of the change magnitude, matching theoretical lower bounds.
Introduction
In fields ranging from power grid monitoring to machine learning model drift detection, identifying changes in the underlying distribution of a data stream is essential. The primary challenge in Sequential Changepoint Detection (SCD) is balancing the detection delay against the false alarm rate, often measured by the Average Run Length (ARL). While the Cumulative Sum (CuSum) algorithm is optimal for known distributions, real-world applications demand nonparametric solutions. Existing nonparametric approaches are often specialized for specific metrics. This work proposes a unified framework that leverages the power of Confidence Sequences (CSs) to create a versatile and theoretically grounded detector.
The BCS-Detector Framework
The core of the proposed method is the Backward Confidence Sequence (BCS) Detector. It utilizes Confidence Sequences—sets that contain the true parameter with high probability uniformly over time. The algorithm maintains two distinct estimates at each time step $n$:
- A Forward CS ($C_n$), which aggregates all data from the start of the stream.
- A Backward CS ($B_1^{(n)}$), which is constructed by processing the data in reverse order from the current time $n$ back to the start.
Under a null hypothesis of no change, both sequences should consistently overlap around the true parameter. When a change occurs, the forward sequence retains the memory of the old distribution, while the backward sequence quickly adapts to the new one. A changepoint is declared the moment these two sets have an empty intersection.
Experimental Evaluation
The authors evaluated the BCS-Detector on several synthetic datasets representing diverse challenges:
- Univariate Gaussian streams: Testing changes in the mean.
- Bounded observations: Using Empirical Bernstein sequences for nonparametric mean detection.
- t-distributions: Detecting changes in Cumulative Distribution Functions (CDFs) via the Kolmogorov-Smirnov metric.
- Multivariate Gaussians (5D): Detecting changes in homogeneity between two streams using Kernel Maximum Mean Discrepancy (MMD).
- Binary Classification: Detecting "harmful" distribution shifts where the expected loss of a linear classifier increases.
Results and Theoretical Optimality
The BCS-Detector demonstrates order optimality, matching the performance of the Lorden (1971) optimal detector for Gaussian means without requiring prior knowledge of the post-change parameter. A key finding is the robustness of the method across different data types. In all tested scenarios, the average detection delay followed an inverse quadratic relationship with the change magnitude ($\Delta$), scaling as $1/\Delta^2$. This confirms the algorithm's efficiency in distinguishing distributions even when changes are subtle.
Furthermore, the BCS-Detector successfully addresses the "deafness" of simple forward-only detectors. By resetting the backward view at each step, it ensures a finite Average Run Length and prevents detection delays from exploding as the stream length increases.
Conclusion
The BCS-Detector provides a powerful, modular framework for sequential changepoint detection. Its ability to plug in any valid confidence sequence makes it highly adaptable to new data types and metrics. While the current $O(\tau^3)$ computational complexity presents a challenge for high-frequency applications, future work on update frequency and formal theoretical guarantees for location and magnitude estimation will further solidify its utility in real-world monitoring systems.
Summary updated