Abstract
Out-of-distribution (OOD) detection is critical for deploying reliable machine learning models in real-world applications. Recent advances in outlier exposure (OE) have shown promising results by fine-tuning models with informatively sampled auxiliary outliers. However, previous methods assume that collected outliers are sufficiently representative to cover the boundary between in-distribution (ID) and OOD data—a requirement that is often impractical. We propose Diversified Outlier Exposure (DivOE), a framework for effective OOD detection via informative extrapolation. DivOE diversifies the auxiliary distribution by explicitly synthesizing more informative outliers during training using a multi-step optimization method. Extensive experiments demonstrate that DivOE consistently outperforms state-of-the-art baselines across various benchmarks.
Introduction
Deep learning models are notoriously overconfident, often classifying never-before-seen out-of-distribution (OOD) inputs into known in-distribution (ID) categories with high certainty. This behavior poses significant safety risks in domains like autonomous driving and medical diagnostics.
A common remedy is Outlier Exposure (OE), where models are trained on auxiliary datasets to assign low confidence to OOD samples. However, standard OE assumes the auxiliary data is diverse enough to define the ID boundary. In practice, if auxiliary outliers are too "easy" or distant from the ID data, the model fails to learn the nuanced decision boundary required for difficult OOD cases. DivOE addresses this by "stress-testing" the model, synthesizing informative outliers that sit precisely on the boundary between ID and OOD data.
Methodology: Informative Extrapolation
The core innovation of DivOE is Informative Extrapolation. Rather than treating auxiliary outliers as static data points, DivOE uses them as seeds for a multi-step optimization process. Similar to adversarial perturbations, this process pushes outliers toward the ID distribution until they become "informative"—meaning they are as close to the ID data as possible without overlapping it.
Key components include:
- Hybrid Learning Objective: A loss function that balances learning from original auxiliary outliers and newly synthesized extrapolated ones.
- Multi-step Optimization: Iteratively modifying outlier images using the gradient of the OOD score to maximize their informativeness.
- Extrapolation Pool: Generating a spectrum of outliers with varying "diversified strengths" ($\epsilon$) to ensure the model encounters a broad range of potential OOD inputs.
Experimental Results
We evaluated DivOE on standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet-1K, using auxiliary datasets like Tiny-ImageNet and ImageNet-21K. Performance was measured primarily by FPR95 (False Positive Rate at 95% True Positive Rate), where lower values indicate better detection.
- Superior Performance: DivOE consistently outperformed baselines. On CIFAR-10, it achieved an FPR95 of 11.66% (vs. 13.76% for standard OE). On CIFAR-100, it reached 24.80% (vs. 27.67% for OE).
- Data Efficiency: DivOE is remarkably robust to limited data. It maintains high performance even when the number of auxiliary outliers is reduced from 50,000 to just 1,000.
- Boundary Coverage: t-SNE visualizations confirm that extrapolated outliers cover the feature space near the ID boundary much more effectively than the original auxiliary set, forcing the model to define a tighter decision boundary.
Conclusion
DivOE provides a robust framework for OOD detection by moving beyond simple sampling to active extrapolation. By synthesizing informative outliers, it enables models to learn more precise decision boundaries. While the multi-step optimization adds some computational overhead during training, the significant gains in detection accuracy and robustness—especially in data-constrained scenarios—justify the cost. Future work will focus on reducing training time and extending this framework to non-image modalities.
Summary updated