[Paper Review] Arrays of (locality-sensitive) Count Estimators (ACE): High-Speed Anomaly Detection via Cache Lookups
ACE proposes a high-speed, ultra-low-memory anomaly detection algorithm using arrays of locality-sensitive count estimators to enable real-time outlier detection in streaming data. By leveraging a novel sampling-based estimator derived from Locality-Sensitive Hashing (LSH), ACE achieves 60x speedup over ELKI while using under 4MB of memory, making it suitable for cache-based deployment on high-throughput systems.
Anomaly detection is one of the frequent and important subroutines deployed in large-scale data processing systems. Even being a well-studied topic, existing techniques for unsupervised anomaly detection require storing significant amounts of data, which is prohibitive from memory and latency perspective. In the big-data world existing methods fail to address the new set of memory and latency constraints. In this paper, we propose ACE (Arrays of (locality-sensitive) Count Estimators) algorithm that can be 60x faster than the ELKI package~\cite{DBLP:conf/ssd/AchtertBKSZ09}, which has the fastest implementation of the unsupervised anomaly detection algorithms. ACE algorithm requires less than $4MB$ memory, to dynamically compress the full data information into a set of count arrays. These tiny $4MB$ arrays of counts are sufficient for unsupervised anomaly detection. At the core of the ACE algorithm, there is a novel statistical estimator which is derived from the sampling view of Locality Sensitive Hashing(LSH). This view is significantly different and efficient than the widely popular view of LSH for near-neighbor search. We show the superiority of ACE algorithm over 11 popular baselines on 3 benchmark datasets, including the KDD-Cup99 data which is the largest available benchmark comprising of more than half a million entries with ground truth anomaly labels.
Motivation & Objective
- Address the challenge of real-time anomaly detection in high-speed, drifting data streams with strict memory and latency constraints.
- Overcome the limitations of existing unsupervised anomaly detection methods that require large memory and suffer from high latency in big-data environments.
- Design a memory-efficient algorithm that fits entirely in CPU cache (2–10 MB) to enable ultra-low-latency inference for real-time applications.
- Enable deployment on low-power, low-memory platforms such as mobile devices and smart sensors where traditional methods are infeasible.
- Provide a scalable, cache-optimized solution that maintains high detection accuracy while drastically reducing computational and storage overhead.
Proposed method
- Employ an array of LSH-based count estimators (ACE) where each array uses a different hash function to estimate the local density of data points.
- Use a novel statistical estimator derived from the sampling view of LSH, treating each hash bucket as a random sample to estimate outlier scores.
- Compute the outlier score for a query point $ q $ as the average of $ L $ independent estimators, each derived from a separate hash array.
- Maintain a compact count array of size $ O(1) $ per hash function, storing only the number of data points mapped to each hash bucket.
- Leverage linearity of expectation to ensure the estimator is unbiased, and reduce variance by averaging over $ L $ independent hash arrays.
- Use a cache-friendly data structure to store the count arrays, enabling fast random access and minimizing memory latency in real-time processing.
Experimental results
Research questions
- RQ1Can a novel LSH-based sampling estimator achieve high-accuracy anomaly detection with minimal memory footprint?
- RQ2How does the ACE algorithm perform in terms of speed and memory efficiency compared to state-of-the-art unsupervised anomaly detection methods?
- RQ3To what extent can the ACE algorithm scale to large, high-dimensional, and streaming datasets with dynamic data distributions?
- RQ4Can the ACE algorithm be deployed entirely in CPU cache to achieve sub-millisecond response times in real-time systems?
- RQ5How does the variance of the estimator scale with the number of hash arrays $ L $, and what is the optimal trade-off between accuracy and memory?
Key findings
- ACE achieves a 60x speedup over the ELKI package, which is the fastest known implementation of unsupervised anomaly detection algorithms.
- The algorithm requires less than 4MB of memory to represent the entire dataset, enabling full in-cache deployment and ultra-low-latency access.
- On the KDD-Cup99 benchmark with over 500,000 entries and ground-truth labels, ACE outperforms 11 popular baselines in both speed and accuracy.
- The proposed estimator is unbiased due to the linearity of expectation, even when indicator variables are correlated across data points.
- Variance of the estimator decreases as $ 1/L $, where $ L $ is the number of hash arrays, enabling accurate estimation with minimal memory overhead.
- The method is robust to data drift and supports dynamic data updates, making it suitable for real-time, high-velocity data processing environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.