Abstract
Deep neural networks often exhibit overconfidence when presented with Out-of-Distribution (OoD) data, posing significant safety risks in real-world applications. While Outlier Exposure (OE) is a common mitigation strategy, traditional methods relying on visual outliers suffer from high computational costs and sensitivity to dataset selection. This paper introduces a novel framework that replaces visual outliers with textual outliers during training. By leveraging multi-modal models like CLIP and generative models such as GPT-3 and BLIP-2, the authors demonstrate that textual outliers are more computationally efficient and more effective at defining the decision boundary between known and unknown data. Our findings show a 13x speedup in training and a significant reduction in False Positive Rates (FPR95) across large-scale benchmarks.
Introduction
A fundamental challenge in deploying deep learning models is their tendency to assign high-probability scores to inputs they have never encountered before. Outlier Exposure (OE) addresses this by training models to output low-confidence predictions on a proxy "outlier" dataset. However, traditional OE is bottlenecked by the use of actual images as outliers. This approach is often computationally expensive, highly dependent on the specific auxiliary dataset chosen (e.g., SUN vs. Places), and struggles to bridge the "Near-OoD" gap—the difficulty of finding visual outliers that are semantically close enough to the training data to refine the decision boundary.
Methodology: Leveraging Textual Semantics
The proposed framework utilizes the CLIP embedding space to train classifiers. Instead of augmenting the training set with additional images, the authors utilize textual embeddings as proxies for OoD data. This method explores three distinct levels of textual verbosity:
- Word-level Outliers: Utilizing a BERT-based retrieval system to identify words related to In-Distribution (ID) images, while filtering out actual class labels.
- Description-level Outliers: Employing GPT-3 to generate detailed linguistic descriptions of ID classes (e.g., "a photo of a Siamese cat with blue eyes and pointy ears").
- Caption-level Outliers: Using BLIP-2 to generate captions for ID images, subsequently applying Mahalanobis distance to filter for "near-distribution" captions that do not overlap with ID data.
Bridging the Modality Gap
Because image and text embeddings are not perfectly aligned within the CLIP space, the authors inject Gaussian noise into the textual embeddings during training. The objective function is designed to minimize cross-entropy on ID images while maximizing entropy (encouraging uncertainty) on these synthesized textual outliers.
Experimental Evaluation
The method was evaluated on several large-scale and "hard" benchmarks, including ImageNet-1K, ImageNet-10, ImageNet-20, and CUB200. OoD test sets included iNaturalist, SUN, Places, and Texture. A specific focus was placed on "Hard OoD" scenarios, such as ImageNet-10 vs. ImageNet-20, where unknown classes are semantically similar to known classes (e.g., distinguishing between different breeds of dogs).
Key Insights
The Proximity of Text
UMAP visualizations reveal that textual outliers reside closer to the ID data in the feature space than traditional visual outliers. This proximity makes them "harder" examples, forcing the model to learn a more precise and robust decision boundary.
Efficiency and Robustness
Training with text provides an "efficiency dividend." The authors report a 13x speedup in training time compared to visual outlier synthesis. Furthermore, unlike visual OE, which fluctuates based on the auxiliary dataset, textual outliers demonstrate significantly lower performance variance, making the training process more stable and predictable.
The Three Pillars of Effective Outliers
The research identifies three criteria for successful textual outliers:
- Near-Distribution: They must be positioned close to the ID boundary.
- Descriptiveness: Richer linguistic semantics improve model generalization.
- Visual Semantics: The text must describe elements that are physically manifest in images.
Results
The results demonstrate the superiority of textual exposure over traditional methods:
- ImageNet-1K: Caption-level textual outliers reduced the FPR95 from 73.80% (standard visual OE) to 58.21%.
- Hard OoD Tasks: In the ImageNet-10 vs. ImageNet-20 task, the textual approach achieved an FPR95 of 3.60%, a massive improvement over the 93.20% reported for traditional visual OE.
Conclusion and Future Work
Textual Outlier Exposure represents a significant shift in how we approach model robustness. By moving from image-based to text-based outliers, we gain efficiency, stability, and better performance on semantically challenging tasks. While the current reliance on heuristic selection and manual filtering (such as Mahalanobis distance thresholds) presents a limitation, future research may focus on automating the generation of optimal outliers and exploring the impact of diverse vision-language backbones beyond CLIP.
Summary updated