Papers › Do causal predictors generalize better to new domains?

Do causal predictors generalize better to new domains?

15 Feb 2024arXiv:2402.09891archive 2025-07-28

Vivian Y. Nastl, Moritz Hardt

We study how well machine learning models trained on causal features generalize across domains. We consider 16 prediction tasks on tabular datasets covering applications in health, employment, education, social benefits, and politics. Each dataset comes with multiple domains, allowing us to test how well a model trained in one domain performs in another. For each prediction task, we select features that have a causal influence on the target of prediction. Our goal is to test the hypothesis that models trained on causal features generalize better across domains. Without exception, we find that predictors using all available features, regardless of causality, have better in-domain and out-of-domain accuracy than predictors using causal features. Moreover, even the absolute drop in accuracy from one domain to the other is no better for causal predictors than for models that use all features. In addition, we show that recent causal machine learning methods for domain generalization do not perform better in our evaluation than standard predictors trained on the set of causal features. Likewise, causal discovery algorithms either fail to run or select causal variables that perform no better than our selection. Extensive robustness checks confirm that our findings are stable under variable misclassification.

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

Code

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

By repository: official repository: 7 samples from 1 repository, 7 ran; found in paper text by Syntology: 5 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

socialfoundations/causal-features officialmentioned in paperpytorchNOASSERTION 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; 12 ran; 0 honoured the contract we drafted; 0 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.

12ran

Licence: 7 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 2 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.

IS_TASK_DG socialfoundations/causal-features/experiments_causal/launch_one_experiment.py official repository ran licence not identified · pointer only · 4b205fa5034b6cac · report
balanced_accuracy_score socialfoundations/causal-features/experiments_causal/metrics.py official repository ran licence not identified · pointer only · c32a1c87fac066b9 · report
binary_stat_scores_format socialfoundations/causal-features/experiments_causal/metrics.py official repository ran licence not identified · pointer only · 332453e98a97f129 · report
get_dic_experiments_value socialfoundations/causal-features/experiments_causal/plot_experiment.py official repository ran fingerprinted licence not identified · pointer only · 48c885404b9c9689 · report
get_dic_experiments_value socialfoundations/causal-features/experiments_causal/plot_experiment_arguablycausal_robust.py official repository ran fingerprinted licence not identified · pointer only · c5b10bd8cd459cf0 · report
get_dic_experiments_value socialfoundations/causal-features/experiments_causal/plot_experiment_balanced.py official repository ran fingerprinted licence not identified · pointer only · eda5e96ba9a34cd0 · report
get_dic_experiments_value_anticausal socialfoundations/causal-features/experiments_causal/plot_experiment_anticausal.py official repository ran fingerprinted licence not identified · pointer only · 58bcc6c74ba0ec3f · report
f_divergence_score py-why/dodiscover/dodiscover/ci/kernel_utils.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 7ef2910fa357bf57 · report
generate_knn_in_subspace py-why/dodiscover/dodiscover/ci/monte_carlo.py found in paper text by Syntology ran MIT (permissive) · adc805a8edd55f21 · report
kl_divergence_score py-why/dodiscover/dodiscover/ci/kernel_utils.py found in paper text by Syntology ran fingerprinted MIT (permissive) · a371b4ee094ac18d · report
restricted_nbr_permutation py-why/dodiscover/dodiscover/ci/monte_carlo.py found in paper text by Syntology ran MIT (permissive) · 3755a6e00fae05ea · report
von_neumann_divergence py-why/dodiscover/dodiscover/ci/kernel_utils.py found in paper text by Syntology ran MIT (permissive) · e3bf1f934a3c61cd · report

Tasks

Causal DiscoveryDomain Generalization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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