Skip to main content
QUICK REVIEW

[Paper Review] Out-of-distribution Generalization in the Presence of Nuisance-Induced Spurious Correlations

Aahlad Puli, Lily H. Zhang|arXiv (Cornell University)|Jun 29, 2021
COVID-19 diagnosis using AIMedicine5 citations
TL;DR

This paper proposes Nuisance-Randomized Distillation (NuRD), a method to improve out-of-distribution generalization by learning representations invariant to nuisance-induced spurious correlations. NuRD achieves this by first randomizing the nuisance-label dependence to create a nuisance-randomized distribution, then distilling a representation that maximizes label information under this distribution, ensuring robust performance across varying nuisance-label relationships, with strong empirical gains in X-ray pneumonia classification and waterbird recognition tasks.

ABSTRACT

In many prediction problems, spurious correlations are induced by a changing relationship between the label and a nuisance variable that is also correlated with the covariates. For example, in classifying animals in natural images, the background, which is a nuisance, can predict the type of animal. This nuisance-label relationship does not always hold, and the performance of a model trained under one such relationship may be poor on data with a different nuisance-label relationship. To build predictive models that perform well regardless of the nuisance-label relationship, we develop Nuisance-Randomized Distillation (NURD). We introduce the nuisance-randomized distribution, a distribution where the nuisance and the label are independent. Under this distribution, we define the set of representations such that conditioning on any member, the nuisance and the label remain independent. We prove that the representations in this set always perform better than chance, while representations outside of this set may not. NURD finds a representation from this set that is most informative of the label under the nuisance-randomized distribution, and we prove that this representation achieves the highest performance regardless of the nuisance-label relationship. We evaluate NURD on several tasks including chest X-ray classification where, using non-lung patches as the nuisance, NURD produces models that predict pneumonia under strong spurious correlations.

Motivation & Objective

  • To address poor out-of-distribution generalization caused by nuisance-induced spurious correlations, where the relationship between nuisance variables and labels shifts across distributions.
  • To develop a method that ensures predictive models maintain high performance regardless of how the nuisance and label are correlated in the test distribution.
  • To formalize a distribution—nuisance-randomized—where nuisance and label are independent, enabling the identification of representations that are robust to changing nuisance-label dependencies.
  • To prove that representations within the uncorrelating set (where label and nuisance are conditionally independent) always perform at least as well as marginal prediction, and to identify the optimal such representation.
  • To empirically validate NuRD on image classification tasks with strong spurious correlations, including chest X-ray pneumonia and waterbird vs. landbird classification.

Proposed method

  • Introduce the nuisance-randomized distribution, where the nuisance variable is made statistically independent of the label, to decouple spurious dependencies.
  • Define the uncorrelating set as the set of representations for which, under the nuisance-randomized distribution, the label and nuisance remain conditionally independent.
  • Propose NuRD as a two-stage method: first, nuisance randomization via generative models or reweighting to create data where nuisance and label are independent; second, distillation to find the representation in the uncorrelating set that maximizes mutual information with the label.
  • Use a regularized training objective that penalizes joint dependence between the representation, nuisance, and label, with a hyperparameter λ to balance information gain and independence enforcement.
  • Apply reweighting-based nuisance randomization by estimating the inverse probability of nuisance values to reweight training samples, approximating the nuisance-randomized distribution.
  • Train a student model to predict the label using only the distilled representation, ensuring it generalizes across different nuisance-label relationships in the family of distributions.

Experimental results

Research questions

  • RQ1Can we construct a representation that generalizes well across all distributions in a nuisance-varying family, even when the nuisance-label relationship changes?
  • RQ2Does learning a representation under a nuisance-randomized distribution guarantee better out-of-distribution performance than standard empirical risk minimization?
  • RQ3Can we identify a representation that is both uncorrelating (conditionally independent of nuisance given the representation) and maximally informative of the label under the nuisance-randomized distribution?
  • RQ4How does NuRD compare to standard ERM in settings with strong nuisance-induced spurious correlations, such as in medical imaging or animal classification?
  • RQ5What hyperparameter settings (e.g., λ) ensure stable optimization and robust performance in NuRD?

Key findings

  • On the waterbird classification task, NuRD achieved 81% test accuracy using a 56-pixel border as the nuisance, significantly outperforming ERM’s 66% accuracy.
  • For pneumonia classification on chest X-rays, NuRD produced models that maintained high performance under strong spurious correlations induced by hospital-specific imaging protocols.
  • When tested on distributions with increasing divergence from training (ρ = 0.5, 0.7, 0.9), NuRD maintained stable performance, while ERM’s accuracy dropped sharply as the nuisance-label relationship changed.
  • With λ = 5 (higher than the default λ = 1), NuRD achieved 76% average test accuracy on waterbirds and 61% on class-conditional Gaussians, though some runs failed due to optimization instability, indicating sensitivity to λ tuning.
  • In a setting with no nuisance-induced spurious correlation (constant nuisance), NuRD and ERM performed nearly identically (88% vs. 89% accuracy), validating that NuRD does not degrade performance when no spurious correlation exists.
  • The distillation loss and validation performance were bounded away from marginal prediction only when λ was chosen such that optimization remained stable, suggesting a trade-off between regularization strength and model performance.

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.