Abstract Deep learning models often exhibit high performance in controlled environments but struggle in the "open-world" where they encounter data from unknown categories or inputs specifically designed to deceive them. This survey explores the critical intersection of Out-of-Distribution (OOD) detection and adversarial robustness. By framing both challenges as manifestations of distributional shifts, the authors propose a unified taxonomy and evaluate emerging defensive strategies. We discuss the concepts of Robust OOD Detection and Unified Robustness, highlighting the need for AI systems that are both secure against malicious perturbations and aware of their own knowledge boundaries.
Introduction
In the "closed-world" setting of standard machine learning benchmarks, models operate under the assumption that test data follows the same distribution as training data. However, real-world deployment—such as in autonomous driving or medical diagnosis—presents an "open-world" challenge. Here, models are frequently confronted with two distinct but related threats: Out-of-Distribution (OOD) samples and Adversarial Examples.
Traditionally, these have been treated as separate research silos. OOD detection focuses on identifying inputs from categories not seen during training (e.g., a model trained on vehicles encountering a pedestrian). Adversarial robustness focuses on defending against inputs where small, often imperceptible, perturbations are added to force a misclassification. This survey argues that these threats are "acquaintances"—two sides of the same coin of distributional shifts—and that a unified perspective is essential for building truly reliable AI.
A Taxonomy of Distributional Shifts
To bridge the gap between OOD detection and adversarial robustness, the authors introduce a taxonomy based on the nature of the shift from the training distribution:
- Semantic Shifts: These involve changes in the underlying meaning or category of the data. This is the primary domain of OOD detection and open-set recognition.
- Covariate Shifts: These involve modifications to the appearance, style, or noise levels of the data without changing its semantic category. This includes domain shifts, common corruptions, and adversarial attacks.
As shown in Figure 1, "Adversarial OOD" represents a particularly challenging intersection where an OOD sample is manipulated to appear as if it belongs to the in-distribution (ID) space, potentially bypassing both standard classifiers and OOD detectors.
The Adversarial OOD Threat
One of the key insights of this survey is the fragility of standard OOD detectors. While a detector might easily flag a "far-OOD" sample like random noise, a sophisticated attacker can apply gradient-based perturbations to make that noise look perfectly normal to the model's internal logic.
Figure 2 illustrates how these perturbations (δ) shift samples across decision boundaries. An effective defense must not only maintain a correct task decision boundary for ID classes but also a robust OOD detector boundary that cannot be easily circumvented by small input changes.
Defensive Strategies
The survey categorizes modern defenses into two main research directions:
- Robust OOD Detection: These methods focus on securing the OOD detector itself. The goal is to ensure that even if an OOD sample is adversarially manipulated, the detector still correctly identifies it as "out-of-distribution."
- Unified Robustness: This approach seeks a single, efficient defense mechanism. Rather than stacking separate modules for OOD detection and adversarial defense, these models are trained to be inherently robust to both.
Key techniques include Outlier Exposure, where models are explicitly trained on "trash" datasets to learn the boundaries of the ID space, and Self-Supervised Learning (SSL), which encourages the model to learn more fundamental, robust features rather than relying on brittle pixel-level patterns.
Benchmarks and Key Results
The field currently utilizes standard datasets like CIFAR-10/100 and ImageNet for ID data, paired with OOD benchmarks like SVHN, LSUN, and Places365. The survey highlights the importance of the OpenOOD library for standardized evaluation.
Empirical results demonstrate the severity of the threat and the promise of new defenses:
- Vulnerability: Standard OOD baselines like Maximum Softmax Probability (MSP) can see their performance (measured by AUROC) drop by as much as 57% under simple adversarial attacks.
- ATOM (Adversarial Training with informative Outlier Mining): This method has shown significant success, achieving a 53% reduction in False Positive Rate (FPR95) on CIFAR-10 when facing adversarial OOD attacks.
- PixMix: By mixing training images with fractals and structural noise, this technique provides a near Pareto-optimal balance, reducing adversarial error by 3.9% while simultaneously boosting OOD detection.
Conclusion and Future Directions
While significant progress has been made, several challenges remain. There is a pressing need for a unified "Gold Standard" leaderboard for robust OOD detection to allow for fair comparisons. Furthermore, scaling these computationally intensive training regimes to large-scale datasets like ImageNet-1K is a major hurdle. Future research should also move toward Certified Robustness, providing mathematical guarantees that a model's OOD detector cannot be fooled within a specific perturbation range.
Summary updated