Papers › Distributionally Robust Neural Networks for Group Shifts: On the Importance of...

Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalization

20 Nov 2019arXiv:1911.08731archive 2025-07-28

Shiori Sagawa, Pang Wei Koh, Tatsunori B. Hashimoto, Percy Liang

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1911.08731")

Code

Syntology Ran 9 of 10 code samples harvested from 4 repositories linked to this paper; 1 has no recorded run. Of those that ran: 2 ran · honoured contract; 4 ran · our draft was wrong; 3 ran with no contract checked.

By repository: community (archive-listed): 10 samples from 4 repositories, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kohpangwei/group_DRO officialmentioned in papermentioned on GitHubpytorch report
facebookresearch/DomainBed mentioned on GitHubpytorch report
haoxiang-wang/isr mentioned on GitHubpytorchMIT report
orparask/VS-Loss mentioned on GitHubpytorch report
ssagawa/overparam_spur_corr mentioned on GitHubpytorch report
yangarbiter/dp-dg mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 9 ran; 2 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
4ran · our draft was wrong
3ran
1unverified

Licence: 2 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ISRClassifier haoxiang-wang/isr/real_datasets/isr.py community (archive-listed) ran MIT (permissive) · ee24fe60820363aa · report
LossComputer ssagawa/overparam_spur_corr/loss.py community (archive-listed) ran no licence file found · pointer only · c42a893093b6fd69 · report
LossComputer orparask/VS-Loss/group_imbalance/loss.py community (archive-listed) ran no licence file found · pointer only · d1ceae741f009c45 · report
check_clf haoxiang-wang/isr/real_datasets/isr.py community (archive-listed) ran · our draft was wrong MIT (permissive) · e4aa557c0470b486 · report
check_labels haoxiang-wang/isr/real_datasets/isr.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · c66e837fdb8da4e1 · report
estimate_covs haoxiang-wang/isr/real_datasets/isr.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 953fdd3b2318ba41 · report
estimate_means haoxiang-wang/isr/real_datasets/isr.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · a26fa43681625cbf · report
feature_transform haoxiang-wang/isr/real_datasets/isr.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 30fd09a08819dcf5 · report
to_numpy haoxiang-wang/isr/real_datasets/isr.py community (archive-listed) ran · honoured contract MIT (permissive) · 78b0af73923a5d41 · report
GroupDRO facebookresearch/DomainBed/domainbed/algorithms.py community (archive-listed) unverified MIT (permissive) · e944e38b6f666c5d · report

Tasks

Domain GeneralizationNatural Language InferenceOut-of-Distribution GeneralizationStochastic Optimization

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Domain Generalization NICO Animal DRO (Resnet-18) Accuracy 77.61 #5 of 5 Archive leaderboard report
Domain Generalization NICO Vehicle DRO (Resnet-18) Accuracy 77.61 #3 of 5 Archive leaderboard report
Domain Generalization PACS GroupDRO (Resnet-50, DomainBed) Average Accuracy 84.4 #61 of 133 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Test

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections