HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

AnoShift: A Distribution Shift Benchmark for Unsupervised Anomaly Detection

Marius Dragoi Elena Burceanu Emanuela Haller Andrei Manolache Florin Brad

AnoShift: A Distribution Shift Benchmark for Unsupervised Anomaly Detection

Abstract

Analyzing the distribution shift of data is a growing research direction in nowadays Machine Learning (ML), leading to emerging new benchmarks that focus on providing a suitable scenario for studying the generalization properties of ML models. The existing benchmarks are focused on supervised learning, and to the best of our knowledge, there is none for unsupervised learning. Therefore, we introduce an unsupervised anomaly detection benchmark with data that shifts over time, built over Kyoto-2006+, a traffic dataset for network intrusion detection. This type of data meets the premise of shifting the input distribution: it covers a large time span ($10$ years), with naturally occurring changes over time (eg users modifying their behavior patterns, and software updates). We first highlight the non-stationary nature of the data, using a basic per-feature analysis, t-SNE, and an Optimal Transport approach for measuring the overall distribution distances between years. Next, we propose AnoShift, a protocol splitting the data in IID, NEAR, and FAR testing splits. We validate the performance degradation over time with diverse models, ranging from classical approaches to deep learning. Finally, we show that by acknowledging the distribution shift problem and properly addressing it, the performance can be improved compared to the classical training which assumes independent and identically distributed data (on average, by up to $3\%$ for our approach). Dataset and code are available at https://github.com/bit-ml/AnoShift/.

Code Repositories

bit-ml/anoshift
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
unsupervised-anomaly-detection-on-anoshiftOC-SVM
ROC-AUC FAR: 49.57
ROC-AUC IID: 76.86
ROC-AUC NEAR: 71.43
ROC-AUC-ID (In-Distribution setup): 68.73
unsupervised-anomaly-detection-on-anoshiftdeepSVDD
ROC-AUC FAR: 34.53
ROC-AUC IID: 92.67
ROC-AUC NEAR: 87.00
ROC-AUC-ID (In-Distribution setup): 88.24
unsupervised-anomaly-detection-on-anoshiftIsoForest
ROC-AUC FAR: 27.16
ROC-AUC IID: 86.09
ROC-AUC NEAR: 75.26
ROC-AUC-ID (In-Distribution setup): 81.27
unsupervised-anomaly-detection-on-anoshiftCOPOD
ROC-AUC FAR: 50.42
ROC-AUC IID: 85.62
ROC-AUC NEAR: 54.24
ROC-AUC-ID (In-Distribution setup): 80.89
unsupervised-anomaly-detection-on-anoshiftSO-GAAL
ROC-AUC FAR: 49.35
ROC-AUC IID: 50.48
ROC-AUC NEAR: 54.55
ROC-AUC-ID (In-Distribution setup): 49.90
unsupervised-anomaly-detection-on-anoshiftECOD Li et al. (2022)
ROC-AUC FAR: 49.19
ROC-AUC IID: 84.76
ROC-AUC NEAR: 44.87
ROC-AUC-ID (In-Distribution setup): 79.41
unsupervised-anomaly-detection-on-anoshiftLOF
ROC-AUC FAR: 34.96
ROC-AUC IID: 91.5
ROC-AUC NEAR: 79.29
ROC-AUC-ID (In-Distribution setup): 87.61
unsupervised-anomaly-detection-on-anoshiftInternal Contrastive Learning
ROC-AUC FAR: 22.45
ROC-AUC IID: 84.86
ROC-AUC NEAR: 52.26
ROC-AUC-ID (In-Distribution setup): 66.99
unsupervised-anomaly-detection-on-anoshiftAE for anomalies
ROC-AUC FAR: 19.96
ROC-AUC IID: 81
ROC-AUC NEAR: 44.06
ROC-AUC-ID (In-Distribution setup): 64.08
unsupervised-anomaly-detection-on-anoshiftBERT
ROC-AUC FAR: 28.15
ROC-AUC IID: 84.54
ROC-AUC NEAR: 86.05
ROC-AUC-ID (In-Distribution setup): 79.62
unsupervised-anomaly-detection-on-anoshiftLUNAR
ROC-AUC FAR: 28.19
ROC-AUC IID: 85.75
ROC-AUC NEAR: 49.03
ROC-AUC-ID (In-Distribution setup): 78.53

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
AnoShift: A Distribution Shift Benchmark for Unsupervised Anomaly Detection | Papers | HyperAI