ATOM: Robustifying Out-of-Distribution Detection Using Outlier Mining

Jiefeng Chen, Yixuan Li, Xi Wu, Yingyu Liang, Somesh Jha

TL;DR

This paper introduces ATOM, a novel method for robustly detecting out-of-distribution (OOD) inputs in machine learning systems. ATOM tackles the critical vulnerability of current OOD detectors to adversarial attacks by intelligently mining informative auxiliary OOD data during training, leading to significantly improved robustness and generalization.

What Problem Does This Paper Address?

Deploying machine learning models in real-world, "open-world" scenarios requires them to reliably distinguish between data they were trained on (in-distribution, ID) and data from entirely different sources (out-of-distribution, OOD). This OOD detection capability is crucial for safety, especially in applications like autonomous driving. However, existing OOD detection methods, while effective on clean OOD data, are surprisingly brittle and can be easily fooled by adversarial perturbations. These attacks can make an OOD sample appear as if it belongs to the ID distribution, leading to incorrect classifications and potentially dangerous outcomes. The paper highlights that even using auxiliary OOD data, which has shown promise, can be ineffective or even detrimental if not selected carefully, as many auxiliary samples might not be informative for defining a robust decision boundary.

Methods

ATOM (Adversarial Training with informative Outlier Mining) is a training framework designed to enhance the robustness of OOD detectors. Its core innovation lies in informative outlier mining: instead of using all available auxiliary OOD data, ATOM selectively samples "informative" outliers. These are auxiliary OOD samples that the current OOD detector is uncertain about, meaning they lie close to the decision boundary. By focusing on these challenging examples, ATOM effectively tightens the decision boundary, making it more resilient to perturbations.

The training process involves:

  1. Adversarial Training: The model is trained to be robust against adversarial perturbations, specifically targeting the OOD detector.
  2. Informative Outlier Mining: During training, a subset of auxiliary OOD data is selected based on the model's current uncertainty (low OOD score). This is done adaptively in each training epoch.
  3. Unified Framework: ATOM combines these two components to create a robust OOD detector that generalizes well even to unseen adversarial attacks.

Datasets

The paper uses standard datasets for its experiments:

  • In-distribution Datasets: CIFAR-10, CIFAR-100, and SVHN.
  • Auxiliary OOD Datasets: 80 Million Tiny Images (TinyImages) and ImageNet-RC.
  • Out-of-distribution Test Datasets: SVHN, Textures, Places365, LSUN (crop and resize), and iSUN.

The authors also introduce a unified evaluation framework that includes various types of OOD inputs, such as natural OOD, L∞ attacked OOD, corruption attacked OOD, and compositional OOD.

Key Insights and Ideas

  • Not all auxiliary OOD data is created equal: Randomly using auxiliary OOD data can be ineffective or even harmful. Only samples near the decision boundary truly help in tightening it and improving robustness.
  • Outlier mining is key to robustness: By focusing on "hard" or uncertain OOD examples, ATOM effectively regularizes the OOD detector, leading to a more robust decision boundary.
  • Robustness generalizes: ATOM's approach not only improves performance against known adversarial attacks but also generalizes to unseen attack types, a significant advantage in real-world scenarios.
  • Theoretical backing: The paper provides theoretical analysis to formalize why informative outlier mining is effective and how it reduces sample complexity.

Key Results

ATOM demonstrates state-of-the-art performance across a broad family of classic and adversarial OOD evaluation tasks.

  • On CIFAR-10, ATOM reduces the False Positive Rate (FPR) by up to 57.99% under adversarial OOD inputs, significantly outperforming previous best baselines.
  • ATOM outperforms the previous best baseline ACET by a large margin on L∞ OOD evaluation tasks (e.g., 53.9% FPR reduction on CIFAR-10).
  • ATOM shows remarkable generalization to unseen corruption attacks, outperforming baselines by up to 30.99% FPR on CIFAR-10.
  • Ablation studies confirm the importance of both adversarial training and informative outlier mining for achieving robust OOD detection.

Limitations and Future Work

  • Computational Cost: While ATOM achieves strong results, the adversarial training component can increase computational cost. The paper mentions that outlier mining itself has relatively low overhead.
  • Hyperparameter Tuning: The effectiveness of ATOM relies on choosing appropriate hyperparameters, particularly the sampling parameter q for outlier mining, which is determined via validation.
  • Future Work: The authors suggest that their unified evaluation framework can facilitate future research on robust OOD detection. They also provide their code and data to encourage further exploration in this area.

Summary updated

BibTeX
@inproceedings{chen2021atom,
  author = {Jiefeng Chen and Yixuan Li and Xi Wu and Yingyu Liang and Somesh Jha},
  title = {{ATOM: Robustifying Out-of-Distribution Detection Using Outlier Mining}},
  booktitle = {ECML/PKDD},
  year = {2021},
  doi = {10.1007/978-3-030-86523-8\_26},
}
Figure