Introduction
Outlier detection (OD) is a critical component in high-stakes domains such as fraud detection and cybersecurity. However, the lack of ground-truth labels in these scenarios necessitates the use of unsupervised heterogeneous ensembles—large collections of diverse models like k-Nearest Neighbors (kNN) and Isolation Forests. While robust, these ensembles are computationally prohibitive, particularly on high-dimensional data, and often suffer from execution bottlenecks where a single slow model stalls the entire pipeline.
SUOD (Scalable Unsupervised Outlier Detection) addresses these challenges through a modular, open-source framework designed to accelerate large-scale OD by optimizing the pipeline at the data, model, and execution levels. It enables practitioners to run massive ensembles significantly faster than traditional methods while maintaining, and often improving, detection accuracy.
The SUOD Framework
SUOD introduces three independent modules that can be toggled based on the specific requirements of a use case:
- Data Level (Random Projection): To mitigate the "curse of dimensionality," SUOD employs Johnson-Lindenstrauss (JL) projection to compress the feature space. Unlike PCA, JL projection is computationally efficient and uses randomness to preserve pairwise distances. This randomness also acts as a regularizer, enhancing ensemble diversity.
- Model Level (Pseudo-Supervised Approximation - PSA): This module uses "knowledge distillation" to replace slow unsupervised models with fast supervised regressors. By treating the output scores of a complex model (e.g., kNN) as pseudo-ground truth, SUOD trains a faster regressor (e.g., Random Forest) to mimic its behavior for future predictions.
- Execution Level (Balanced Parallel Scheduling - BPS): Traditional parallelization often leads to idle CPU cores due to varying model complexities. SUOD utilizes a "model cost predictor" to forecast execution times based on dataset characteristics and balances the workload across workers to prevent "long-tail" bottlenecks.
Experimental Evaluation
The framework was validated on over 20 benchmark datasets from the ODDS and DAMI libraries, including large-scale sets like HTTP (567k samples). Additionally, a real-world case study was conducted using a proprietary pharmacy claim dataset from IQVIA, containing over 123,000 medical claims, to detect fraudulent activity.
Key Results and Insights
SUOD demonstrates that computational efficiency does not have to come at the cost of accuracy. In many instances, the framework's approximation and regularization techniques actually improved detection performance.
- Significant Speedups: The BPS module reduced execution time by up to 61% compared to standard scheduling. In the IQVIA study, training and prediction times were reduced by 32.5% and 24.4%, respectively.
- Accuracy Preservation and Smoothing: The PSA module often smoothed out overfitted decision boundaries. On the HTTP dataset, this led to a nearly 100% increase in ROC for specific algorithms by distilling complex logic into more generalized tree-based regressors.
- Robustness through Randomness: The inherent randomness of JL projection provides models with diverse "views" of the data, making the final ensemble less prone to overfitting than those using deterministic dimensionality reduction.
Conclusion
SUOD provides an industry-ready solution for scaling unsupervised outlier detection and is fully integrated into the popular PyOD library. While currently optimized for offline learning with stable data distributions, future work aims to extend these capabilities to streaming data and incorporate automated model selection (MetaOD) to further streamline the detection pipeline.
Summary updated