HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Deep Anomaly Detection with Outlier Exposure

Dan Hendrycks; Mantas Mazeika; Thomas Dietterich

Deep Anomaly Detection with Outlier Exposure

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.

Code Repositories

oliverzhang42/ood_medical_images
pytorch
Mentioned in GitHub
guyAmit/GLOD
pytorch
Mentioned in GitHub
albertkx/conal
pytorch
Mentioned in GitHub
jun-cen/unified_open_set_recognition
pytorch
Mentioned in GitHub
AlexMeinke/Provable-OOD-Detection
pytorch
Mentioned in GitHub
sayakpaul/Generalized-ODIN-TF
tf
Mentioned in GitHub
zjysteven/mixoe
pytorch
Mentioned in GitHub
hendrycks/outlier-exposure
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
out-of-distribution-detection-on-cifar-10WRN 40-2 (MSP Baseline)
AUROC: 97.8
FPR95: 34.94
out-of-distribution-detection-on-cifar-10WRN 40-2 + OE
AUROC: 97.8
FPR95: 9.50
out-of-distribution-detection-on-cifar-10-vsWRN 40-2 + OE
AUPR: 76.2
AUROC: 93.3
out-of-distribution-detection-on-cifar-100WRN 40-2 (MSP Baseline)
FPR95: 62.66
out-of-distribution-detection-on-cifar-100WRN 40-2 + OE
FPR95: 38.50
out-of-distribution-detection-on-cifar-100-vs-8OE
AUROC: 86.9

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