TL;DR
SEAD (Streaming Ensemble of Anomaly Detectors) is the first algorithm that automatically selects and combines the best anomaly detection models for a live data stream without ever seeing a single "true" label. By leveraging the principle that anomalies are rare, it dynamically weights "expert" models to outperform any single detector and even complex offline selection methods, all while maintaining the speed required for real-time monitoring.
What Problem Does This Paper Address?
Anomaly detection (AD) is a cornerstone of modern system monitoring, but it has a "Goldilocks" problem: no single algorithm works perfectly for every dataset. One model might excel at finding spikes in CPU usage but fail miserably at detecting slow memory leaks. Furthermore, these models are notoriously sensitive to hyperparameters; a small change in a "sliding window" setting can swing performance significantly.
In real-world streaming scenarios (like AWS monitoring), two major hurdles exist:
- No Labels: We rarely have ground-truth labels telling us what was actually an anomaly until long after the fact.
- Data Drift: What constitutes "normal" behavior changes over time, meaning the "best" model today might be the worst one tomorrow.
Existing solutions are either supervised (requiring labels) or offline (requiring the entire dataset upfront), making them impractical for high-velocity, unlabeled data streams.
Methods
The authors introduce SEAD, which treats a collection of base anomaly detectors as "experts" in an online learning framework.
The Core Logic: "Anomalies are Rare"
Since we don't have labels, SEAD uses a clever proxy: unsupervised loss. It assumes that because anomalies are rare, a "good" model is one that consistently assigns low anomaly scores to the majority of the data. If a model starts assigning high scores to many points, SEAD assumes it's "misfiring" and reduces its influence.
Key Technical Components:
- Score Normalization: Different models output scores in different ranges (e.g., 0–1 vs. 1–100). SEAD uses a streaming quantile transform (via the t-digest data structure) to map all scores to a uniform [0, 1] scale, making them comparable.
- Multiplicative Weights Update (MWU): SEAD uses a version of the "Follow-the-Regularized-Leader" (FTRL) algorithm. It maintains a weight for each base model, increasing the weight of models that output low scores and decreasing those that output high scores.
- SEAD++ (Efficiency Optimization): For systems with many base models, running every single one for every data point is too slow. SEAD++ uses a Thompson sampling approach to select only a subset ($K$ out of $N$) of detectors to query and update at each time step, providing a significant speed boost.
Datasets
The researchers evaluated SEAD on 15 diverse datasets:
- 11 from the ODDS library: Including Pima (medical), Mammography, and HTTP (network intrusion).
- 3 from the USP Data Stream Repository: Including the INSECTS dataset, specifically chosen to test how the model handles non-stationary data (drift).
- 1 Internal Telemetry Dataset: Real-world data from a multiserver database cloud service.
- NAB (Numenta Anomaly Benchmark): Used for initial motivation and visualization.
Key Insights and Ideas
- Unsupervised Proxy Works: The most surprising insight is that simply minimizing the weighted anomaly score (the "unsupervised loss") is an effective proxy for maximizing Average Precision (APS). By rewarding models that "stay quiet" during normal periods, SEAD naturally identifies the most reliable detectors.
- Agnosticism is Strength: SEAD doesn't care how the base models work. It can ensemble Isolation Forests, Robust Random Cut Forests, and simple statistical rules simultaneously.
- Robustness to "Noise" Models: In experiments where the authors added 13 "random" detectors (pure noise) to the ensemble, SEAD's performance barely budged. It quickly identified the random models as unreliable and zeroed out their weights, whereas simple averaging methods saw their performance plummet.
- Handling Drift: Because weights are updated at every time step, SEAD can "pivot." If a data stream changes and a different base model becomes more accurate, SEAD shifts its weights dynamically.
Key Results
Across the 15 datasets, SEAD consistently demonstrated superior performance and efficiency compared to individual models and standard ensembling techniques.
- Superior Ranking: SEAD achieved an average rank of 5.07, outperforming all 13 base models and simple ensembling baselines (like taking the Mean, Max, or Min score).
- Massive Speedup: On the Ozone dataset, SEAD was 35x faster than MetaOD (a state-of-the-art offline model selection tool) while achieving better detection accuracy.
- Efficiency of SEAD++: SEAD++ achieved a ~2x runtime improvement over standard SEAD with negligible impact on accuracy, making it highly viable for resource-constrained environments.
- Statistical Significance: Using Wilcoxon signed-rank tests, the authors proved that SEAD is statistically superior to the individual base models and standard ensembling techniques.
Limitations and Future Work
- Dependency on Base Models: SEAD is an ensemble; it is only as good as its best constituent part. If none of the base models are suited for a specific dataset, SEAD cannot "invent" a good detection strategy.
- Regret Guarantees: While the paper provides theoretical "regret" bounds (comparing SEAD to the best single model in hindsight), the authors note that extending these guarantees to strictly non-stationary environments remains an open area for theoretical research.
- Warm-Starting: The current implementation uses a small "warm-start" period (100 points). Future work could explore how to optimize performance during the very first few points of a stream ("cold start").
Summary updated