TL;DR
This survey proposes a unified framework for "generalized OOD detection" that encompasses five related sub-fields (Anomaly Detection, Novelty Detection, Open Set Recognition, Out-of-Distribution Detection, and Outlier Detection). It provides a comprehensive overview of recent methodologies, clarifies the distinctions between these sub-fields, and identifies key challenges and future research directions.
What Problem Does This Paper Address?
Machine learning models are often deployed in "open-world" scenarios where they encounter data different from what they were trained on. This "out-of-distribution" (OOD) data can lead to incorrect and potentially dangerous predictions, especially in safety-critical applications like autonomous driving. While various sub-fields like Anomaly Detection (AD), Novelty Detection (ND), Open Set Recognition (OSR), and Outlier Detection (OD) all aim to address this, they often develop in isolation, leading to confusion and hindering progress. This paper aims to bridge this gap by providing a unified framework, a comprehensive survey of OOD detection methods, and a clear understanding of the relationships and differences between these related problems.
Methods
The paper categorizes OOD detection methodologies into four main groups:
- Classification-based Methods: These leverage the model's output (e.g., softmax scores) or internal representations to distinguish between in-distribution (ID) and OOD data. This includes post-hoc methods (like ODIN, ReAct) that adjust scores without retraining, and training-based methods that incorporate OOD detection into the training objective.
- Density-based Methods: These model the probability distribution of ID data and flag test samples with low likelihood as OOD. This can involve classic density estimation, deep generative models, or energy-based models.
- Distance-based Methods: These assume OOD samples will be farther away from ID data prototypes or centroids in the feature space. Techniques include Mahalanobis distance and nearest-neighbor approaches.
- Reconstruction-based Methods: These utilize encoder-decoder architectures. Models trained on ID data are expected to reconstruct ID samples well but struggle with OOD samples, with the reconstruction error serving as an indicator.
The paper also discusses methodologies from related sub-tasks (AD, ND, OSR, OD) to inspire OOD detection research.
Datasets
The paper uses the following datasets for evaluation:
- CIFAR-10: A 10-class dataset used as the in-distribution (ID) dataset.
- CIFAR-100: Used as a near-OOD dataset.
- TinyImageNet: Used as a near-OOD dataset.
- MNIST: Used as a far-OOD dataset.
- SVHN: Used as a far-OOD dataset.
- Texture: Used as a far-OOD dataset.
- Places365: Used as a far-OOD dataset.
The paper also references benchmarks from other sub-tasks, such as MVTec-AD for industrial inspection (AD) and various MNIST-based benchmarks for ND and OSR.
Key Insights and Ideas
- Unified Framework: The paper's core contribution is the "generalized OOD detection" framework, which unifies AD, ND, OSR, OOD detection, and OD. This helps clarify their subtle differences and encourages cross-pollination of ideas.
- Semantic vs. Covariate Shift: A crucial distinction is made between semantic shift (changes in label distribution) and covariate shift (changes in input distribution). While OOD detection primarily focuses on semantic shift, understanding covariate shift is also important for robustness.
- Post-hoc Methods are Promising: Recent post-hoc methods (inference-only) are showing improved performance and practicality, outperforming some training-required methods, especially in realistic scenarios.
- Data Augmentation is Key: For classification-based methods, data augmentation techniques (like PixMix, CutMix) are shown to be highly effective in improving OOD detection performance.
- Foundation Models Enhance OOD Detection: Large-scale pre-trained models (like CLIP) demonstrate significant improvements in OOD detection capabilities, highlighting the importance of transfer learning.
Key Results
The paper presents experimental results on CIFAR-10/100 benchmarks using the OpenOOD framework.
- PixMix achieved the best performance on Near-OOD in CIFAR-10 with 93.1% AUROC.
- Data augmentation methods generally showed the most effective performance.
- Post-hoc methods are making significant progress, with recent methods showing better performance on realistic datasets than older ones.
- UDG (extra-data part) showed an advantage only in CIFAR-10 near-OOD, suggesting that the quantity and quality of outlier data are critical for outlier exposure methods.
- AD methods like DRAEM and CutPaste showed strong performance on far-OOD detection, especially when using CIFAR-100 as the in-distribution dataset.
Limitations and Future Work
- Proper Evaluation and Benchmarking: The authors emphasize the need for careful construction of benchmarks and evaluations, especially to avoid ID data contamination in OOD datasets and to ensure fair comparisons.
- Outlier-free OOD Detection: A major challenge is developing outlier-free learning objectives that don't rely on auxiliary outlier datasets, which can be difficult to obtain and de-duplicate.
- Tradeoff Between Classification and OOD Detection: Achieving both high ID classification accuracy and effective OOD detection simultaneously remains a challenge, as these objectives can sometimes be conflicting. Future work should explore methods that balance these two goals.
- Real-world Benchmarks: Current evaluations are often on smaller datasets like CIFAR. More research is needed on larger, more realistic datasets like ImageNet and for broader tasks like object detection and LiDAR-based detection.
- Methodologies Across Sub-tasks: The paper encourages leveraging insights from related fields like AD and ND for OOD detection.
- OOD Detection & Generalization: Future work should focus on models that are robust to covariate shifts while also detecting semantic shifts, moving towards "full-spectrum OOD detection."
- OOD Detection & Open-Set Noisy Labels: The potential of using open-set noisy labels for outlier exposure and benefiting OOD detection needs further exploration.
- OOD Detection for Broader Learning Tasks: Extending OOD detection to multi-label classification, object detection, image segmentation, and other complex tasks is a promising direction.
- OOD Detection with World Models: Leveraging the power of large language models and multi-modal world models for OOD detection presents exciting opportunities.
Summary updated