causalpfn
CausalPFN — Causal Effect Estimation
pretrained causal-effect PFN · test it on your data
Choose this to test causal-effect estimation on your own observational data: covariates, a treatment/decision column, and an outcome. It returns a per-unit effect (CATE) and an average effect (ATE) in-context. Inference-only.
Run it
$ pip install pfnstudio
$ pfnstudio run causalpfn --input <your file>
# ex: each task on the sample input pfnstudio ships
$ pfnstudio run causalpfn --task estimate --input sample
$ pfnstudio run causalpfn --task rank_causes --input sample
# download it without running · its tasks, inputs, license and digest
$ pfnstudio pull causalpfn
$ pfnstudio show causalpfn
# models loaded now · delete it from this machine
$ pfnstudio ps
$ pfnstudio rm causalpfn
Python 3.10+. The first run downloads the model's adapter, asks before installing PyTorch and the model's own packages (-y installs without asking) and pulls the pretrained weights from Hugging Face. --input sample runs the sample input pfnstudio ships and prints its path: copy it, put your data in, and pass it as <your file>. Later runs reuse the cache.
Serves
| Task | Answers |
|---|---|
| estimate | what does this lever do? |
| rank_causes | which causes matter most? |
Provenance
| Paper | CausalPFN: Amortized Causal Effect Estimation via In-Context Learning ↗ |
| Venue | NeurIPS, 2025 |
| Authors | Vahid Balazadeh, Hamidreza Kamkari, Valentin Thomas, Benson Li, Junwei Ma, Jesse C. Cresswell, Rahul G. Krishnan |
| Publisher | University of Toronto ↗ |
| Weights | pretrained CausalPFN · causalpfn_v0.pt from HuggingFace |
| Input | (N, D) covariates + treatment + outcome |
| License | Apache-2.0 (see the upstream CausalPFN repository) |
| Adapter | basemodels/causalpfn/adapters/ · causalpfn |
| Source | github.com/vdblm/CausalPFN ↗ |
Readme
A ready-to-use causal-effect model you can point at your own historical data — it estimates how much a treatment, price change, or intervention actually moves the outcome for each unit, without running a live experiment or training a model.
CausalPFN (Balazadeh, Chandak, et al., NeurIPS 2025) is a prior-fitted transformer for amortized causal effect estimation. Given an observational dataset of covariates, treatment, and outcome, it predicts the conditional average treatment effect (CATE) for each unit and the population ATE in a single in-context forward pass. This listing installs the real pretrained weights as an inference-only base model: the checkpoint is pulled from HuggingFace (vdblm/causalpfn) at run time and served through the upstream CATEEstimator. Continued pretraining is not offered — the upstream package ships no training prior.