Gradient Short-Circuit: Efficient Out-of-Distribution Detection via Feature Intervention
Not on the map. Why?
Abstract (arXiv)
Out-of-Distribution (OOD) detection is critical for safely deploying deep models in open-world environments, where inputs may lie outside the training distribution. During inference on a model trained exclusively with In-Distribution (ID) data, we observe a salient gradient phenomenon: around an ID sample, the local gradient directions for "enhancing" that sample's predicted class remain relatively consistent, whereas OOD samples--unseen in training--exhibit disorganized or conflicting gradient directions in the same neighborhood. Motivated by this observation, we propose an inference-stage technique to short-circuit those feature coordinates that spurious gradients exploit to inflate OOD confidence, while leaving ID classification largely intact. To circumvent the expense of recomputing the logits after this gradient short-circuit, we further introduce a local first-order approximation that accurately captures the post-modification outputs without a second forward pass. Experiments on standard OOD benchmarks show our approach yields substantial improvements. Moreover, the method is lightweight and requires minimal changes to the standard inference pipeline, offering a practical path toward robust OOD detection in real-world applications.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 35 of its 44 references that are in the map. First posted on arXiv 2 Jul 2025.
Builds on
35 of 44 references.
References · 35
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2016Densely Connected Convolutional Networkscited by 6,720
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2013Describing Textures in the Wildcited by 2,125
- 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
23 more
- 2022Building Normalizing Flows with Stochastic Interpolantscited by 995
- 2019Learning Imbalanced Datasets with Label-Distribution-Aware Margin Losscited by 989
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2019Importance Estimation for Neural Network Pruningcited by 541
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
- 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
- 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
- 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 212
- 2021DICE: Leveraging Sparsification for Out-of-Distribution Detectioncited by 166
- 2015TurkerGaze: Crowdsourcing Saliency with Webcam based Eye Trackingcited by 165
- 2021Adversarial Reciprocal Points Learning for Open Set Recognitioncited by 153
- 2020ATOM: Robustifying Out-of-distribution Detection Using Outlier Miningcited by 116
- 2022Is Out-of-Distribution Detection Learnable?cited by 109
- 2021Provable Guarantees for Understanding Out-of-distribution Detectioncited by 78
- 2024How Does Unlabeled Data Provably Help Out-of-Distribution Detection?cited by 36
- 2023LINe: Out-of-Distribution Detection by Leveraging Important Neuronscited by 34
- 2020Gradients as Features for Deep Representation Learningcited by 30
- 2024ConjNorm: Tractable Density Estimation for Out-of-Distribution Detectioncited by 22
- 2023On the Effectiveness of Out-of-Distribution Data in Self-Supervised Long-Tail Learningcited by 20
- 2024A noisy elephant in the room: Is your out-of-distribution detector robust to label noise?cited by 13
- 2025Scanning Trojaned Models Using Out-of-Distribution Samplescited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.