Skip to main content
QUICK REVIEW

[Paper Review] On the Impact of Spurious Correlation for Out-of-distribution Detection

Yifei Ming, Hang Yin|arXiv (Cornell University)|Sep 12, 2021
Anomaly Detection Techniques and ApplicationsComputer Science6 citations
TL;DR

This paper introduces a formalization of out-of-distribution (OOD) detection that distinguishes between invariant (semantically relevant) and environmental (spurious) features, revealing that increasing spurious correlation in training data severely degrades OOD detection performance. It identifies feature-based methods as more effective for non-spurious OOD and theoretically proves that spurious OOD inputs can achieve arbitrarily high confidence, making them undetectable by models relying on environmental features.

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 a better understanding of OOD samples and their formalization, as well as the exploration of methods that enhance OOD detection.

Motivation & Objective

  • To address the lack of a precise definition of OOD data in real-world deployments, particularly regarding data shifts involving spurious correlations.
  • To formalize OOD detection by explicitly modeling both invariant and environmental (spurious) features in data distribution shifts.
  • To investigate how increasing spurious correlation in training data impacts detection performance for both spurious and non-spurious OOD inputs.
  • To identify detection methods that are more robust to spurious correlation and provide theoretical insights into why environmental feature reliance leads to high OOD error.
  • To advocate for evaluating OOD detection methods on spurious OOD examples beyond standard benchmarks to test algorithmic robustness.

Proposed method

  • Propose a new formalization of OOD detection that separates invariant features (related to semantic labels) from environmental features (spurious, context-dependent).
  • Define two types of OOD: spurious OOD (contains environmental features but no invariant features) and non-spurious OOD (contains neither).
  • Use the Waterbirds dataset and CelebA with gender bias as case studies to model spurious correlations in training data.
  • Conduct extensive experiments comparing detection performance across various OOD methods under increasing levels of spurious correlation.
  • Apply theoretical analysis to prove that models relying on environmental features can assign arbitrarily high confidence to spurious OOD inputs, making them indistinguishable from in-distribution data.
  • Evaluate feature-based OOD detection methods (e.g., activation-based, representation-based) and compare them with score-based and generative methods.

Experimental results

Research questions

  • RQ1How does increasing spurious correlation between environmental features and labels in the training set affect OOD detection performance?
  • RQ2To what extent do different OOD detection methods mitigate the negative impact of spurious correlation?
  • RQ3Why is detection of spurious OOD inputs particularly challenging, even when models are trained with inductive biases?
  • RQ4Can theoretical analysis explain the existence of OOD inputs with arbitrarily high confidence that evade detection?
  • RQ5How do feature-based methods compare to score-based or generative methods in detecting non-spurious and spurious OOD inputs?

Key findings

  • Spurious correlation in training data severely degrades OOD detection performance for both spurious and non-spurious OOD inputs, with detection error increasing as spurious correlation grows.
  • Feature-based OOD detection methods reduce FPR95 by up to 46.73% on non-spurious OOD data compared to other methods, indicating superior robustness.
  • Models relying on environmental (spurious) features can assign arbitrarily high confidence to spurious OOD inputs, making them undetectable under standard OOD evaluation protocols.
  • Theoretical analysis proves that spurious OOD inputs with arbitrarily high confidence exist, which cannot be distinguished from in-distribution data when models depend on non-invariant features.
  • Existing benchmarks often focus on non-spurious OOD, but spurious OOD poses a critical, underexplored challenge that undermines model reliability in real-world deployment.
  • The study reveals that current OOD detection evaluation schemes are insufficient, as they fail to test detection on semantically disjoint but contextually similar inputs (e.g., boat with water background).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.