arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.03003

Causal Foundation Models

Christopher Stith, Hossein Rahmani, Jesse C. Cresswell

Abstract

Causal inference is the practice of estimating the effect of a treatment or intervention from data. It traditionally requires a bespoke pipeline for every new problem: first proposing a causal mechanism, selecting a compatible estimator, and finally training it. Meanwhile, across diverse settings and modalities, much of machine learning has shifted to the paradigm of foundation models: networks pretrained once at scale and applied to new tasks without fine-tuning. Causal foundation models (CFMs) bring this paradigm to causal inference. CFMs are pretrained neural networks that estimate causal quantities, such as the average treatment effect, on entirely new datasets using in-context learning without requiring model updates. This work provides a practical introduction to this emerging area. We summarize the necessary background in causal inference and machine learning before discussing CFMs. Throughout, we include example code and Jupyter notebooks, which can be accessed by clicking on the Jupyter icons. The full codebase is available at github.com/layer6ai-labs/cfms.

1 Introduction

Causal inference is the practice of estimating causal effects between variables (Pearl, 2009a; Imbens & Rubin, 2015). For example: How effective is a medication at preventing a given disease? Did a policy cause a decrease in unemployment? If a central bank raises interest rates, what will the effect be on consumer spending? Causal inference attempts to answer these questions while avoiding the common pitfall of mistaking association with causation, captured in the adage that “correlation is not causation”. Causal inference has applications across many domains, such as economics and policy-making (Athey & Imbens, 2017; Chernozhukov et al., 2018), marketing (Bottou et al., 2013; Gordon et al., 2019), and medicine (Alaa & van der Schaar, 2017; Shalit et al., 2017).

The causal inference community has built a rich library of estimation methods, including Bayesian additive regression trees (Chipman et al., 2010), double machine learning (Chernozhukov et al., 2018), causal forests (Wager & Athey, 2018), as well as S-, T-, and X-learners (Künzel et al., 2019). To approach any given problem with most of these methods, one must first study the data and propose an underlying causal mechanism, choose an estimator that fits this mechanism, tune hyperparameters on validation data, and only then train the final estimator on the data. For each new problem, the full pipeline must be repeated, with no opportunity to reuse tuned models or transfer knowledge between tasks.

Recently, causal foundation models have emerged as a strong and efficient alternative. These are pretrained neural networks that can be applied immediately to any causal inference task without further training or fine-tuning. The heart of causal foundation models (CFMs) lies at the intersection of causal inference and learning-to-learn, in which models learn the ability to predict causal effects in unseen settings from

*Equal contribution.

Figure

Figure 1: Causal foundation models predict on each new dataset using in-context learning without training or fine-tuning. Labeled context data (X_ctx, etc.) are provided as examples so that the model can predict causal effects on unlabeled query data (X_qry). A quickstart example is available in this notebook: jupyter.

observational data.¹ They are trained on tasks sampled from a prior over possible data-generating processes and causal mechanisms, learning to estimate causal effects in a wide variety of scenarios. At inference time, they leverage in-context learning on labeled examples to perform amortized Bayesian inference and make causal estimates (Figure 1).

In this work, we provide a practical and hands-on introduction to CFMs. Our main goal is to provide the reader with the information, tools, and examples they need to use CFMs in their own work. We include example code and Jupyter notebooks throughout this paper to help the reader start using these models immediately. These resources can be accessed by clicking on the jupyter icons throughout. We also release our full codebase at github.com/layer6ai-labs/cfms.

CFMs have demonstrated top performance on causal inference tasks, and we expect that time will only demonstrate further transformational applications. What is remarkable is that these models bring not only a vast increase in inference speed, but also improved performance. This work exists to introduce CFMs to a wider audience, compare the various approaches that have been taken for CFM design, discuss the latest developments in the area, and invite researchers and practitioners to give them a try.

We begin by discussing the necessary background material from causal inference and machine learning in Section 2 before jumping into the core material on CFMs in Section 3. In Section 4, we benchmark the first three openly available CFMs (Robertson et al., 2025; Balazadeh et al., 2025; Ma et al., 2026) together with popular traditional causal inference models. In Section 5, we review the many new developments in the field which form promising areas for future growth, and applications of CFMs in other scientific areas.

References (100)

Couldn't load all references. Reload the page to try again.