Out-of-Distribution Detection using Neural Activation Prior
Not on the map. Why?
Abstract (arXiv)
Out-of-distribution detection (OOD) is a crucial technique for deploying machine learning models in the real world to handle the unseen scenarios. In this paper, we first propose a simple yet effective Neural Activation Prior (NAP) for OOD detection. Our neural activation prior is based on a key observation that, for a channel before the global pooling layer of a fully trained neural network, the probability of a few neurons being activated with a large response by an in-distribution (ID) sample is significantly higher than that by an OOD sample. An intuitive explanation is that for a model fully trained on ID dataset, each channel would play a role in detecting a certain pattern in the ID dataset, and a few neurons can be activated with a large response when the pattern is detected in an input sample. Then, a new scoring function based on this prior is proposed to highlight the role of these strongly activated neurons in OOD detection. Our approach is plug-and-play and does not lead to any performance degradation on ID data classification and requires no extra training or statistics from training or external datasets. Notice that previous methods primarily rely on post-global-pooling features of the neural networks, while the within-channel distribution information we leverage would be discarded by the global pooling operator. Consequently, our method is orthogonal to existing approaches and can be effectively combined with them in various applications. Experimental results show that our method achieves the state-of-the-art performance on CIFAR benchmark and ImageNet dataset, which demonstrates the power of the proposed prior. Finally, we extend our method to Transformers and the experimental findings indicate that NAP can also significantly enhance the performance of OOD detection on Transformers, thereby demonstrating the broad applicability of this prior knowledge.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 45 of its 61 references that are in the map. First posted on arXiv 28 Feb 2024.
Builds on
45 of 61 references.
References · 45
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2013Describing Textures in the Wildcited by 2,110
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2015LSUN: Construction of a Large-scale Image Dataset using Deep Learning with Humans in the Loopcited by 1,350
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
33 more
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 796
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
- 2015Towards Open Set Deep Networkscited by 533
- 2021Sparsity in Deep Learning: Pruning and growth for efficient inference and training in neural networkscited by 521
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2018Do Deep Generative Models Know What They Don't Know?cited by 443
- 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
- 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
- 2017Training Confidence-calibrated Classifiers for Detecting Out-of-Distribution Samplescited by 389
- 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
- 2018Learning Confidence for Out-of-Distribution Detection in Neural Networkscited by 245
- 2021MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Spacecited by 233
- 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 220
- 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 212
- 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 206
- 2018Adversarially Learned One-Class Classifier for Novelty Detectioncited by 202
- 2017Computer Vision for Autonomous Vehicles: Problems, Datasets and State of the Artcited by 182
- 2021DICE: Leveraging Sparsification for Out-of-Distribution Detectioncited by 166
- 2015TurkerGaze: Crowdsourcing Saliency with Webcam based Eye Trackingcited by 165
- 2018Latent Space Autoregression for Novelty Detectioncited by 149
- 2020Can Autonomous Vehicles Identify, Recover From, and Adapt to Distribution Shifts?cited by 139
- 2018Generative Probabilistic Novelty Detection with Adversarial Autoencoderscited by 99
- 2023Scaling for Training Time and Post-hoc Out-of-distribution Detection Enhancementcited by 77
- 2019Can we trust deep learning models diagnosis? The impact of domain shift in chest radiograph classificationcited by 57
- 2020Feature Space Singularity for Out-of-Distribution Detectioncited by 49
- 2021Neural Mean Discrepancy for Efficient Out-of-Distribution Detectioncited by 42
- 2020A Boundary Based Out-of-Distribution Classifier for Generalized Zero-Shot Learningcited by 34
- 2023LINe: Out-of-Distribution Detection by Leveraging Important Neuronscited by 34
- 2022Block Selection Method for Using Feature Norm in Out-of-distribution Detectioncited by 30
- 2023Neuron Activation Coverage: Rethinking Out-of-distribution Detection and Generalizationcited by 28
- 2023Uncertainty-Aware Optimal Transport for Semantically Coherent Out-of-Distribution Detectioncited by 19
- 2022Detection of out-of-distribution samples using binary neuron activation patternscited by 15
Built on by
Citing papers per year: 2024: 1; 2025: 1.
2 papers.
- 2025SEQR: Secure and Efficient QR-based LoRA Routingcited by 1
- 2024Revisiting Energy-Based Model for Out-of-Distribution Detectioncited by 0
- 2025SEQR: Secure and Efficient QR-based LoRA Routing22 Sep 2025
- 2024Revisiting Energy-Based Model for Out-of-Distribution Detection4 Dec 2024