Abstract
Traditional non-parametric outlier detection methods, such as $k$-Nearest Neighbors (KNN) and Local Outlier Factor (LOF), suffer from quadratic computational complexity, making them impractical for massive, high-dimensional datasets. This paper presents a novel approach that identifies outliers in linear time by leveraging the concept of "sensitivity" from coreset construction. By approximating sensitivity with a provable upper bound termed "influence," the proposed method achieves state-of-the-art accuracy while being orders of magnitude faster than existing distance-based techniques.
Introduction
Outlier detection is a fundamental task in data science, essential for fraud detection, system health monitoring, and data cleaning. While non-parametric methods are favored for their flexibility, they typically scale poorly ($O(n^2)$) due to all-pairs distance calculations. Indexing structures like KD-trees mitigate this in low dimensions but fail in high-dimensional spaces. Subsampling offers speed but risks missing critical outliers in imbalanced data.
This research introduces a mathematically grounded framework that scales linearly ($O(nkd)$) with the number of data points $n$, clusters $k$, and dimensions $d$. The core innovation lies in treating outlier detection as the inverse of coreset construction, identifying points that disproportionately influence the global structure of the data.
Methodology: From Sensitivity to Influence
The authors define "sensitivity" as the maximum impact a single data point can have on a clustering objective, such as $k$-means. Intuitively, an outlier is a point whose removal significantly shifts the optimal cluster centers.
Because exact sensitivity is computationally expensive to calculate, the authors derive a non-trivial upper bound called influence. This metric integrates three key factors:
- Local Outlierness: The distance from a point to its nearest cluster center.
- Cluster Spread: The internal variance of the point's assigned cluster.
- Inverse Cluster Density: The number of points within that cluster.
The algorithm proceeds by first performing a fast, "rough" clustering (e.g., via $k$-means++ seeding) and then computing the influence score for every point. This process is highly parallelizable and can be implemented in distributed environments like Spark or MapReduce.
Key Insights: The Duality of Clustering and Outliers
A primary insight of this work is that outliers are the points that prevent a "clean" clustering solution. By measuring a point's potential to disrupt the cost function, the method naturally identifies anomalies.
Unlike traditional methods that rely solely on local distance, this approach incorporates cluster density. A point far from a center might be an inlier if it belongs to a sparse, wide cluster, whereas a point closer to a center might be flagged if it resides in an exceptionally dense cluster. Furthermore, the framework is robust to various data distributions as it supports any objective function based on Bregman divergences.
Experimental Results
The "Influence" method was evaluated against KNN and LOF across 13 datasets, ranging from standard UCI benchmarks to the 4.9-million-record KDDCUP-FULL dataset.
- Accuracy: The method outperformed competitors in Area Under the Precision-Recall Curve (AUPRC) on 12 of 13 datasets.
- Efficiency: On the GAUSS-1M dataset, the method was 27x faster than approximate KNN.
- Scalability: While exhaustive distance-based methods failed to process the KDDCUP-FULL dataset within 24 hours, the Influence method completed the task in under 10 minutes.
- Statistical Rigor: Performance gains were confirmed to be statistically significant using the Mann-Whitney-Wilcoxon test ($\alpha = 0.001$).
Conclusion and Future Work
This paper demonstrates that sensitivity-based outlier detection provides a powerful, linear-time alternative to traditional distance-based methods. While the approach requires selecting the number of clusters $k$, model averaging techniques can mitigate this dependency. Future research may extend this framework to objective functions beyond clustering, such as manifold learning or dimensionality reduction, potentially enabling linear-time anomaly detection in even broader contexts.
Summary updated