Skip to main content
QUICK REVIEW

[Paper Review] Understanding and Improving Feature Learning for Out-of-Distribution Generalization

Yongqiang Chen, Wei Huang|arXiv (Cornell University)|Apr 22, 2023
Domain Adaptation and Few-Shot LearningComputer Science3 citations
TL;DR

This paper proposes Feature Augmented Training (FeAT), an iterative method that enhances out-of-distribution (OOD) generalization by systematically learning richer, more diverse features beyond what standard ERM training captures. By alternately retaining already-learned features and augmenting new ones from distinct data subsets, FeAT improves OOD performance across multiple benchmarks, with empirical results showing consistent gains over ERM and existing OOD methods.

ABSTRACT

A common explanation for the failure of out-of-distribution (OOD) generalization is that the model trained with empirical risk minimization (ERM) learns spurious features instead of invariant features. However, several recent studies challenged this explanation and found that deep networks may have already learned sufficiently good features for OOD generalization. Despite the contradictions at first glance, we theoretically show that ERM essentially learns both spurious and invariant features, while ERM tends to learn spurious features faster if the spurious correlation is stronger. Moreover, when fed the ERM learned features to the OOD objectives, the invariant feature learning quality significantly affects the final OOD performance, as OOD objectives rarely learn new features. Therefore, ERM feature learning can be a bottleneck to OOD generalization. To alleviate the reliance, we propose Feature Augmented Training (FeAT), to enforce the model to learn richer features ready for OOD generalization. FeAT iteratively augments the model to learn new features while retaining the already learned features. In each round, the retention and augmentation operations are performed on different subsets of the training data that capture distinct features. Extensive experiments show that FeAT effectively learns richer features thus boosting the performance of various OOD objectives.

Motivation & Objective

  • To resolve the contradiction between studies claiming ERM fails to learn invariant features and those showing ERM features are already sufficient for OOD generalization.
  • To investigate why OOD objectives heavily depend on the quality of ERM-pretrained features, especially when invariant features are poorly learned.
  • To identify ERM feature learning as a bottleneck in OOD generalization due to premature convergence on spurious features.
  • To propose a method that actively enriches feature representations before OOD training to overcome ERM’s limitations.
  • To empirically validate that better feature learning leads to superior OOD generalization across vision and NLP tasks.

Proposed method

  • FeAT iteratively divides the training set into retention and augmentation subsets based on feature coverage per training round.
  • In each round, the model retains features learned from the retention set while being trained on the augmentation set to discover new features.
  • Retention and augmentation are applied in alternating fashion across rounds to preserve existing features while expanding feature diversity.
  • The method leverages the model’s current feature representation to guide subset selection, ensuring new features are distinct from previously learned ones.
  • FeAT does not modify the OOD objective; instead, it improves the input feature quality to which the OOD objective is applied.
  • The approach is applied in a self-supervised manner, with no additional architecture or loss beyond standard ERM and OOD objectives.
Understanding and Improving Feature Learning for Out-of-Distribution Generalization

Experimental results

Research questions

  • RQ1What types of features (spurious vs. invariant) does ERM actually learn, and how do their learning dynamics depend on correlation strength?
  • RQ2Why does OOD generalization performance strongly depend on the number of ERM pre-training epochs, despite ERM’s tendency to learn spurious features?
  • RQ3Can OOD objectives like IRMv1 learn new features beyond what ERM has already captured?
  • RQ4Is ERM feature learning a fundamental bottleneck for OOD generalization, and if so, how can it be mitigated?
  • RQ5Can iterative feature augmentation improve OOD performance by enriching the feature space before OOD training?

Key findings

  • ERM learns both spurious and invariant features, but learns spurious features faster when their correlation with labels is stronger.
  • OOD objectives like IRMv1 cannot learn new features; their performance is entirely dependent on the quality of ERM-learned features.
  • When ERM fails to learn useful invariant features due to weak correlation or optimization bias, OOD performance remains limited even with extensive OOD training.
  • FeAT improves OOD performance across all evaluated benchmarks, including ColoredMNIST, iWildCam, FMoW, Camelyon17, RxRx1, and CivilComments, by learning richer features through iterative augmentation.
  • GradCAM visualizations show that FeAT learns more meaningful and diverse features than ERM and Bonsai, with consistent improvements across data modalities and tasks.
  • On the iWildCam benchmark, FeAT achieves 113 accuracy with 2 rounds (equivalent to 300 ERM epochs), outperforming ERM with 450 epochs and other baselines.
Understanding and Improving Feature Learning for Out-of-Distribution Generalization

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.