Abstract
Out-of-distribution (OOD) detection is a critical capability for reliable AI, yet it remains challenging in real-world scenarios characterized by long-tailed data distributions. In such settings, models often exhibit a bias toward common 'head' classes and confusion regarding rare 'tail' classes, leading to poor OOD performance. This paper proposes Calibrated Outlier Class Learning (COCL), a framework that treats outliers as a dedicated class and employs debiased large margin learning and logit calibration. COCL effectively reduces the False Positive Rate (FPR) and improves in-distribution classification accuracy across major benchmarks.
Introduction
Most OOD detection research assumes balanced training data. However, real-world datasets are typically long-tailed, where a few categories have many examples and most have very few. This imbalance creates two primary obstacles:
- Head Class Bias: Models overconfidently misclassify outliers as common head classes.
- Tail Class Confusion: Models misidentify rare tail-class samples as outliers due to insufficient exposure during training.
Traditional "Outlier Exposure" (OE) methods, which force a uniform distribution for outliers, often fail in these skewed environments because uncertainty is already the default state for tail classes.
The COCL Framework
The authors introduce Calibrated Outlier Class Learning (COCL), which shifts from the standard OE approach to Outlier Class Learning (OCL). By giving outliers a dedicated "seat at the table" as a $(k+1)$-th class, the model learns a more distinct boundary between known and unknown data.
The framework consists of three pillars:
- Outlier Class Learning (OCL): Explicitly categorizing auxiliary OOD data into a specific outlier class to define clear feature space boundaries.
- Debiased Large Margin Learning: A two-pronged strategy using tail-aware prototypes to cluster rare classes and a one-class learning approach to push head classes away from the outlier region.
- Outlier-Class-Aware Logit Calibration: Adjusting confidence scores during inference based on class priors, ensuring the outlier class is treated with appropriate statistical weight relative to the sum of all in-distribution classes.
Analysis and Results
A key insight of the paper is the "Gray Area" problem, where head, tail, and OOD samples overlap in the feature space. COCL addresses this by "stretching" the space between these groups using large margin learning, making the boundaries much clearer.
COCL achieved state-of-the-art results on CIFAR-LT and ImageNet-LT benchmarks. On CIFAR10-LT, it reduced the False Positive Rate (FPR95) to 30.88% (down from 53.19% for OE) while increasing classification accuracy to 81.56%. On the large-scale ImageNet-LT dataset, COCL maintained its lead with the highest AUC (71.85%) and accuracy (51.11%), proving that the method scales effectively to real-world complexity.
Conclusion
COCL demonstrates that explicitly learning an outlier class is fundamentally more effective for long-tailed data than traditional uncertainty-based methods. By addressing head class bias and tail class confusion through calibrated learning, the framework sets a new standard for robust OOD detection in imbalanced environments. Future research may focus on achieving similar results without reliance on auxiliary outlier data.
Summary updated