Skip to main content
QUICK 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 Science被引用 3
一句话总结

本文提出了特征增强训练(FeAT),一种迭代方法,通过系统性地学习超越标准ERM训练所捕捉范围的更丰富、更多样化的特征,从而提升分布外(OOD)泛化能力。通过在不同数据子集间交替保留已学习的特征并增强新特征,FeAT在多个基准测试中均显著提升了OOD性能,实证结果表明其在ERM及现有OOD方法之上实现了持续性提升。

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.

研究动机与目标

  • 解决关于ERM无法学习不变特征的研究与表明ERM特征已足以实现OOD泛化的研究之间的矛盾。
  • 探究为何OOD目标在很大程度上依赖于ERM预训练特征的质量,尤其是在不变特征学习不佳时。
  • 识别出ERM特征学习是OOD泛化中的瓶颈,原因在于其过早收敛于虚假特征。
  • 提出一种在OOD训练前主动丰富特征表示的方法,以克服ERM的局限性。
  • 通过实证验证,更好的特征学习可显著提升视觉与自然语言处理任务中的OOD泛化性能。

提出的方法

  • FeAT在每轮训练中根据特征覆盖度将训练集划分为保留子集与增强子集。
  • 在每轮中,模型保留从保留子集中学到的特征,同时在增强子集上继续训练以发现新特征。
  • 通过在各轮中交替应用保留与增强策略,既保留已有特征,又扩展特征多样性。
  • 该方法利用模型当前的特征表示来指导子集选择,确保新特征与先前学习的特征具有差异性。
  • FeAT不修改OOD目标;而是通过提升输入特征质量来增强OOD目标的应用效果。
  • 该方法以自监督方式应用,除标准ERM与OOD目标外,无需额外架构或损失函数。
Understanding and Improving Feature Learning for Out-of-Distribution Generalization

实验结果

研究问题

  • RQ1ERM实际学习的是哪些类型的特征(虚假特征 vs. 不变特征)?其学习动态如何受相关性强弱的影响?
  • RQ2尽管ERM倾向于学习虚假特征,为何OOD泛化性能仍强烈依赖于ERM预训练的轮数?
  • RQ3如IRMv1等OOD目标能否学习到ERM已捕捉之外的新特征?
  • RQ4ERM特征学习是否构成OOD泛化的根本瓶颈?若是,如何缓解?
  • RQ5通过在OOD训练前迭代增强特征,能否通过丰富特征空间来提升OOD性能?

主要发现

  • ERM同时学习虚假特征与不变特征,但当虚假特征与标签的相关性较强时,其学习速度更快。
  • 如IRMv1等OOD目标无法学习新特征;其性能完全依赖于ERM所学习特征的质量。
  • 当ERM因相关性弱或优化偏差而未能学习到有用的不变特征时,即使进行大量OOD训练,OOD性能仍受限。
  • FeAT通过迭代增强学习更丰富的特征,在所有评估基准上均提升了OOD性能,包括ColoredMNIST、iWildCam、FMoW、Camelyon17、RxRx1与CivilComments。
  • GradCAM可视化结果表明,与ERM和Bonsai相比,FeAT学习到的特征更具语义意义且多样性更高,且在不同数据模态与任务中均表现出一致改进。
  • 在iWildCam基准上,FeAT仅用2轮训练(等效于300轮ERM训练)即达到113的准确率,优于450轮ERM训练及其它基线方法。
Understanding and Improving Feature Learning for Out-of-Distribution Generalization

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。