Understanding and Improving Feature Learning for Out-of-Distribution Generalization

Yongqiang Chen, Wei Huang, Kaiwen Zhou, Yatao Bian, Bo Han +1 more
4/22/2023
cs.LGstat.ML

No official code found. Best implementation: LFhase/FeAT (29 stars, last commit 2025-05-27).

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.

View on arXivView PDF

Code Implementations(1)

LFhase/FeATCommunity74%

[NeurIPS 2023] Understanding and Improving Feature Learning for Out-of-Distribution Generalization

291Shell, PythonOct 30, 20231 years ago
domain-generalizationfeature-learninginvariant-learningout-of-distribution-generalizationspurious-correlations

Similar Papers

Cite this paper

@article{chen2023understanding,
  title  = {Understanding and Improving Feature Learning for Out-of-Distribution Generalization},
  author = {Yongqiang Chen and Wei Huang and Kaiwen Zhou and Yatao Bian and Bo Han and James Cheng},
  year   = {2023},
  eprint = {2304.11327},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.11327v2},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.11327.svg)](https://codeofpaper.com/paper/2304.11327)

Discussion