ImageNet-OOD: Deciphering Modern Out-of-Distribution Detection Algorithms

William Yang, Byron Zhang, Olga Russakovsky · OpenReview

Abstract

The task of out-of-distribution (OOD) detection is notoriously ill-defined. Earlier works focused on new-class detection, aiming to identify label-altering data distribution shifts, also known as "semantic shift." However, recent works argue for a focus on failure detection, expanding the OOD evaluation framework to account for label-preserving data distribution shifts, also known as "covariate shift." Intriguingly, under this new framework, complex OOD detectors that were previously considered state-of-the-art now perform similarly to, or even worse than the simple maximum softmax probability baseline. This raises the question: what are the latest OOD detectors actually detecting? Deciphering the behavior of OOD detection algorithms requires evaluation datasets that decouples semantic shift and covariate shift. To aid our investigations, we present ImageNet-OOD, a clean semantic shift dataset that minimizes the interference of covariate shift. Through comprehensive experiments, we show that OOD detectors are more sensitive to covariate shift than to semantic shift, and the benefits of recent OOD detection algorithms on semantic shift detection is minimal. Our dataset and analyses provide important insights for guiding the design of future OOD detectors.

Introduction: The Distribution Shift Dilemma

In the field of AI safety, the goal of out-of-distribution (OOD) detection is to identify when a test image comes from a distribution different from the training data. However, the field faces a significant terminology challenge. "Distribution shift" can refer to two distinct phenomena:

  1. Semantic Shift: Encountering a new object category (e.g., a model trained on dogs seeing a cat).
  2. Covariate Shift: Encountering a known object in a new style or condition (e.g., a dog in a sketch or a blurry photo).
Conceptualizing the OOD problem: Distinguishing between In-Distribution (ID) classes and potential Out-of-Distribution (OOD) samples like a cat with sunglasses.

Current OOD benchmarks often conflate these two. If a detector flags a blurry dog as OOD, is it successfully identifying a distribution shift, or is it simply failing to generalize? Recent studies have found that complex, modern OOD detectors often perform worse than the simple Maximum Softmax Probability (MSP) baseline—a method from 2017—when tasked with "failure detection." This paper seeks to decipher what modern OOD algorithms are actually detecting by decoupling these shifts.

Methodology: The ImageNet-OOD Dataset

To understand OOD detectors, we require a dataset that provides a "clean" semantic shift with minimal covariate shift. We introduce ImageNet-OOD, a manually curated dataset of 31,807 images from 637 classes, designed to be the gold standard for pure semantic shift. The curation process involved:

  • Hierarchical Filtering: Removing any ImageNet-21K classes that were ancestors or descendants of ImageNet-1K classes to avoid label leakage.
  • Visual Disambiguation: Manually filtering out classes that are visually indistinguishable to humans (e.g., "Violin" vs. "Viola") or represent "semantically-grounded covariate shifts" (e.g., "Scuba Diver" vs. "Aqualung").
  • Sanity Checks: Testing detectors on random, untrained models to ensure they aren't relying on low-level image statistics like noise or blur rather than semantic understanding.
Visual disambiguation examples: The curation process involves removing visually similar classes (e.g., Violin vs. Viola) and semantically-grounded covariate shifts (e.g., Scuba Diver vs. Aqualung).

Key Insights and Results

Our comprehensive experiments reveal that modern OOD detectors are often "distracted" by image textures and corruptions rather than identifying truly new object categories. Key findings include:

  • The Covariate Distraction: Modern detectors are significantly more sensitive to covariate shifts than semantic shifts. They are more likely to flag a blurry version of a known class than a clear image of a brand-new class.
  • Minimal Gains over Baselines: On the clean ImageNet-OOD dataset, the best-performing modern detector provided less than a 1% improvement in AUROC over the 2017 MSP baseline. MSP remains the most robust method for failure detection across various architectures.
  • Texture Bias and Shortcuts: Qualitative analysis shows that methods like ViM and ASH-B have a strong bias toward flagging textures or text-heavy images as OOD. Furthermore, many detectors "confidently" detect OOD images even when using a model with random weights, proving they rely on image statistic shortcuts.

Conclusion

Decoupling semantic and covariate shifts reveals that the perceived progress in OOD detection is often driven by sensitivity to low-level image features rather than semantic boundaries. Future research must move away from these shortcut features to design algorithms that truly understand the semantic limits of their training data.

Summary updated

BibTeX
@inproceedings{yang2024imagenet,
  author = {William Yang and Byron Zhang and Olga Russakovsky},
  title = {{ImageNet-OOD: Deciphering Modern Out-of-Distribution Detection Algorithms}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=VTYg5ykEGS},
}
Figure