Deep Anomaly Detection with Outlier Exposure

Dan Hendrycks, Mantas Mazeika, Thomas Dietterich
12/11/2018
cs.LGcs.CLcs.CV

Official code: hendrycks/outlier-exposure (573 stars, Apache-2.0, PyTorch, last commit 2021-10-09).

Abstract

It is important to detect anomalous inputs when deploying machine learning systems. The use of larger and more complex inputs in deep learning magnifies the difficulty of distinguishing between anomalous and in-distribution examples. At the same time, diverse image and text data are available in enormous quantities. We propose leveraging these data to improve deep anomaly detection by training anomaly detectors against an auxiliary dataset of outliers, an approach we call Outlier Exposure (OE). This enables anomaly detectors to generalize and detect unseen anomalies. In extensive experiments on natural language processing and small- and large-scale vision tasks, we find that Outlier Exposure significantly improves detection performance. We also observe that cutting-edge generative models trained on CIFAR-10 may assign higher likelihoods to SVHN images than to CIFAR-10 images; we use OE to mitigate this issue. We also analyze the flexibility and robustness of Outlier Exposure, and identify characteristics of the auxiliary dataset that improve performance.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

Deep Anomaly Detection with Outlier Exposure (ICLR 2019)

573106Shell, PythonMay 22, 20185 years agoApache-2.0
anomalyanomaly-detectioncalibrationdeep-learningml-safety+2 more

Similar Papers

Cite this paper

@article{hendrycks2018deep,
  title  = {Deep Anomaly Detection with Outlier Exposure},
  author = {Dan Hendrycks and Mantas Mazeika and Thomas Dietterich},
  year   = {2018},
  eprint = {1812.04606},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.04606}
}

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/1812.04606.svg)](https://codeofpaper.com/paper/1812.04606)

Discussion