[1911.08731] Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalization
Abstract:Overparameterized neural networks can be highly accurate on average on an i.i.d. test set yet consistently fail on atypical groups of the data (e.g., by learning spurious correlations that hold on average but not in such groups). Distributionally robust optimization (DRO) allows us to learn models that instead minimize the worst-case training loss over a set of pre-defined groups. However, we find that naively applying group DRO to overparameterized neural networks fails: these models can perfectly fit the training data, and any model with vanishing average training loss also already has vanishing worst-case training loss. Instead, the poor worst-case performance arises from poor generalization on some groups. By coupling group DRO models with increased regularization---a stronger-than-typical L2 penalty or early stopping---we achieve substantially higher worst-group accuracies, with 10-40 percentage point improvements on a natural language inference task and two image tasks, while maintaining high average accuracies. Our results suggest that regularization is important for worst-group generalization in the overparameterized regime, even if it is not needed for average generalization. Finally, we introduce a stochastic optimization algorithm, with convergence guarantees, to efficiently train group DRO models.
Published as a conference paper at ICLR 2020 D ISTRIBUTIONALLY ROBUST N EURAL N ETWORKS FOR G ROUP S HIFTS : O N THE I MPORTANCE OF R EGULARIZATION FOR W ORST-C ASE G ENERALIZATION Shiori Sagawa∗ Pang Wei Koh∗ Stanford University Stanford University…
saved by
related reading
- [1909.02060] Distributionally Robust Language Modelingarxiv.org
- [2403.04807] Mathematics of Neural Networks (Lecture Notes Graduate Course)arxiv.org
- Bayesian Neural Networkscs.toronto.edu
- [2605.01172] A Theory of Generalization in Deep Learningarxiv.org
- A Recipe for Training Neural Networkskarpathy.github.io
- Understanding deep learning requires rethinking generalizationarxiv.org
- arxiv.org/pdf/1805.08522arxiv.org
- Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetsmathai-iclr.github.io
- Ambiguous out-of-distribution generalization on an algorithmic task — LessWronglesswrong.com
- A Recipe for Training Neural Networkskarpathy.github.io
- [2503.02113] Deep Learning is Not So Mysterious or Differentarxiv.org
- [1909.13231] Test-Time Training with Self-Supervision for Generalization under Distribution Shiftsar5iv.labs.arxiv.org