AnoShift: A Distribution Shift Benchmark for Unsupervised Anomaly Detection

Marius Dragoi, Elena Burceanu, Emanuela Haller, Andrei Manolache, Florin Brad
6/30/2022
cs.LG
benchmark-dataset

Official code: bit-ml/AnoShift (66 stars, Python, BSD-3-Clause, PyTorch, last commit 2024-07-10).

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.

Show full abstract

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/.

View on arXivView PDF

Code Implementations(1)

bit-ml/AnoShiftOfficial100%
PyTorchBSD-3-Clause
665Python, Jupyter NotebookJun 8, 20222 years agoBSD-3-Clause
anomaly-detectiondistribution-shiftnetworknetwork-trafficpytorch+1 more

Similar Papers

Cite this paper

@article{dragoi2022anoshift,
  title  = {AnoShift: A Distribution Shift Benchmark for Unsupervised Anomaly Detection},
  author = {Marius Dragoi and Elena Burceanu and Emanuela Haller and Andrei Manolache and Florin Brad},
  year   = {2022},
  eprint = {2206.15476},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.15476}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.15476.svg)](https://codeofpaper.com/paper/2206.15476)

Discussion