Do causal predictors generalize better to new domains?

Vivian Y. Nastl, Moritz Hardt
2/3/2026

No official code found. Best implementation: socialfoundations/causal-features (17 stars, last commit 2025-02-07).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Code to reproduce the paper "Do causal predictors generalize better to new domains?"

173Python, DockerfileFeb 13, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{nastl2026causal,
  title  = {Do causal predictors generalize better to new domains?},
  author = {Vivian Y. Nastl and Moritz Hardt},
  year   = {2026},
  eprint = {2402.09891},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.09891},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.09891.svg)](https://codeofpaper.com/paper/2402.09891)

Discussion