Abstract: In online learning from non-stationary data streams, it is necessary to learn robustly to outliers and to adapt quickly to changes in the underlying data generating mechanism. In this paper, we refer to the former attribute of online learning algorithms as robustness and to the latter as adaptivity. There is an obvious tradeoff between the two attributes. It is a fundamental issue to quantify and evaluate the tradeoff because it provides important information on the data generating mechanism. However, no previous work has considered the tradeoff quantitatively. We propose a novel algorithm called the stochastic approximation-based robustness-adaptivity algorithm (SRA) to evaluate the tradeoff. The key idea of SRA is to update parameters of distribution or sufficient statistics with the biased stochastic approximation scheme, while dropping data points with large values of the stochastic update. We address the relation between the two parameters: one is the step size of the stochastic approximation, and the other is the threshold parameter of the norm of the stochastic update. The former controls the adaptivity and the latter does the robustness. We give a theoretical analysis for the non-asymptotic convergence of SRA in the presence of outliers, which depends on both the step size and threshold parameter. Because SRA is formulated on the majorization-minimization principle, it is a general algorithm that includes many algorithms, such as the online EM algorithm and stochastic gradient descent. Empirical experiments for both synthetic and real datasets demonstrated that SRA was superior to previous methods.
The Challenge of Non-Stationary Data
In the fast-moving world of data streams—such as sensor networks, financial markets, or network traffic—machine learning models face a constant tug-of-war. On one side, they must be robust, ignoring the "noise" of outliers and anomalies. On the other, they must be adaptive, quickly pivoting when the underlying data-generating process actually changes, a phenomenon known as concept drift.
Usually, these two goals are at odds: a highly adaptive model is easily distracted by outliers, while a highly robust model might sleep through a genuine regime shift. Most online learning algorithms assume data is either stationary or that changes are clean. In reality, data streams are messy, containing both one-off errors (outliers) and structural shifts (change points). If you increase your learning rate to adapt to a new trend, you become vulnerable to random noise. If you dampen the learning rate to stay stable, you will be too slow to react when the world actually changes. This research introduces a quantitative way to evaluate and optimize this balance in real-time.
The SRA Algorithm
The proposed Stochastic Approximation-based Robustness-Adaptivity (SRA) algorithm is built on a biased Stochastic Approximation (SA) scheme. The core mechanism involves a simple but effective filtering process based on the magnitude of parameter updates:
- The Drift Term: For every new data point, the algorithm calculates a "stochastic update" representing how much the model parameters would change based on that point.
- The Threshold ($\gamma$): If the norm of this update exceeds a predefined threshold $\gamma$, the algorithm assumes the data point is an outlier and drops it.
- The Step Size ($\rho$): This parameter controls the learning rate. A larger $\rho$ increases adaptivity, while a smaller $\gamma$ increases robustness.
Crucially, SRA is formulated using the Majorization-Minimization (MM) principle. This makes it a "meta-algorithm" applicable to various models, including the Online Expectation-Maximization (EM) algorithm and Stochastic Gradient Descent (SGD). The authors provide a non-asymptotic convergence analysis, establishing theoretical bounds on performance even in noisy environments.
Empirical Evaluation
The authors evaluated SRA against several established methods (such as SDEM, ADWIN, and KSWIN) across diverse datasets:
- Synthetic Streams: Univariate and multivariate data with abrupt and gradual changes contaminated with uniform noise.
- Well-log Dataset: A classic benchmark of nuclear magnetic resonance measurements taken during well drilling.
- SKAB (Skoltech Anomaly Benchmark): Data from a water circulation system testbed featuring complex transitions between normal and abnormal states.
- SMTP & THYROID: Standard datasets for evaluating anomaly detection in network traffic and medical records.
Key Results
- Superior Accuracy: In synthetic tests, SRA achieved Mean Squared Errors (MSE) orders of magnitude lower than standard online EM variants (e.g., 0.009 vs 1.300 for abrupt changes).
- Better Detection: On the Well-log dataset, SRA achieved significantly higher Area Under the Curve (AUC) scores (up to 0.802) compared to other concept drift detectors, which often overfitted to noise.
- Robustness in Action: In the SKAB dataset, SRA successfully ignored transient spikes while accurately identifying the start and end of gradual mechanical failures.
Insights and Limitations
A key insight of this work is that the magnitude of the suggested parameter update is a powerful indicator of whether a point is an outlier. Legitimate data points typically do not pull the model too far in a single step unless a major shift has occurred. Furthermore, the paper derives a mathematical relationship between the optimal step size and the threshold, allowing researchers to theoretically determine one parameter if the other is known.
However, SRA is not without limitations. The algorithm relies on three main hyperparameters ($\gamma, \beta, M$) that currently require careful tuning, often via computationally expensive methods like cross-validation. Additionally, because SRA calculates probability densities to determine change scores, it is more computationally intensive than simpler window-based drift detectors. Future work aims to extend the rigorous convergence proofs to cover gradual, incremental changes more comprehensively.
Summary updated