Abstract
Deep neural networks often exhibit overconfidence when encountering out-of-distribution (OOD) data, posing significant safety risks. This paper introduces OOD Entropy Regularization (OER), a framework grounded in Information Theory that addresses the limitations of standard classification training. By mitigating excessive information compression and carefully tuning model confidence, OER preserves "detection-relevant" features. Empirical results demonstrate that OER achieves state-of-the-art performance across multiple benchmarks, including CIFAR-100 and ImageNet-100, without compromising in-distribution accuracy.
Introduction
The deployment of deep learning models in safety-critical applications like autonomous driving and medical diagnostics requires robust out-of-distribution (OOD) detection. However, standard training objectives, primarily focused on classification accuracy, often lead to models that are overconfident on unfamiliar inputs. This phenomenon stems from the "Information Bottleneck" principle: to optimize for classification, models are encouraged to discard any information not strictly necessary for distinguishing between known classes. This process inadvertently removes features essential for identifying an input as fundamentally different from the training distribution.
Theoretical Framework: The Information Bottleneck Conflict
The authors analyze OOD detection through the lens of Information Theory. In a standard classification setup, the model learns a representation $Z$ of the input $X$ to predict the label $Y$. The goal is to maximize the mutual information $I(Z; Y)$ while minimizing $I(X; Z)$ to ensure generalization.
As shown in Figure 1, there is a fundamental tension between classification and detection. Effective OOD detection requires preserving information $T$ that identifies the data source, which may be discarded if it is irrelevant to the classification task $Y$. OER aims to retain this "detection-relevant" information ($U_d$) that standard classifiers typically compress away.
Proposed Method: OOD Entropy Regularization (OER)
To resolve this conflict, the authors propose the OER framework. Unlike methods that rely on synthetic outliers, OER operates solely on in-distribution (ID) data by regularizing the entropy of learned representations.
The architecture, illustrated in Figure 4, incorporates several key components:
- Temperature Tuning: By lowering the temperature coefficient ($\tau$) during training, the model increases the conditional entropy of embeddings. This creates "asymmetric uncertainty," where confidence drops significantly faster for OOD samples than for ID samples.
- Kernel Density Estimation (KDE): Using von Mises-Fisher (vMF) and Gaussian kernels ($L_{vmf}, L_{rbf}$), the model maximizes the mutual information between inputs and features, preventing over-compression.
- Variational Reconstruction: A dedicated reconstruction network ($L_{rec}$) forces the encoder to retain structural details of the input that might be ignored by the classification head but are vital for OOD detection.
- Penultimate Layer Advantage: The authors found that features from the penultimate layer are superior for OOD detection. The final projection head often applies operations that destroy entropy and critical detection-relevant information.
Experimental Evaluation and Results
The OER framework was evaluated on standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet-100, with OOD sets such as SVHN, Textures, and iNaturalist.
OER consistently outperformed strong baselines like CIDER, SSD+, and NPOS. On CIFAR-100, OER achieved a 10.0% reduction in average FPR95 (False Positive Rate at 95% True Positive Rate) compared to CIDER. Similarly, on ImageNet-100, it reduced FPR95 by 7.6% over the best previous methods. Notably, OER achieves these gains without requiring the generation of synthetic outliers, making it highly efficient and robust.
Discussion and Conclusion
The success of OER highlights the importance of information preservation in neural network training. While classification tasks benefit from discarding "noise," OOD detection relies on the very details that standard models treat as irrelevant. By explicitly regularizing entropy and employing reconstruction losses, OER maintains a high-fidelity representation of the input distribution. Future work will focus on refining the balance between retaining detection-relevant information and suppressing truly irrelevant noise, particularly in complex scene datasets where reconstruction is more challenging.
Summary updated