Causal Foundation Models with Continuous Treatments

Christopher Stith, Medha Barath, Vahid Balazadeh, Jesse C. Cresswell, Rahul G. Krishnan
5/14/2026
7 citations
cs.LG

Official code: layer6ai-labs/CCPFN-inference (3 stars, Jupyter Notebook, Apache-2.0, last commit 2026-07-16).

Abstract

Causal inference, estimating causal effects from observational data, is a fundamental tool in many disciplines. Of particular importance across a variety of domains is the continuous treatment setting, where the variable of intervention has a continuous range.

Show full abstract

This setting is far less explored and represents a substantial shift from the binary treatment setting, with models needing to represent effects across a continuum of treatment values. In this paper, we present the first causal foundation model for the continuous treatment setting. Our model meta-learns the ability to predict causal effects across a wide variety of unseen tasks without additional training or fine-tuning. First, we design a novel prior over data-generating processes with continuous treatment variables in order to generate a rich causal training corpus. We then train a transformer to reconstruct individual treatment-response curves given only observational data, leveraging in-context learning to amortize expensive Bayesian posterior inference. Our model achieves state-of-the-art performance on individual treatment-response curve reconstruction tasks compared to causal models which are trained specifically for those tasks. Inference code (including trained model weights) can be found at https://github.com/layer6ai-labs/CCPFN-inference .

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Inference code for "Causal Foundation Models with Continuous Treatments"

30Jupyter Notebook, PythonJun 23, 20264 months agoApache-2.0

Similar Papers

Cite this paper

@article{stith2026causal,
  title  = {Causal Foundation Models with Continuous Treatments},
  author = {Christopher Stith and Medha Barath and Vahid Balazadeh and Jesse C. Cresswell and Rahul G. Krishnan},
  year   = {2026},
  eprint = {2605.15133},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.15133v2}
}

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/2605.15133.svg)](https://codeofpaper.com/paper/2605.15133)

Discussion