Abstract
Deep learning models often exhibit overconfidence when encountering out-of-distribution (OOD) samples, posing significant safety risks. This paper introduces Adversarial Outlier Exposure (AOE), a method that improves OOD detection by training models on synthetic outliers adversarially perturbed toward the in-distribution (ID) manifold. By forcing the model to reject these "hard negatives," AOE tightens decision boundaries and enhances robustness against adversarial OOD attacks without compromising standard classification accuracy.
Introduction
Deep learning models are notoriously overconfident, often classifying unfamiliar "out-of-distribution" (OOD) samples into known categories with high certainty. This behavior is a critical safety concern for autonomous systems and medical AI. While techniques like Outlier Exposure (OE) use auxiliary datasets to teach models what "else" looks like, they remain vulnerable to adversarial OOD attacks—subtle perturbations that trick models into misidentifying OOD samples as valid in-distribution (ID) data. Furthermore, traditional adversarial training often involves a trade-off, degrading performance on standard data. The authors aim to bridge this gap by creating a more robust detection mechanism that maintains high classification accuracy.
Methodology
The authors propose Adversarial Outlier Exposure (AOE), leveraging Energy-Based Models (EBMs) where a classifier assigns scalar energy values to inputs (low for ID, high for OOD). The approach consists of three main components:
- Synthetic Outlier Generation: Synthetic outliers are sampled from a generative model (e.g., BigGAN) trained on ID data, removing the need for massive external datasets.
- The Adversarial Twist: Unlike standard OE, AOE applies adversarial perturbations to these synthetic outliers. Using a gradient-based approach similar to FGSM, it moves outliers toward lower energy states, making them appear "more like" ID data to the model's current energy function.
- Tightening the Boundary: By training the model to reject these confusing "hard negatives," AOE forces the learning of a tighter, more robust decision boundary. Crucially, only outliers are perturbed, preserving the model's accuracy on standard ID data.
Experimental Results
The method was evaluated on CIFAR-10 and CIFAR-100 against a battery of eight OOD benchmarks, including Textures, TinyImageNet, and LSUN.
Key findings include:
- Superior Detection: On CIFAR-100, AOE achieved an AUROC of 93.7% using an energy-based detector, significantly outperforming standard OE (84.4%).
- Reduced False Positives: The FPR95 (False Positive Rate at 95% True Positive Rate) dropped from 42.4% (OE) to 24.7% (AOE) on CIFAR-100.
- Maintained Accuracy: ID classification accuracy remained stable (e.g., 94.4% for CIFAR-10), avoiding the typical robustness-accuracy trade-off seen in standard adversarial training.
- Adversarial Resilience: AOE-trained models maintained high performance under adversarial OOD attacks at test time, whereas standard OE models often collapsed to random guessing.
Discussion and Future Work
AOE demonstrates that adversarial training on outliers provides robustness benefits without the usual accuracy penalty. By targeting the energy function directly, the method leverages the theoretical link between energy and data density. The model becomes "sharper" at the edges without losing focus on core classes.
Future work includes scaling AOE to high-resolution images and more complex architectures, expanding to domains like object detection or semantic segmentation, and exploring diverse generative models (e.g., Diffusion models) for outlier synthesis to further improve OOD space coverage.
Summary updated