TL;DR
This paper introduces SCUSUM (Score-based CUSUM), a novel algorithm for detecting abrupt changes in data streams when the underlying probability distributions are "unnormalized" (i.e., their total volume or "partition function" is unknown). By replacing traditional likelihood ratios with the Hyvärinen score, the authors provide a computationally efficient way to perform quickest change detection for complex machine learning models like Restricted Boltzmann Machines and energy-based models.
What Problem Does This Paper Address?
In "Quickest Change Detection" (QCD), the goal is to raise an alarm as soon as a data stream's statistical properties change, while minimizing false alarms. The gold standard for this is the CUSUM algorithm, which relies on the ratio of the "post-change" density to the "pre-change" density.
However, many modern machine learning models are unnormalized. They can tell you the relative likelihood of a data point, but calculating the absolute probability requires computing a "normalization constant" (an integral over the entire data space). For high-dimensional data, this integral is often mathematically intractable or computationally "explosive." Consequently, traditional CUSUM becomes unusable for these models. Existing non-parametric alternatives (like MMD-based methods) often struggle with false alarm control or high detection delays.
Methods
The authors propose SCUSUM, which swaps the log-likelihood ratio in the CUSUM recursion with a difference of Hyvärinen scores.
- The Hyvärinen Score: Unlike the log-likelihood, this score depends only on the gradient (slope) and the Laplacian (curvature) of the log-density function. Because these derivatives ignore constant offsets, the unknown normalization constant simply vanishes.
- The Algorithm: SCUSUM maintains a running statistic $Z(n)$ that accumulates the difference between the pre-change and post-change Hyvärinen scores. If this statistic crosses a threshold $\tau$, an alarm is raised.
- Theoretical Innovation: Standard CUSUM proofs rely on the fact that likelihood ratios form a "martingale" (a specific type of stochastic process). Score-based statistics do not have this property. The authors developed new proof techniques using renewal theory to prove that SCUSUM is asymptotically optimal—meaning as you demand fewer false alarms, its detection delay grows at the minimum possible rate.
Datasets
The authors evaluated the algorithm using synthetic data streams generated from three types of models:
- Multivariate Normal (MVN): Used as a baseline to compare against traditional CUSUM.
- Exponential Family (EXP): Specifically, a subfamily with pairwise interactions where the normalization constant cannot be computed in closed form.
- Gauss-Bernoulli Restricted Boltzmann Machine (GB-RBM): A complex generative model where exact likelihoods are notoriously difficult to compute.
Key Insights and Ideas
- Fisher Divergence as a Proxy: The paper shows that the role played by Kullback-Leibler (KL) divergence in traditional QCD is replaced by Fisher divergence in the score-based setting.
- The $\lambda$ Multiplier: The authors introduce a multiplier $\lambda$ to the score difference. They provide a method to choose an "appropriate" $\lambda$ using past observations to ensure the algorithm remains stable and doesn't trigger constant false alarms.
- Computational Liberation: The "aha moment" is the realization that we don't need to know how much probability mass there is in total; we only need to know how the shape of the probability landscape changes.
Key Results
- Massive Speedup: In a 4D Exponential Family model, traditional CUSUM took over 66,400 seconds to run a trial because of the numerical integration required for normalization. SCUSUM performed the same task in just 38 seconds.
- Competitive Performance: On Gaussian data (where CUSUM is optimal), SCUSUM performed nearly as well as CUSUM, showing that the "penalty" for using scores instead of exact likelihoods is small.
- Robustness: SCUSUM significantly outperformed MMD-based methods (Scan B-statistic and CALM-MMD), which often failed to reach the detection threshold or provided inconsistent results in non-Normal scenarios.
Limitations and Future Work
- Known Post-Change Model: The current version of SCUSUM assumes that the user knows the parameters of the distribution after the change occurs. In many real-world "anomaly detection" scenarios, the nature of the change is unknown.
- I.I.D. Assumption: The theoretical analysis assumes data points are independent and identically distributed. The authors suggest that future work should investigate relaxing this to handle dependent data (like time series).
- Parameter Sensitivity: While the authors provide a way to estimate the multiplier $\lambda$, the algorithm's performance still depends on having a sufficient amount of "pre-change" data to calibrate this value.
Summary updated