Abstract
To detect distribution shifts and improve model safety, many out-of-distribution (OOD) detection methods rely on the predictive uncertainty or features of supervised models trained on in-distribution data. In this paper, we critically re-examine this popular family of OOD detection procedures, and we argue that these methods are fundamentally answering the wrong questions for OOD detection. There is no simple fix to this misalignment, since a classifier trained only on in-distribution classes cannot be expected to identify OOD points; for instance, a cat-dog classifier may confidently misclassify an airplane if it contains features that distinguish cats from dogs, despite generally appearing nothing alike. We find that uncertainty-based methods incorrectly conflate high uncertainty with being OOD, while feature-based methods incorrectly conflate far feature-space distance with being OOD. We show how these pathologies manifest as irreducible errors in OOD detection and identify common settings where these methods are ineffective. Additionally, interventions to improve OOD detection such as feature-logit hybrid methods, scaling of model and data size, epistemic uncertainty representation, and outlier exposure also fail to address this fundamental misalignment in objectives. We additionally consider unsupervised density estimation and generative models for OOD detection, which we show have their own fundamental limitations.
Introduction
Out-of-distribution (OOD) detection is a critical safety requirement for deploying machine learning in high-stakes environments, such as autonomous driving or medical diagnostics. The prevailing paradigm involves taking a classifier trained on in-distribution (ID) data and utilizing its internal signals—such as logit confidence or feature-space distances—to flag OOD inputs. However, this approach is conceptually misspecified. A model trained to distinguish between specific ID classes (e.g., "cats" vs. "dogs") is not inherently equipped to answer the question: "Is this point from a different distribution entirely?"
This paper argues that current OOD detection methods suffer from fundamental pathologies that cannot be resolved through standard improvements like model scaling or outlier exposure. By using models trained for one task to perform another, the field has encountered a "scaling wall" where even the largest models exhibit significant irreducible errors.
Methodology
The study categorizes and critiques two dominant families of OOD detection:
- Feature-based methods: Techniques like Mahalanobis distance measure the proximity of test inputs to training clusters in the feature space. These methods fail because models do not learn OOD-discriminative features unless explicitly incentivized, and high-dimensional feature spaces often contain irrelevant dimensions that mask useful signals.
- Logit-based methods: Techniques like Maximum Softmax Probability (MSP) rely on model uncertainty. These methods incorrectly conflate label uncertainty (ambiguity between ID classes) with OOD uncertainty (membership in a different distribution).
To quantify these limitations, the authors utilize "Oracle" experiments. By training a binary classifier on the features of both ID and OOD data, they establish the theoretical upper bound for feature-based performance. Comparing standard methods against this Oracle reveals the "irreducible error" inherent in current approaches.
The Pathology of OOD Detection
The core issue is the misalignment of objectives. A classifier trained to separate ID classes will learn shortcuts that distinguish those classes but may be present in unrelated OOD data. For example, a cat-dog classifier might rely on texture features that also appear in an airplane image, leading to a high-confidence misclassification of the airplane as a dog.
Furthermore, logit-based methods are hampered by the fact that many ID images are naturally ambiguous (multi-label), leading to high uncertainty that is incorrectly flagged as OOD. Conversely, many OOD points are mapped far from decision boundaries in the logit space, resulting in high-confidence predictions that bypass detection.
Experimental Results and Scaling
The research covers extensive benchmarks in both vision (ImageNet-1k, CIFAR-10) and language (Multi-NLI). Key findings include:
- High False Positive Rates: Logit-based methods frequently exhibit an average FPR@95 (False Positive Rate at 95% True Positive Rate) exceeding 60% across vision tasks. In NLP, this rate often climbs above 90% for models like BART.
- The Scaling Wall: While scaling models to massive sizes (e.g., ViT-G with 22 billion parameters) improves performance, it does not eliminate the fundamental gap. Even state-of-the-art large models maintain >5% irreducible error on challenging near-OOD tasks.
- Outlier Exposure Risks: While training on outliers can improve detection metrics, it often degrades OOD generalization. The authors observed accuracy drops of over 10% on covariate-shifted data (e.g., blurred images) when using outlier exposure.
- Generative Paradox: Higher-quality generative models (those with better ID likelihood) are often worse at OOD detection because they prioritize low-level pixel correlations over high-level semantic meaning.
Discussion and Conclusion
The study concludes that OOD detection is currently an underspecified problem. Current heuristic-based methods are reaching their limits because they attempt to extract OOD signals from models that were never trained to provide them.
Future research should move away from minor scoring tweaks and toward methods that directly estimate the probability of distribution membership ($p(OOD|x)$). Furthermore, practitioners must be intentional about the trade-offs between OOD detection and generalization, recognizing that what constitutes "out-of-distribution" is often task-dependent and subjective.
Summary updated