[Paper Review] A Revealing Large-Scale Evaluation of Unsupervised Anomaly Detection Algorithms
This paper proposes a standardized, reproducible evaluation protocol for unsupervised anomaly detection algorithms, applying it to 12 methods across five tabular datasets. It reveals that prior evaluations were inconsistent due to varying data splits, metrics, and hyperparameter choices, and finds that simpler models like DAE outperform more complex ones on challenging datasets such as CSE-CIC-IDS2018, while DROCC and DeepSVDD underperform due to data distribution and class imbalance issues.
Anomaly detection has many applications ranging from bank-fraud detection and cyber-threat detection to equipment maintenance and health monitoring. However, choosing a suitable algorithm for a given application remains a challenging design decision, often informed by the literature on anomaly detection algorithms. We extensively reviewed twelve of the most popular unsupervised anomaly detection methods. We observed that, so far, they have been compared using inconsistent protocols - the choice of the class of interest or the positive class, the split of training and test data, and the choice of hyperparameters - leading to ambiguous evaluations. This observation led us to define a coherent evaluation protocol which we then used to produce an updated and more precise picture of the relative performance of the twelve methods on five widely used tabular datasets. While our evaluation cannot pinpoint a method that outperforms all the others on all datasets, it identifies those that stand out and revise misconceived knowledge about their relative performances.
Motivation & Objective
- To identify and resolve inconsistencies in evaluation protocols used in prior unsupervised anomaly detection research.
- To establish a fair, reproducible benchmark for comparing 12 popular unsupervised anomaly detection algorithms.
- To re-evaluate the relative performance of these methods using consistent data splits, metrics, and hyperparameter tuning.
- To challenge misconceptions about algorithm performance, especially regarding deep learning and reconstruction-based models.
- To promote transparency and reliability in future machine learning evaluations through a unified protocol.
Proposed method
- Proposes a consistent evaluation protocol that trains only on normal data and uses all anomalies in the test set to eliminate data leakage and bias.
- Standardizes the threshold selection to the optimal F1-score threshold for all models, ensuring fair comparison.
- Uses precision, recall, F1-score, and AUPR as primary metrics, advocating for AUPR over AUROC due to class imbalance.
- Applies the same hyperparameter search and random seed across all models to ensure reproducibility and fairness.
- Employs five widely used tabular datasets: KDDCUP, NSL-KDD, CSE-CIC-IDS2018, Arrhythmia, and Thyroid for evaluation.
- Fixes the positive class to the minority (anomalous) class to avoid skewed performance interpretation.
Experimental results
Research questions
- RQ1How do inconsistent evaluation protocols in prior work affect the reported performance of unsupervised anomaly detection algorithms?
- RQ2Which unsupervised anomaly detection methods perform best under a standardized, fair evaluation protocol across diverse tabular datasets?
- RQ3Why do some complex models like DROCC and DeepSVDD underperform compared to simpler baselines like DAE on real-world, challenging datasets?
- RQ4To what extent do metrics like AUROC and AUPR diverge in performance evaluation, and which is more informative for anomaly detection?
- RQ5Can a consistent evaluation protocol reveal previously overlooked strengths or weaknesses of established anomaly detection methods?
Key findings
- The vanilla auto-encoder (DAE) outperforms more complex reconstruction-based models like DAGMM and MemAE on the CSE-CIC-IDS2018 dataset, achieving a higher F1-score despite its simplicity.
- DROCC reports a high recall (0.996) but low precision (0.296) on CSE-CIC-IDS2018, indicating a high false-positive rate, which is masked when only F1-score is reported.
- AUPR metrics show a significant drop (over 10%) compared to AUROC on CSE-CIC-IDS2018, highlighting AUROC's over-optimism in imbalanced anomaly detection settings.
- KDD and NSL-KDD are found to be overly trivial datasets, with most models achieving F1-scores above 0.90, making them insufficient for distinguishing model performance.
- NeuTraLAD, a transformation-based method, achieves consistently above-average performance across all datasets, especially benefiting from data augmentation on small-scale data.
- DeepSVDD and other one-class classification models underperform on CSE-CIC-IDS2018 due to high intra-class variation and large-scale data, suggesting limitations in their generalization under complex distributions.
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.