mlsanityData to 14 Oct 2026

Low-Dimensional Gradient Helps Out-of-Distribution Detection

arXiv 2310.17163 ↗First posted 26 Oct 2023cs.CVcited by 6

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  5. 2016Densely Connected Convolutional Networkscited by 6,720
  6. 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
  7. 2016Wide Residual Networkscited by 3,070
  8. 2020Supervised Contrastive Learningcited by 2,829
  9. 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
  10. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  11. 2013Describing Textures in the Wildcited by 2,125
  12. 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,545
36 more
  1. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  2. 2015LSUN: Construction of a Large-scale Image Dataset using Deep Learning with Humans in the Loopcited by 1,355
  3. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
  4. 2020Energy-based Out-of-distribution Detectioncited by 1,299
  5. 2018Deep Anomaly Detection with Outlier Exposurecited by 942
  6. 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
  7. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
  8. 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
  9. 2019Your Classifier is Secretly an Energy Based Model and You Should Treat it Like Onecited by 405
  10. 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
  11. 2017Training Confidence-calibrated Classifiers for Detecting Out-of-Distribution Samplescited by 389
  12. 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
  13. 2022Mitigating Neural Network Overconfidence with Logit Normalizationcited by 252
  14. 2018Gradient Descent Happens in a Tiny Subspacecited by 217
  15. 2020Spectral Bias and Task-Model Alignment Explain Generalization in Kernel Regression and Infinitely Wide Neural Networkscited by 166
  16. 2015TurkerGaze: Crowdsourcing Saliency with Webcam based Eye Trackingcited by 165
  17. 2022How to Exploit Hyperspherical Embeddings for Out-of-Distribution Detection?cited by 128
  18. 2022POEM: Out-of-Distribution Detection with Posterior Samplingcited by 108
  19. 2020Traces of Class/Cross-Class Structure Pervade Deep Learning Spectracited by 94
  20. 2022Training OOD Detectors in their Natural Habitatscited by 86
  21. 2021Input Similarity from the Neural Network Perspectivecited by 79
  22. 2022Unknown-Aware Object Detection: Learning What You Don't Know from Videos in the Wildcited by 70
  23. 2022Boosting Out-of-distribution Detection with Typical Featurescited by 48
  24. 2019Stiffness: A New Perspective on Generalization in Neural Networkscited by 46
  25. 2019Emergent properties of the local geometry of neural loss landscapescited by 46
  26. 2019The Local Elasticity of Neural Networkscited by 37
  27. 2020Gradients as Features for Deep Representation Learningcited by 30
  28. 2020Out-Of-Distribution Detection With Subspace Techniques And Probabilistic Modeling Of Featurescited by 20
  29. 2022How Useful are Gradients for OOD Detection Really?cited by 20
  30. 2020Outlier Detection through Null Space Analysis of Neural Networkscited by 19
  31. 2020GraN: An Efficient Gradient-Norm Based Detector for Adversarial and Misclassified Examplescited by 18
  32. 2022Gradient-Based Adversarial and Out-of-Distribution Detectioncited by 14
  33. 2021Gradient-based Novelty Detection Boosted by Self-supervised Binary Classificationcited by 10
  34. 2023Probing the Purview of Neural Networks via Gradient Analysiscited by 9
  35. 2022Learning Representation from Neural Fisher Kernel with Low-rank Approximationcited by 5
  36. 2022On the Interpretability of Regularisation for Neural Networks Through Model Gradient Similaritycited by 4

Built on by

Cited by year

Citing papers per year: 2024: 2; 2025: 4.

6 papers.