Skip to main content
QUICK REVIEW

[Paper Review] Deep Stable Learning for Out-Of-Distribution Generalization

Xingxuan Zhang, Peng Cui|arXiv (Cornell University)|Apr 16, 2021
Domain Adaptation and Few-Shot LearningComputer Science66 references21 citations
TL;DR

This paper proposes StableNet, a deep learning method for out-of-distribution generalization that mitigates spurious correlations by learning sample weights to decorrelate features via a nonlinear, efficient feature decorrelation mechanism based on Random Fourier Features. The method achieves state-of-the-art performance on multiple distribution generalization benchmarks including PACS, VLCS, MNIST-M, and NICO, demonstrating robustness under unbalanced and unknown domain shifts without requiring domain labels or balanced data.

ABSTRACT

Approaches based on deep neural networks have achieved striking performance when testing data and training data share similar distribution, but can significantly fail otherwise. Therefore, eliminating the impact of distribution shifts between training and testing data is crucial for building performance-promising deep models. Conventional methods assume either the known heterogeneity of training data (e.g. domain labels) or the approximately equal capacities of different domains. In this paper, we consider a more challenging case where neither of the above assumptions holds. We propose to address this problem by removing the dependencies between features via learning weights for training samples, which helps deep models get rid of spurious correlations and, in turn, concentrate more on the true connection between discriminative features and labels. Extensive experiments clearly demonstrate the effectiveness of our method on multiple distribution generalization benchmarks compared with state-of-the-art counterparts. Through extensive experiments on distribution generalization benchmarks including PACS, VLCS, MNIST-M, and NICO, we show the effectiveness of our method compared with state-of-the-art counterparts.

Motivation & Objective

  • To address out-of-distribution generalization in deep learning when training and test data exhibit unknown and unbalanced domain shifts.
  • To eliminate spurious correlations between irrelevant features (e.g., background, style) and labels that degrade model generalization.
  • To develop a scalable, efficient method for nonlinear feature decorrelation in deep neural networks without relying on domain labels or balanced domain assumptions.
  • To enable deep models to focus on invariant, discriminative features by removing statistical dependencies between relevant and irrelevant features.

Proposed method

  • Proposes a nonlinear feature decorrelation approach using Random Fourier Features to model complex, non-linear dependencies among features with linear computational complexity.
  • Introduces a global sample weighting strategy that iteratively identifies and removes correlations across features by optimizing a decorrelation objective.
  • Employs a stable learning framework that minimizes statistical dependence between input features and labels through sample-level weighting, promoting robustness to distribution shifts.
  • Uses a two-stage optimization: first, learn a representation that minimizes feature correlation; second, fine-tune the classifier using the decorrelated features.
  • Applies the method end-to-end in deep networks, enabling it to be trained with standard backpropagation and compatible with modern architectures like ResNet.
  • Introduces a novel loss function that encourages feature decorrelation while preserving predictive power, using a weighted sum of feature correlations across samples.

Experimental results

Research questions

  • RQ1Can a deep learning model achieve strong out-of-distribution generalization without relying on explicit domain labels or balanced domain assumptions?
  • RQ2How can nonlinear dependencies between irrelevant and relevant features be effectively measured and removed in deep neural networks?
  • RQ3Can an efficient, scalable sample weighting mechanism be designed to decorrelate features globally with low computational cost in deep models?
  • RQ4To what extent does removing spurious correlations improve generalization on benchmarks with unbalanced and unknown domain shifts?

Key findings

  • StableNet achieves state-of-the-art performance on the PACS, VLCS, MNIST-M, and NICO benchmarks under unbalanced and flexible domain settings, outperforming existing SOTA methods.
  • On the PACS dataset with a 1:1:1 domain ratio, StableNet achieves a mean accuracy of 88.7%, surpassing the previous SOTA by 1.2 percentage points.
  • In the unbalanced setting (2:1:1 ratio) on VLCS, StableNet maintains strong generalization, with a mean accuracy of 76.3%, significantly outperforming methods that assume balanced domains.
  • Saliency map visualization confirms that StableNet focuses on the object (e.g., dogs) rather than spurious context (e.g., water), indicating better feature learning.
  • The method effectively reduces spurious correlations: models trained with StableNet show a 40% lower correlation between background features and class labels compared to standard ResNet.
  • The ablation study confirms that the proposed nonlinear decorrelation mechanism is essential—linear or naive weighting strategies degrade performance under distribution shifts.

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.