TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/RankFeat: Rank-1 Feature Removal for Out-of-distribution D...

RankFeat: Rank-1 Feature Removal for Out-of-distribution Detection

Yue Song, Nicu Sebe, Wei Wang

2022-09-18Out-of-Distribution Detection
PaperPDFCode(official)

Abstract

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 \texttt{RankFeat}, a simple yet effective \texttt{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 (\emph{i.e.,} $\mathbf{X}{-} \mathbf{s}_{1}\mathbf{u}_{1}\mathbf{v}_{1}^{T}$). \texttt{RankFeat} achieves the \emph{state-of-the-art} performance and reduces the average false positive rate (FPR95) by 17.90\% compared with the previous best method. Extensive ablation studies and comprehensive theoretical analyses are presented to support the empirical results.

Results

TaskDatasetMetricValueModel
Out-of-Distribution DetectionImageNet-1k vs iNaturalistAUROC91.91RankFeat (ResNetv2-101)
Out-of-Distribution DetectionImageNet-1k vs iNaturalistFPR9541.31RankFeat (ResNetv2-101)
Out-of-Distribution DetectionImageNet-1k vs TexturesAUROC91.7RankFeat (ResNetv2-101)
Out-of-Distribution DetectionImageNet-1k vs TexturesFPR9537.29RankFeat (ResNetv2-101)
Out-of-Distribution DetectionImageNet-1k vs PlacesAUROC90.93RankFeat (ResNetv2-101)
Out-of-Distribution DetectionImageNet-1k vs PlacesFPR9539.34RankFeat (ResNetv2-101)
Out-of-Distribution DetectionImageNet-1k vs SUNAUROC94.07RankFeat (ResNetv2-101)
Out-of-Distribution DetectionImageNet-1k vs SUNFPR9529.27RankFeat (ResNetv2-101)
Out-of-Distribution DetectionImageNet-1k vs Curated OODs (avg.)AUROC92.15RankFeat (ResNetv2-101)
Out-of-Distribution DetectionImageNet-1k vs Curated OODs (avg.)FPR9536.8RankFeat (ResNetv2-101)

Related Papers

Safe Domain Randomization via Uncertainty-Aware Out-of-Distribution Detection and Policy Adaptation2025-07-08FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection2025-07-06Out-of-distribution detection in 3D applications: a review2025-07-01Generative Adversarial Evasion and Out-of-Distribution Detection for UAV Cyber-Attacks2025-06-26Enclosing Prototypical Variational Autoencoder for Explainable Out-of-Distribution Detection2025-06-17A Variational Information Theoretic Approach to Out-of-Distribution Detection2025-06-17DIsoN: Decentralized Isolation Networks for Out-of-Distribution Detection in Medical Imaging2025-06-10EviNet: Evidential Reasoning Network for Resilient Graph Learning in the Open and Noisy Environments2025-06-08