[Paper Review] Boosting Out-of-distribution Detection with Typical Features
This paper proposes BATS (Batch Normalization Assisted Typical Set Estimation), a plug-and-play method that improves out-of-distribution (OOD) detection by rectifying deep features into their typical set—regions of high probability in the model's feature space. By leveraging Batch Normalization statistics to identify and truncate extreme, low-probability features, BATS enhances OOD score separability, achieving state-of-the-art performance with up to 5.11% lower FPR95 and 1.43% higher AUROC on ImageNet, while also improving model calibration.
Out-of-distribution (OOD) detection is a critical task for ensuring the reliability and safety of deep neural networks in real-world scenarios. Different from most previous OOD detection methods that focus on designing OOD scores or introducing diverse outlier examples to retrain the model, we delve into the obstacle factors in OOD detection from the perspective of typicality and regard the feature's high-probability region of the deep model as the feature's typical set. We propose to rectify the feature into its typical set and calculate the OOD score with the typical features to achieve reliable uncertainty estimation. The feature rectification can be conducted as a {plug-and-play} module with various OOD scores. We evaluate the superiority of our method on both the commonly used benchmark (CIFAR) and the more challenging high-resolution benchmark with large label space (ImageNet). Notably, our approach outperforms state-of-the-art methods by up to 5.11$\%$ in the average FPR95 on the ImageNet benchmark.
Motivation & Objective
- To address the challenge of unreliable uncertainty estimation in OOD detection caused by extreme, low-probability features in deep neural network activations.
- To improve OOD detection performance by redefining feature representation through a focus on feature typicality, rather than relying solely on score design.
- To develop a plug-and-play module that enhances existing OOD detection methods without retraining, using only pre-trained models.
- To theoretically and empirically validate that rectifying features into their typical set reduces bias and improves uncertainty estimation via bias-variance trade-off.
- To demonstrate consistent performance gains across diverse benchmarks, including high-resolution ImageNet and standard CIFAR datasets.
Proposed method
- The method identifies the typical set of features as the high-probability region of the model’s activation distribution, assuming approximate Gaussianity per channel.
- It uses Batch Normalization statistics (mean and scale) as a proxy to estimate the typical set, enabling efficient and scalable feature rectification.
- Extreme features—those falling outside the typical set—are truncated to the boundary of the typical set using the Batch Normalization transformation, effectively 'rectifying' them.
- The rectified features are then used to compute OOD scores with any existing post-hoc method (e.g., energy score, MSP, ODIN), improving separability between in-distribution and out-of-distribution examples.
- The approach is implemented as a lightweight module that can be applied to any pre-trained model without retraining.
- The strength of the rectification is controlled by a hyperparameter that balances bias and variance in uncertainty estimation.
Experimental results
Research questions
- RQ1Can improving feature typicality through rectification into high-probability regions enhance OOD detection performance?
- RQ2How does feature rectification based on Batch Normalization statistics affect the bias-variance trade-off in uncertainty estimation?
- RQ3To what extent can a plug-and-play module like BATS improve state-of-the-art OOD detection methods without retraining?
- RQ4Does rectifying features into their typical set lead to better-calibrated models and improved generalization across diverse OOD benchmarks?
- RQ5How does BATS compare to recent SOTA methods like KNN and ViM on challenging benchmarks such as ImageNet?
Key findings
- BATS achieves a 5.11% reduction in FPR95 on the ImageNet benchmark compared to the previous SOTA method, significantly improving OOD detection performance.
- The method improves AUROC by 1.43% on ImageNet, demonstrating superior separability between in-distribution and out-of-distribution examples.
- BATS reduces Expected Calibration Error (ECE) from 3.56% to 2.12% on ResNet-50, indicating better model calibration and confidence alignment.
- The approach improves test accuracy and robustness slightly, showing positive side effects beyond OOD detection.
- BATS outperforms recent methods like KNN and ViM across all OOD datasets on ImageNet, including challenging ones like SUN and Places.
- The method is effective across various OOD scores (e.g., energy, MSP, ODIN), demonstrating broad compatibility and consistent gains as a post-hoc module.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.