CausalPFN for ATE/CATE: task-specific evaluation
Evaluated methods
We evaluate treatment-effect estimators on a collection of 2,000 synthetic datasets generated from 13 DGP families. Each dataset contains 500 observations. All methods use the same observed datasets and causal-effect targets. Results are aggregated with equal weight assigned to each DGP family.
CausalPFN (official checkpoint). A pretrained Transformer for causal effect estimation through in-context learning. Given observed covariates, treatments and outcomes, it predicts the conditional mean outcome under each treatment state. CATE is estimated by their difference at a specified query point; ATE is estimated by averaging predicted CATE over the observed covariates. We use the official released checkpoint and its native interval construction for both tasks.
CausalPFN + CNP. A frozen CausalPFN backbone combined with a conditional neural process (CNP) prediction head. The head pools representations of the queried individuals and directly predicts a Gaussian distribution for their average treatment effect, providing both a point estimate and an interval. We evaluate the publicly released pretrained heads from Schulman, Bynum and Wald (2026) for ATE estimation.
CausalPFN (DGP-trained). A CausalPFN model initialized from the official predictive-stage checkpoint and subsequently trained on synthetic causal tasks. We generate 20,000 training datasets and 1,552 development datasets from ten DGP families, independently of the test datasets. All model parameters are updated using the CEPO objective. We evaluate the resulting models for CATE estimation at a fixed query point in each mechanism, using the native CausalPFN interval procedure.
RF, Linear, CatBoost-TD and XGBoost-TD. Classical estimators built with random forests, regularized linear/logistic models, and the CatBoost and XGBoost TD learning configurations, respectively. For ATE, each uses five-fold cross-fitted augmented inverse-probability weighting (AIPW). For CATE, each averages treatment-arm outcome-model contrasts from five fold-complement fits. Confidence intervals use 50 whole-row bootstrap resamples, with the complete estimator refitted for each resample.
CNP results average the evaluation metrics of three publicly released head checkpoints. DGP-trained CausalPFN results average metrics from three independent training seeds. These are averages of evaluation metrics, rather than ensembles of model predictions.
Quick start
Run a single observed table without downloading the benchmark archive. Installation, input schema and all commands are provided in the standalone inference bundle.
# In a Python environment with PyTorch installed:
python -m pip install huggingface_hub
python -c "from huggingface_hub import snapshot_download; snapshot_download('fuyao11/CausalPFN-ATE-CATE', allow_patterns=['inference/**'], local_dir='causalpfn')"
cd causalpfn
python -m pip install -r inference/requirements.txt
# Public CNP head + official backbone: ATE
python inference/predict.py --method cnp --task ATE --output ate.json
# DGP-trained model: CATE at the example query
python inference/predict.py --method dgp-trained --task CATE --output cate.json
# Official checkpoint: either task
python inference/predict.py --method official --task ATE
python inference/predict.py --method official --task CATE
Weights are automatically downloaded from pinned revisions and checked against recorded SHA-256. These commands use the included n=500 example and CPU FP32. Add --device cuda:0 for GPU inference or --input table.npz for your own data. CNP defaults to head seed 0; the DGP-trained model defaults to seed 42. Other released seeds are selectable.
Input: numeric NPZ arrays X: (n,d), T: (n,) with treatment 0/1, and Y: (n,); CATE also requires query: (1,d). Output: point estimate, lower/upper 95% interval bounds, target definition, checkpoint hashes and runtime metadata. Outcomes and effect estimates retain their original units. See interface details.
Worked example
The independent example generator uses X ~ N(0,I₃), T|X ~ Bernoulli(sigmoid(0.5X₁)), and Y = X₁ + 0.5X₂ + T(1 + 0.5X₁) + ε, where ε ~ N(0,1). Population ATE is 1, and CATE at x*=(0.5,0,0) is 1.25. The average true effect over this table's observed X is 0.994042. Truth is stored separately and is never read by the inference entry point.
Actual CPU FP32 outputs (data seed 1729; inference seed 2026):
| Model | Target | Point | 95% interval |
|---|---|---|---|
| CausalPFN (official checkpoint) | Observed-X average effect | 0.838101 | [0.690957, 0.983403] |
| CausalPFN + CNP (head seed 0) | Observed-X average effect | 0.794926 | [0.605312, 0.984540] |
| CausalPFN (official checkpoint) | CATE at x* | 0.935381 | [-2.347895, 4.471294] |
| CausalPFN (DGP-trained, seed 42) | CATE at x* | 1.135958 | [0.834711, 1.434118] |
Observed data · Truth · Saved outputs · Validation
This single example demonstrates the interface; it does not measure coverage. The full benchmark below uses all 2,000 test tables. Exact example software versions are recorded in the JSON outputs. The standalone runner uses FP32 throughout; formal benchmark settings remain documented in EVALUATION.md.
Checkpoint guide
| Weights | Role | How to use |
|---|---|---|
Official causalpfn_v0.pt |
Final pretrained causal backbone | Native ATE/CATE, or the base for the released prediction heads |
v2_cnp_rand_s{0,1,2}.pt |
Three CNP prediction heads | Pair each with the official final backbone for ATE |
v2_lathist_s{0,1,2}.pt |
Three Latent NP prediction heads | Pair each with the official final backbone; supplementary ATE evaluation |
Trained best.pt, seeds 42/43/44 |
Complete DGP-trained CATE models | Load one directly for CATE; each includes the full model |
Official tabdpt_long_context.ckpt |
Predictive-stage initialization | Starting point for second-stage causal training |
The CNP and Latent NP heads are evaluated with the official backbone, not with the DGP-trained models. Checkpoint source revisions and hashes identify all files. The benchmark averages metrics across three checkpoints; the single-table commands run one selected checkpoint.
Data card
| Use | Number of tables | Rows per table | DGP families | Purpose |
|---|---|---|---|---|
| Causal training | 20,000 | 500 | D01–D10 | Update all model parameters from predictive initialization |
| Development | 1,552 | 500 | D01–D10 | Select the checkpoint by equal-DGP CEPO loss |
| Evaluation | 2,000 | 500 | All 13 families | Report ATE/CATE metrics together, with equal DGP weights |
Training and development use separately generated mechanisms and data seeds from the frozen evaluation tables. Evaluation contains 1,000 mechanisms, each with two independent samples, and 2–10 covariates. CATE is evaluated at one fixed query per mechanism; the main ATE truth is the population effect. The official backbone and public prediction heads retain their released weights. Training procedure and metric definitions · Generator code, configurations, exact seeds and truths
Results
| Target | Method | Bias | Variance | RMSE | Length | Coverage (%) | Time (s) |
|---|---|---|---|---|---|---|---|
| ATE | CausalPFN (official checkpoint) | 0.0119497 | 0.00970526 | 0.111396 | 0.259921 | 77.63 | 1.08872 |
| ATE | CausalPFN + CNP | -0.0391486 | 0.00986567 | 0.130412 | 0.415308 | 91.30 | 0.00805552 |
| ATE | RF | -0.0166683 | 0.0136984 | 0.128354 | 0.589695 | 96.75 | 90.4903 |
| ATE | CatBoost-TD | 0.0139107 | 0.454544 | 0.766089 | 5.65104 | 92.74 | 776.326 |
| ATE | XGBoost-TD | 0.0219312 | 0.78973 | 1.10179 | 6.89904 | 98.94 | 411.673 |
| ATE | Linear | 0.0322416 | 0.012409 | 0.141988 | 0.41771 | 84.21 | 5.52524 |
| CATE | CausalPFN (official checkpoint) | 0.0143332 | 0.0479911 | 0.296608 | 5.84711 | 100.00 | 0.218974 |
| CATE | CausalPFN (DGP-trained) | 0.00503345 | 0.0237994 | 0.216998 | 0.871001 | 96.58 | 0.178635 |
| CATE | RF | -0.0138656 | 0.155985 | 0.552216 | 1.26885 | 84.84 | 55.5005 |
| CATE | CatBoost-TD | -0.0182207 | 0.128368 | 0.64656 | 1.23889 | 75.29 | 574.033 |
| CATE | XGBoost-TD | -0.0103863 | 0.127553 | 0.556002 | 1.45601 | 88.13 | 268.792 |
| CATE | Linear | 0.00773727 | 0.0524982 | 0.46432 | 0.744065 | 68.31 | 1.05219 |
CNP and DGP-trained entries average the metrics of three model seeds, not ensemble predictions. The original official-checkpoint rows each use one recorded evaluation run. Variance is within-mechanism sampling variance; it is not across-seed variability. All evaluations have 2,000 successful tables per run. Raw and per-DGP results retain failures as explicit records (none in these formal runs).
CATE coverage is 96.58%; ATE CNP coverage is 91.30%, below nominal 95%. CNP ATE coverage is only 44.34% on D12. Do not infer uniform calibration from aggregate metrics. The task-specific reporting choice followed inspection of these test results and is exploratory.
Detailed evaluation · Final six metrics · Per-run and DGP metrics · Supplementary heads and targets
Original official-checkpoint results
CausalPFN (official checkpoint) is the original full evaluation of unchanged causalpfn_v0.pt on the same 2,000 tables, with calibration disabled, 10,000 native interval draws and CUDA BF16 neural forward. No second-stage training or prediction head is added. These rows are recomputed from the archived per-table records, not replaced by the prediction-head experiment's control.
Its population ATE RMSE is 0.11140 with 77.63% coverage. Fixed-query CATE RMSE is 0.29661, with 100% coverage and mean interval length 5.84711, indicating conservative intervals on this collection.
The supplementary CausalPFN (head-evaluation control) evaluates the official checkpoint using the same FP32 direct-context inference pipeline as the prediction-head methods, without adding a head. It provides the matched baseline for assessing the prediction heads: ATE coverage is 77.47%. The main table's official-checkpoint row uses auxiliary context selection and BF16 neural forward, with 77.63% coverage.
Downloads and reproduction
- Download code, data and raw results and extract it. Open a terminal in the extracted project directory.
- To recompute the tables, run
python3 scripts/summarize.py(standard library only). - For inference/training, download the weight restoration script, save it as
restore_weights.pyin the project directory, installhuggingface_hubin a suitable environment, then runpython restore_weights.py --root .. It pins the current repository revision at startup and verifies every downloaded weight against recorded SHA-256. - Follow reproduction instructions for the separate classical-baseline and PFN environments. Then run
python3 scripts/verify_archive.py.
The compact archive excludes large model weights and optimizer-resume last.pt files. The restore script supplies all evaluated best.pt checkpoints, public prediction heads, final base weights and predictive initialization. The local continuation checkpoints are not needed to reproduce inference or to retrain from initialization.
Trained CATE checkpoints
All three SHA-256 values match the corresponding evaluation records. Training configuration and logs accompany the checkpoints. These weights are derived from the upstream predictive checkpoint; they are not the original authors' final causal weights.
ATE heads and sources
- Public CNP / Latent NP heads
- Recorded source commits and SHA-256
- Official CausalPFN base
- CausalPFN paper
- Head paper: Unit-level aggregation breaks coverage in causal foundation models
- Authors' head repository
The published Latent NP results are supplementary; the selected ATE row is CNP. The released heads have not been evaluated for our independent fixed-query CATE target.
Timing and interpretation
Time measures warm end-to-end point-and-interval computation. Classical methods include 50 full bootstrap refits on CPU; PFN methods use GPU. CATE uses its auxiliary context-selection path; the public ATE heads use direct-context embeddings. Different software, precision and concurrent loads preclude controlled speedup claims.
Historical releases
The previous evaluation and model card describe the unchanged official CausalPFN checkpoint comparison. Their relative links refer to the repository root of the previous snapshot. Existing arena_n500/, evaluation/ root CSVs, old archives and original PDF remain historical artifacts. Current metrics are in the current evaluation directory. The old standalone arena_n500 interface does not automatically load the new models.
Attribution and licenses
Upstream CausalPFN attribution and license notices remain in licenses. The prediction-head repository's MIT license is preserved. No blanket relicensing of third-party materials is asserted. See NOTICE.