On the Impact of Spurious Correlation for Out-of-Distribution Detection
Yifei Ming, Hang Yin, Yixuan Li
Abstract
Modern neural networks can assign high confidence to inputs drawn from outside the training distribution, posing threats to models in real-world deployments. While much research attention has been placed on designing new out-of-distribution (OOD) detection methods, the precise definition of OOD is often left in vagueness and falls short of the desired notion of OOD in reality. In this paper, we present a new formalization and model the data shifts by taking into account both the invariant and environmental (spurious) features. Under such formalization, we systematically investigate how spurious correlation in the training set impacts OOD detection. Our results suggest that the detection performance is severely worsened when the correlation between spurious features and labels is increased in the training set. We further show insights on detection methods that are more effective in reducing the impact of spurious correlation, and provide theoretical analysis on why reliance on environmental features leads to high OOD detection error. Our work aims to facilitate better understanding of OOD samples and their formalization, as well as the exploration of methods that enhance OOD detection. Code is available at https://github.com/deeplearning-wisc/Spurious_OOD.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
37 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Out-of-Distribution Generalization via Risk Extrapolation (REx) cites In Search of Lost Domain Generalization
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning cites Delving into Out-of-Distribution Detection with Vision-Language Representations
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning cites Energy-based Out-of-distribution Detection
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning cites Why Normalizing Flows Fail to Detect Out-of-Distribution Data
- Delving into Out-of-Distribution Detection with Vision-Language Representations cites Noise or Signal: The Role of Image Backgrounds in Object Recognition
- Delving into Out-of-Distribution Detection with Vision-Language Representations cites POEM: Out-of-Distribution Detection with Posterior Sampling
- Delving into Out-of-Distribution Detection with Vision-Language Representations cites Energy-based Out-of-distribution Detection
- Delving into Out-of-Distribution Detection with Vision-Language Representations cites Provable Guarantees for Understanding Out-of-Distribution Detection
- Delving into Out-of-Distribution Detection with Vision-Language Representations cites Why Normalizing Flows Fail to Detect Out-of-Distribution Data
- Delving into Out-of-Distribution Detection with Vision-Language Representations cites Is Out-of-Distribution Detection Learnable?
- POEM: Out-of-Distribution Detection with Posterior Sampling cites Energy-based Out-of-distribution Detection
- POEM: Out-of-Distribution Detection with Posterior Sampling cites Provable Guarantees for Understanding Out-of-Distribution Detection
- Provable Guarantees for Understanding Out-of-Distribution Detection cites Energy-based Out-of-distribution Detection
- Is Out-of-Distribution Detection Learnable? cites Energy-based Out-of-distribution Detection
- Is Out-of-Distribution Detection Learnable? cites Provable Guarantees for Understanding Out-of-Distribution Detection
Cited by top-tier papers37
- Delving into Out-of-Distribution Detection with Vision-Language RepresentationsYifei Ming, Ziyang Cai, Jiuxiang Gu, Yiyou Sun et al.NeurIPS 2022 · 308 citations
- Is Out-of-Distribution Detection Learnable?Zhen Fang, Yixuan Li, Jie Lu, Jiahua Dong et al.NeurIPS 2022 · 188 citations
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt LearningAtsuyuki Miyai, Qing Yu, Go Irie, Kiyoharu AizawaNeurIPS 2023 · 174 citations
- POEM: Out-of-Distribution Detection with Posterior SamplingYifei Ming, Ying Fan, Yixuan LiICML 2022 · 151 citations
- Provable Guarantees for Understanding Out-of-Distribution DetectionPeyman Morteza, Yixuan LiAAAI 2022 · 104 citations
Builds on11
- Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 citations
- In Search of Lost Domain GeneralizationIshaan Gulrajani, David Lopez-PazICLR 2021 · 1,416 citations
- Out-of-Distribution Generalization via Risk Extrapolation (REx)David Krueger, Ethan Caballero, Jörn-Henrik Jacobsen, Amy Zhang et al.ICML 2021 · 1,163 citations
- Noise or Signal: The Role of Image Backgrounds in Object RecognitionKai Yuanqing Xiao, Logan Engstrom, Andrew Ilyas, Aleksander MadryICLR 2021 · 451 citations
- Why Normalizing Flows Fail to Detect Out-of-Distribution DataPolina Kirichenko, Pavel Izmailov, Andrew Gordon WilsonNeurIPS 2020 · 370 citations
Related papers
- Neural Collapse Inspired Feature Alignment for Out-of-Distribution GeneralizationZhikang Chen, Min Zhang, Sen Cui, Haoxuan Li et al.NeurIPS 2024 · 13 citations
- Image-based Outlier Synthesis With Training DataSudarshan RegmiCVPR 2026
- Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution DetectionReihaneh Zohrabi, Hosein Hasani, Mahdieh Soleymani Baghshah, Anna Rohrbach et al.NeurIPS 2025 · 6 citations
- Severing Spurious Correlations with Data PruningVarun Mulchandani, Jung-Eun KimICLR 2025
- Breaking Correlation Shift via Conditional Invariant RegularizerMingyang Yi, Ruoyu Wang, Jiacheng Sun, Zhenguo Li et al.ICLR 2023
