Papers › When More is Less: Incorporating Additional Datasets Can Hurt Performance By...

When More is Less: Incorporating Additional Datasets Can Hurt Performance By Introducing Spurious Correlations

8 Aug 2023arXiv:2308.04431archive 2025-07-28

Rhys Compton, Lily Zhang, Aahlad Puli, Rajesh Ranganath

In machine learning, incorporating more data is often seen as a reliable strategy for improving model performance; this work challenges that notion by demonstrating that the addition of external datasets in many cases can hurt the resulting model's performance. In a large-scale empirical study across combinations of four different open-source chest x-ray datasets and 9 different labels, we demonstrate that in 43% of settings, a model trained on data from two hospitals has poorer worst group accuracy over both hospitals than a model trained on just a single hospital's data. This surprising result occurs even though the added hospital makes the training distribution more similar to the test distribution. We explain that this phenomenon arises from the spurious correlation that emerges between the disease and hospital, due to hospital-specific image artifacts. We highlight the trade-off one encounters when training on multiple datasets, between the obvious benefit of additional data and insidious cost of the introduced spurious correlation. In some cases, balancing the dataset can remove the spurious correlation and improve performance, but it is not always an effective strategy. We contextualize our results within the literature on spurious correlations to help explain these outcomes. Our experiments underscore the importance of exercising caution when selecting training data for machine learning models, especially in settings where there is a risk of spurious correlations such as with medical imaging. The risks outlined highlight the need for careful data selection and model evaluation in future research and practice.

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="2308.04431")

Code

Syntology Ran 10 of 12 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 10 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

basedrhys/ood-generalization officialmentioned in papermentioned on GitHubpytorchNOASSERTION 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

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

10ran
2unverified

Licence: 12 of the 12 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 basedrhys/ood-generalization. “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.

block_until_running basedrhys/ood-generalization/clinicaldg/command_launchers.py official repository ran licence not identified · pointer only · 0946df67b41ca7e6 · report
cat basedrhys/ood-generalization/clinicaldg/algorithms.py official repository ran fingerprinted licence not identified · pointer only · e91f7d025aac4e1d · report
compute_opt_thresh basedrhys/ood-generalization/clinicaldg/datasets.py official repository ran licence not identified · pointer only · 81186e8df1f9769c · report
cross_entropy basedrhys/ood-generalization/clinicaldg/algorithms.py official repository ran licence not identified · pointer only · b6530052a755f0c1 · report
get_num_jobs basedrhys/ood-generalization/clinicaldg/command_launchers.py official repository ran fingerprinted licence not identified · pointer only · 501459823473afca · report
get_wandb_name basedrhys/ood-generalization/clinicaldg/utils.py official repository ran licence not identified · pointer only · a5ac56dac9b4dd4c · report
make_weights_for_balanced_classes basedrhys/ood-generalization/clinicaldg/lib/misc.py official repository ran no licence file found · pointer only · 5f576ed342c48a0a · report
split_dataset basedrhys/ood-generalization/clinicaldg/lib/misc.py official repository ran no licence file found · pointer only · 18e820e42046bc45 · report
torch_bernoulli basedrhys/ood-generalization/clinicaldg/datasets.py official repository ran licence not identified · pointer only · 6957fee49762783e · report
torch_xor basedrhys/ood-generalization/clinicaldg/datasets.py official repository ran fingerprinted licence not identified · pointer only · 8eeb5c1550b93d16 · report
get_algorithm_class basedrhys/ood-generalization/clinicaldg/algorithms.py official repository unverified no licence file found · pointer only · b0bc80b1655a6802 · report
print_row basedrhys/ood-generalization/clinicaldg/lib/misc.py official repository unverified no licence file found · pointer only · af3c9a80c8fd1f7a · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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