NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Raising the Bar on the Evaluation of Out-of-Distribution Detection

Jishnu Mukhoti, Tsung-Yu Lin, Bor-Chun Chen, Ashish Shah, Philip H. S. Torr, Puneet K. Dokania, Ser-Nam Lim

Abstract: In image classification, a lot of development has happened in detecting out-of-distribution (OoD) data. However, most OoD detection methods are evaluated on a standard set of datasets, arbitrarily different from training data. There is no clear definition of what forms a "good" OoD dataset. Furthermore, the state-of-the-art OoD detection methods already achieve near perfect results on these standard benchmarks. In this paper, we define 2 categories of OoD data using the subtly different concepts of perceptual/visual and semantic similarity to in-distribution (iD) data. We define Near OoD samples as perceptually similar but semantically different from iD samples, and Shifted samples as points which are visually different but semantically akin to iD data. We then propose a GAN based framework for generating OoD samples from each of these 2 categories, given an iD dataset. Through extensive experiments on MNIST, CIFAR-10/100 and ImageNet, we show that a) state-of-the-art OoD detection methods which perform exceedingly well on conventional benchmarks are significantly less robust to our proposed benchmark. Moreover, we observe that b) models performing well on our setup also perform well on conventional real-world OoD detection benchmarks and vice versa, thereby indicating that one might not even need a separate OoD set, to reliably evaluate performance in OoD detection.

TL;DR

Current Out-of-Distribution (OoD) detection benchmarks are becoming "too easy," with state-of-the-art models achieving near-perfect scores that don't reflect real-world robustness. This paper introduces a GAN-based framework to generate more challenging benchmarks—specifically Near OoD and Shifted samples—proving that models which ace standard tests often fail when visual and semantic boundaries are blurred.

The Problem: Benchmark Saturation and Arbitrary Definitions

In machine learning, an OoD detector’s job is to identify data that falls outside its training distribution. However, the field faces two major hurdles:

  1. Benchmark Saturation: Popular benchmarks (like CIFAR-10 vs. SVHN) are essentially "solved," with models hitting 99%+ AUROC. This makes it difficult to distinguish between truly robust methods and those over-fitted to simple tasks.
  2. Lack of Formalism: There is no formal definition of what makes a "good" OoD dataset. Researchers often pick random datasets for comparison, which may not simulate the subtle shifts a model encounters in real-world applications.

A New Taxonomy for OoD Data

To address these issues, the authors formalize OoD detection through the lenses of Perceptual Similarity (visual appearance) and Semantic Similarity (underlying meaning). This leads to a more nuanced classification of outliers.

Taxonomy of OoD data based on perceptual and semantic similarity.

As shown in the taxonomy above, OoD data can be split into:

  • Distribution Shift (Shifted Samples): Visually different from training data but semantically similar (e.g., a "dog" in a sketch style).
  • Unseen Categories: Semantically different from training data. This is further divided into Far OoD (perceptually different) and Near OoD (perceptually similar, like a wolf vs. a husky).

Methodology: Generating Harder Benchmarks

The authors propose a framework using Generative Adversarial Networks (GANs) to create these challenging samples directly from an in-distribution (iD) dataset:

  • Shifted Samples: Generated using a Pix-2-Pix model that maximizes perceptual loss (LPIPS) while minimizing Mutual Information (MI) to ensure the category remains recognizable despite the visual change.
  • Near OoD Samples: Generated using BigGAN or DCGAN, minimizing LPIPS to keep them visually close to iD data while maximizing MI to ensure they are semantically distinct.
Visual comparison of In-Distribution (iD), Shifted, and Near OoD samples.

Key Insights and Results

The study evaluated this framework across MNIST, CIFAR-10/100, and ImageNet, revealing several critical insights:

  • The "Near OoD" Gap: Models that achieve ~91% AUROC on standard benchmarks like ImageNet-O see a significant drop to ~84% on the generated Near OoD benchmark. This suggests current SOTA methods are over-optimized for obvious "Far OoD" tasks.
  • Evaluation Without External Data: The results indicate that researchers might not need external datasets to evaluate models. Generating Near OoD samples from the training set provides a reliable, challenging benchmark for any task.
  • Outlier Exposure Works: Training models using these generated Near OoD samples as "negative examples" (Outlier Exposure) significantly improved real-world performance. For instance, a ResNet-50's AUROC on unseen datasets improved from 80.97% to 87.02% after training with generated samples.
  • Calibration Issues: Models were consistently overconfident on "Shifted" images, leading to higher Expected Calibration Error (ECE) compared to standard corrupted datasets like CIFAR-10-C.

Limitations and Future Work

While effective, the framework has limitations. The generative quality of Near OoD samples can sometimes appear as textures or "blobs" rather than recognizable objects. Additionally, training large-scale GANs for these benchmarks is computationally expensive. Future work may explore extending this framework to object detection and segmentation tasks.

Summary updated

BibTeX
@inproceedings{mukhoti2023raising,
  author = {Jishnu Mukhoti and Tsung-Yu Lin and Bor-Chun Chen and Ashish Shah and Philip H. S. Torr and Puneet K. Dokania and Ser-Nam Lim},
  title = {{Raising the Bar on the Evaluation of Out-of-Distribution Detection}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  url = {https://openreview.net/forum?id=hGm2Ct52tm4},
}
Figure