SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.04431 · 2023

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

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2308.04431.json · badge: /api/ran/2308.04431.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
basedrhys/ood-generalization canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
FunctionStatusWhere it lives
block_until_running Ran
ran, violated the contract we drafted
basedrhys/ood-generalization/clinicaldg/command_launchers.py
pointer only (licence: NOASSERTION) · get_code("0946df67b41ca7e6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, basedrhys/ood-generalization (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cat Ran
ran; our contract draft was wrong, not the code
basedrhys/ood-generalization/clinicaldg/algorithms.py
pointer only (licence: NOASSERTION) · get_code("e91f7d025aac4e1d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, basedrhys/ood-generalization (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_opt_thresh Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
basedrhys/ood-generalization/clinicaldg/datasets.py
pointer only (licence: NOASSERTION) · get_code("81186e8df1f9769c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, basedrhys/ood-generalization (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cross_entropy Ran
ran; our contract draft was wrong, not the code
basedrhys/ood-generalization/clinicaldg/algorithms.py
pointer only (licence: NOASSERTION) · get_code("b6530052a755f0c1")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, basedrhys/ood-generalization (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_num_jobs Ran
ran, honoured the contract we drafted
basedrhys/ood-generalization/clinicaldg/command_launchers.py
pointer only (licence: NOASSERTION) · get_code("501459823473afca")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, basedrhys/ood-generalization (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_wandb_name Ran
ran; our contract draft was wrong, not the code
basedrhys/ood-generalization/clinicaldg/utils.py
pointer only (licence: NOASSERTION) · get_code("a5ac56dac9b4dd4c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, basedrhys/ood-generalization (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_weights_for_balanced_classes Ran
ran, honoured the contract we drafted
basedrhys/ood-generalization/clinicaldg/lib/misc.py
pointer only (licence: NONE) · get_code("5f576ed342c48a0a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, basedrhys/ood-generalization when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_dataset Ran
ran; our contract draft was wrong, not the code
basedrhys/ood-generalization/clinicaldg/lib/misc.py
pointer only (licence: NONE) · get_code("18e820e42046bc45")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, basedrhys/ood-generalization when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

torch_bernoulli Ran
ran; our contract draft was wrong, not the code
basedrhys/ood-generalization/clinicaldg/datasets.py
pointer only (licence: NOASSERTION) · get_code("6957fee49762783e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, basedrhys/ood-generalization (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

torch_xor Ran
ran; our contract draft was wrong, not the code
basedrhys/ood-generalization/clinicaldg/datasets.py
pointer only (licence: NOASSERTION) · get_code("8eeb5c1550b93d16")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, basedrhys/ood-generalization (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_algorithm_class Not yet run
unverified (harvested, no recorded run)
basedrhys/ood-generalization/clinicaldg/algorithms.py
pointer only (licence: NONE) · get_code("b0bc80b1655a6802")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, basedrhys/ood-generalization when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

print_row Not yet run
unverified (harvested, no recorded run)
basedrhys/ood-generalization/clinicaldg/lib/misc.py
pointer only (licence: NONE) · get_code("af3c9a80c8fd1f7a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, basedrhys/ood-generalization when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 2 the same month, 4 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_algorithm_class 39 other papers
30 dated earlier, 9 later
1907.02893 (2019-07)
Invariant Risk Minimization
2007.01434 (2020-07)
In Search of Lost Domain Generalization
2007.02931 (2020-07)
Adaptive Risk Minimization: Learning to Adapt to Domain Shift
and 36 more not named here
make_weights_for_balanced_classes 18 other papers
12 dated earlier, 1 the same month, 5 later
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 15 more not named here
print_row 11 other papers
8 dated earlier, 1 the same month, 2 later
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 8 more not named here
split_dataset 5 other papers
4 dated earlier, 1 later
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
2207.10792 (2022-07)
Test-Time Adaptation via Self-Training with Nearest Neighbor Information
and 2 more not named here
block_until_running 2 other papers
2 dated earlier
2108.12250 (2021-08)
A comparison of approaches to improve worst-case predictive model performance over patient subpopulations
2108.12510 (2021-08)
Pulling Up by the Causal Bootstraps: Causal Data Augmentation for Pre-training Debiasing
get_num_jobs 2 other papers
2 dated earlier
2108.12250 (2021-08)
A comparison of approaches to improve worst-case predictive model performance over patient subpopulations
2108.12510 (2021-08)
Pulling Up by the Causal Bootstraps: Causal Data Augmentation for Pre-training Debiasing

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2308.04431")
get_code_for_paper("2308.04431")
have("2308.04431")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2308.04431.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2308.04431.svg)](https://syntology.ai/paper/2308.04431)

Connect an agent — have() is free.