TL;DR
Standard Outlier Exposure (OE) methods for out-of-distribution (OOD) detection force uniform labels on auxiliary outliers, which inadvertently erases their semantic relationships to known in-distribution classes. This paper introduces Adaptive Confidence OE (AOE), a method that leverages a learnable temperature scaling mechanism to create soft, relation-preserving outlier labels. This simple yet effective recalibration significantly improves the separation margin between safe in-distribution data and unexpected OOD inputs without adding any inference overhead.
What Problem Does This Paper Address?
When deploying machine learning models in safety-critical, real-world scenarios, handling out-of-distribution (OOD) data is vital. Models shouldn't make overconfident, incorrect predictions on inputs they have never seen before. A popular defense is Outlier Exposure (OE), where models are exposed to auxiliary outlier datasets during training and penalized if they don't output a uniform (flat) probability distribution over all known in-distribution (ID) classes.
The authors identify a major flaw in this approach: the over-softening effect. By forcing a perfectly uniform label on every outlier, standard OE completely ignores the semantic relationships between outliers and ID categories. For instance, an OOD sample like a "school bus" should naturally be closer to the ID class "truck" than to "cat". Forcing a uniform label destroys this structure, leading to a suboptimal decision boundary and weaker OOD detection performance.
Methods
To mitigate the over-softening effect, the authors propose Adaptive Confidence OE (AOE). Instead of using fixed uniform targets, AOE dynamically recalibrates outlier labels using temperature scaling.
During training, the process unfolds as follows:
- The model generates standard logit predictions for an OOD sample.
- These logits are scaled by a learnable temperature parameter ($T > 1$). This smooths out the distribution (pushing it toward high entropy) without completely erasing the relative class-wise differences.
- The model is then supervised to match these adaptive soft targets.
The framework is illustrated below:
The authors introduce two optimization strategies to learn the temperature $T$ alongside the model weights $\theta$:
- Joint Training: Optimizing both model parameters and temperature simultaneously within a single computational graph.
- Alternating Training: Decoupling the updates by iteratively optimizing $T$ to satisfy an alignment constraint, and then treating it as a constant to update the model parameters.
Datasets
The authors validated their approach using the standardized OpenOOD v1.5 benchmark protocol:
- In-Distribution (ID) Datasets: CIFAR-10, CIFAR-100, and ImageNet-200 (a 200-class subset of ImageNet-1K).
- Auxiliary Outlier Datasets (for training): Tiny ImageNet-597 (for CIFAR models) and the remaining 800 classes of ImageNet-1K (for ImageNet-200 models). They also tested robustness using 300K random images from the 80 Million Tiny Images dataset.
- OOD Evaluation Benchmarks: Evaluated across both near-OOD (semantic shifts like CIFAR-100 vs CIFAR-10) and far-OOD (pronounced covariate shifts like MNIST, SVHN, Textures, Places365, iNaturalist, and OpenImage-O).
Key Insights and Ideas
- The Uniform Label Trade-off: The authors mathematically prove (Theorem 1) that while reducing prediction differences for OOD samples helps expand the separation margin, aggressively flattening them via uniform labels introduces a negative quadratic penalty that actually shrinks the optimal margin bound.
- Semantic Proximity Matters: Allowing the model to maintain a smaller distance to semantically relevant categories (e.g., recognizing a school bus looks like a truck) prevents the decision boundary from collapsing inward, resulting in a much cleaner separation between ID and OOD spaces.
- Self-Evolving Calibration: Because the temperature $T$ is learnable, it adapts to the model's current feature representation state throughout training, automatically balancing the trade-off between entropy maximization and relation preservation.
Key Results
AOE consistently outperforms standard Outlier Exposure and other state-of-the-art training-time regularization methods across all major benchmarks:
- CIFAR-10: AOE reduces the False Positive Rate at a 95% True Positive Rate (FPR95) by 2.40% on near-OOD and 2.51% on far-OOD tasks compared to standard OE.
- CIFAR-100: Achieves a massive 9.11% reduction in FPR95 under the far-OOD setting.
- ImageNet-200: Lowers FPR95 by 2.02% (near-OOD) and 2.10% (far-OOD).
- Plug-and-Play Compatibility: AOE can be seamlessly integrated into other advanced outlier exposure frameworks (like MixOE, DOE, and DAL), consistently boosting their performance without adding any inference-time computational cost.
Limitations and Future Work
The primary limitation of AOE is its reliance on the auxiliary outlier dataset containing some meaningful semantic overlap or proximity to the in-distribution classes. If the training outliers are completely alien and share zero features or semantic relationships with the ID data, the learnable temperature-scaled pseudo-labels will naturally collapse back into uniform targets, losing their competitive advantage over standard OE.
As a next step, the authors suggest exploring relation-aware outlier weighting, which would dynamically emphasize highly informative outliers while suppressing weakly related samples during training.
Summary updated