RankFeat&RankWeight: Rank-1 Feature/Weight Removal for Out-of-distribution Detection
Not on the map. Why?
Abstract (arXiv)
The task of out-of-distribution (OOD) detection is crucial for deploying machine learning models in real-world settings. In this paper, we observe that the singular value distributions of the in-distribution (ID) and OOD features are quite different: the OOD feature matrix tends to have a larger dominant singular value than the ID feature, and the class predictions of OOD samples are largely determined by it. This observation motivates us to propose textttRankFeat, a simple yet effective post hoc approach for OOD detection by removing the rank-1 matrix composed of the largest singular value and the associated singular vectors from the high-level feature. textttRankFeat achieves state-of-the-art performance and reduces the average false positive rate (FPR95) by 17.90% compared with the previous best method. The success of textttRankFeat motivates us to investigate whether a similar phenomenon would exist in the parameter matrices of neural networks. We thus propose textttRankWeight which removes the rank-1 weight from the parameter matrices of a single deep layer. Our textttRankWeightis also post hoc and only requires computing the rank-1 matrix once. As a standalone approach, textttRankWeight has very competitive performance against other methods across various backbones. Moreover, textttRankWeight enjoys flexible compatibility with a wide range of OOD detection methods. The combination of textttRankWeight and textttRankFeat refreshes the new state-of-the-art performance, achieving the FPR95 as low as 16.13% on the ImageNet-1k benchmark. Extensive ablation studies and comprehensive theoretical analyses are presented to support the empirical results. Code is publicly available via urlhttps://github.com/KingJamesSong/RankFeat.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 77 of its 107 references that are in the map. First posted on arXiv 23 Nov 2023.
Builds on
77 of 107 references.
References · 77
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2013Describing Textures in the Wildcited by 2,125
- 2016Density estimation using Real NVPcited by 2,042
- 2016Identity Mappings in Deep Residual Networkscited by 1,965
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
38 more
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2019Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shiftcited by 1,287
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2016SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model sizecited by 1,060
- 2019AugMix: A Simple Data Processing Method to Improve Robustness and Uncertaintycited by 901
- 2016Conditional Image Generation with PixelCNN Decoderscited by 862
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 776
- 2019Big Transfer (BiT): General Visual Representation Learningcited by 769
- 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 739
- 2018Predictive Uncertainty Estimation via Prior Networkscited by 557
- 2015Towards Open Set Deep Networkscited by 538
- 2021RepVGG: Making VGG-style ConvNets Great Againcited by 522
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 453
- 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
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
- 2017Training Confidence-calibrated Classifiers for Detecting Out-of-Distribution Samplescited by 389
- 2021Adaptive Conformal Inference Under Distribution Shiftcited by 375
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 353
- 2019SelectiveNet: A Deep Neural Network with an Integrated Reject Optioncited by 350
- 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
- 2018Why ReLU networks yield high-confidence predictions far away from the training data and how to mitigate the problemcited by 323
- 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
- 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
- 2018Deep Anomaly Detection Using Geometric Transformationscited by 269
- 2022Mitigating Neural Network Overconfidence with Logit Normalizationcited by 252
- 2021MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Spacecited by 233
- 2019Learning to Discover Novel Visual Categories via Deep Transfer Clusteringcited by 225
- 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 221
- 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 212
- 2019Input complexity and out-of-distribution detection with likelihood-based generative modelscited by 186
- 2023OpenOOD v1.5: Enhanced Benchmark for Out-of-Distribution Detectioncited by 179
- 2021A Fine-Grained Analysis on Distribution Shiftcited by 171
- 2021DICE: Leveraging Sparsification for Out-of-Distribution Detectioncited by 166
50 most cited of 77 All 77 (JSON)
Built on by
Citing papers per year: 2025: 1.
1 paper.