Low-Dimensional Gradient Helps Out-of-Distribution Detection
Not on the map. Why?
Abstract (arXiv)
Detecting out-of-distribution (OOD) samples is essential for ensuring the reliability of deep neural networks (DNNs) in real-world scenarios. While previous research has predominantly investigated the disparity between in-distribution (ID) and OOD data through forward information analysis, the discrepancy in parameter gradients during the backward process of DNNs has received insufficient attention. Existing studies on gradient disparities mainly focus on the utilization of gradient norms, neglecting the wealth of information embedded in gradient directions. To bridge this gap, in this paper, we conduct a comprehensive investigation into leveraging the entirety of gradient information for OOD detection. The primary challenge arises from the high dimensionality of gradients due to the large number of network parameters. To solve this problem, we propose performing linear dimension reduction on the gradient using a designated subspace that comprises principal components. This innovative technique enables us to obtain a low-dimensional representation of the gradient with minimal information loss. Subsequently, by integrating the reduced gradient with various existing detection score functions, our approach demonstrates superior performance across a wide range of detection tasks. For instance, on the ImageNet benchmark with ResNet50 model, our method achieves an average reduction of 11.15% in the false positive rate at 95% recall (FPR95) compared to the current state-of-the-art approach. The code would be released.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 48 of its 77 references that are in the map. First posted on arXiv 26 Oct 2023.
Builds on
48 of 77 references.
References · 48
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2016Densely Connected Convolutional Networkscited by 6,720
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
- 2016Wide Residual Networkscited by 3,070
- 2020Supervised Contrastive Learningcited by 2,829
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2013Describing Textures in the Wildcited by 2,125
- 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,545
36 more
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2015LSUN: Construction of a Large-scale Image Dataset using Deep Learning with Humans in the Loopcited by 1,355
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2018Deep Anomaly Detection with Outlier Exposurecited by 942
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2019Your Classifier is Secretly an Energy Based Model and You Should Treat it Like Onecited by 405
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
- 2017Training Confidence-calibrated Classifiers for Detecting Out-of-Distribution Samplescited by 389
- 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
- 2022Mitigating Neural Network Overconfidence with Logit Normalizationcited by 252
- 2018Gradient Descent Happens in a Tiny Subspacecited by 217
- 2020Spectral Bias and Task-Model Alignment Explain Generalization in Kernel Regression and Infinitely Wide Neural Networkscited by 166
- 2015TurkerGaze: Crowdsourcing Saliency with Webcam based Eye Trackingcited by 165
- 2022How to Exploit Hyperspherical Embeddings for Out-of-Distribution Detection?cited by 128
- 2022POEM: Out-of-Distribution Detection with Posterior Samplingcited by 108
- 2020Traces of Class/Cross-Class Structure Pervade Deep Learning Spectracited by 94
- 2022Training OOD Detectors in their Natural Habitatscited by 86
- 2021Input Similarity from the Neural Network Perspectivecited by 79
- 2022Unknown-Aware Object Detection: Learning What You Don't Know from Videos in the Wildcited by 70
- 2022Boosting Out-of-distribution Detection with Typical Featurescited by 48
- 2019Stiffness: A New Perspective on Generalization in Neural Networkscited by 46
- 2019Emergent properties of the local geometry of neural loss landscapescited by 46
- 2019The Local Elasticity of Neural Networkscited by 37
- 2020Gradients as Features for Deep Representation Learningcited by 30
- 2020Out-Of-Distribution Detection With Subspace Techniques And Probabilistic Modeling Of Featurescited by 20
- 2022How Useful are Gradients for OOD Detection Really?cited by 20
- 2020Outlier Detection through Null Space Analysis of Neural Networkscited by 19
- 2020GraN: An Efficient Gradient-Norm Based Detector for Adversarial and Misclassified Examplescited by 18
- 2022Gradient-Based Adversarial and Out-of-Distribution Detectioncited by 14
- 2021Gradient-based Novelty Detection Boosted by Self-supervised Binary Classificationcited by 10
- 2023Probing the Purview of Neural Networks via Gradient Analysiscited by 9
- 2022Learning Representation from Neural Fisher Kernel with Low-rank Approximationcited by 5
- 2022On the Interpretability of Regularisation for Neural Networks Through Model Gradient Similaritycited by 4
Built on by
Citing papers per year: 2024: 2; 2025: 4.
6 papers.
- 2024Kernel PCA for Out-of-Distribution Detectioncited by 24
- 2024Pursuing Feature Separation based on Neural Collapse for Out-of-Distribution Detectioncited by 12
- 2025Controlling Neural Collapse Enhances Out-of-Distribution Detection and Transfer Learningcited by 11
- 2025GradPCA: Leveraging NTK Alignment for Reliable Out-of-Distribution Detectioncited by 2
- 2025Kernel PCA for Out-of-Distribution Detection: Non-Linear Kernel Selection and Approximationcited by 1
- 2025General OOD Detection via Model-aware and Subspace-aware Variable Prioritycited by 0
- 2025General OOD Detection via Model-aware and Subspace-aware Variable Priority15 Dec 2025
- 2025GradPCA: Leveraging NTK Alignment for Reliable Out-of-Distribution Detection21 May 2025
- 2025Kernel PCA for Out-of-Distribution Detection: Non-Linear Kernel Selection and Approximation21 May 2025
- 2025Controlling Neural Collapse Enhances Out-of-Distribution Detection and Transfer Learning15 Feb 2025
- 2024Pursuing Feature Separation based on Neural Collapse for Out-of-Distribution Detection28 May 2024
- 2024Kernel PCA for Out-of-Distribution Detection5 Feb 2024