# Joint Learning of Factual and Counterfactual Worlds for Causal Prior-data Fitted Networks

Furkan Danisman, Luke Zhang, Zhijing Jin, Dehan Kong · arXiv · 2026-11-15

- **Problem** Causal PFNs trained on one outcome per unit cannot learn how a unit's factual and counterfactual outcomes depend on each other, so they fall back on independence and do not provide all three densities together.
- **Method** Trains a causal PFN on the joint distribution of each synthetic unit's two potential outcomes, derives per-unit ITE densities from the predicted joint, and aggregates them into an ATE density by averaging quantile functions and scaling the result by conformal calibration.
- **Results** Joint-trained variants reach a 55–77% lower interval score than the Do-PFN and UWYK baselines on the case studies under every tested ρ.

![Figure 1: Overview of joint learning. Pre-training: for each unit of a sampled SCM, the two potential outcomes are generated in a factual world, under do(t),…](https://refivu.com/papers/ca05fe75-c727-4e23-8b7e-a0a51814ae5a/figures/figure-fb3c84be369cc31e3120091be1f5ad0f.png?thumb=512)

**Figure 1** : Overview of joint learning. Pre-training: for each unit of a sampled SCM, the two potential outcomes are generated in a factual world, under do(t), and a counterfactual world, under do(t ′ ), which share the same exogenous noise ε. The model qθ receives an observational set and the covariates of query units, whose outcomes are unknown, predicts the joint distribution of their two potential outcomes, and is trained on the negative log-likelihood of the true pair. Inference: the difference of the two outcomes under the predicted joint gives the ITE distribution of each unit, and optimal transport aggregates these into the ATE distribution.2

[Original paper](https://arxiv.org/abs/2611.19710v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Furkan Danisman, Luke Zhang, Zhijing Jin, Dehan Kong · Joint Learning of Factual and Counterfactual Worlds for Causal Prior-data Fitted Networks · Original paper figure · Extracted the figure area from page 6 of the original PDF.

## Why one outcome per unit falls short

A unit-level treatment effect compares two outcomes that belong to the same unit, one under treatment and one under control. Real observations record only one of these outcomes for each unit, so the pair cannot be learned jointly from real data, and the dependence between the two outcomes stays unidentified even under randomization. Causal PFNs address the identification problem by encoding assumptions in a synthetic training prior, so in principle the complete pair of outcomes could be generated during training.

Their training objectives still take one outcome per unit as the target. Do-PFN, UWYK and CausalPFN therefore never see both outcomes of a unit together, and they treat the two outcomes as independent, which the authors regard as an implausible assumption. CausalFM predicts the ITE directly, which avoids the independence choice, but two potential outcomes cannot be recovered from their difference alone.

A decision maker needs response, ITE and ATE densities, and no existing causal PFN supplies all three.

## Learning the pair of potential outcomes

Each training dataset is drawn from a structural causal model, and each unit's two potential outcomes are functions of its covariates and one shared exogenous noise term. The individual treatment effect is the difference between the outcome under treatment one and the outcome under treatment zero, written as \\(\\delta := Y^{do(1)} - Y^{do(0)}\\).

Averaging δ at a covariate value x gives the conditional average treatment effect, and averaging that over the covariate population gives the average treatment effect.

The dependence between the two potential outcomes is the cross-world correlation \\(\\rho(x)=\\mathrm{corr}(Y^{do(1)},Y^{do(0)}\\mid X=x)\\). Real data cannot identify this correlation, because each unit reveals only one of its two outcomes.

The training target is the joint law of the pair of potential outcomes, and the model receives the observational set together with the covariates of the query units. Its loss is the negative log-likelihood of the true pair of outcomes of each query unit. The quantity learned is the joint posterior predictive distribution, which averages the joint law over the SCMs that fit the observational data.

Figure 1 lays out the pre-training and inference steps.

## From the joint to ITE and ATE densities

For each query unit, the ITE density comes from its predicted joint, with treatment one and treatment zero. The density of δ at d is the integral over y of the joint density at which the control outcome equals y and the treated outcome equals y plus d, written as \\\[ f^{(i)}\_{\\delta}(d) = \\int p\\big(y^{do(t')}=y,\\ y^{do(t)}=y+d \\mid x\_i, D\_{obs}\\big)\\, dy \\\] Because the joint is predicted directly, the difference keeps the dependence between the two outcomes instead of assuming it away.

The ATE is the mean of the unit-level ITEs, so the per-unit densities must be merged into one. A pointwise average of the densities would inflate the spread, because differences between units would add to it. The method averages the quantile functions instead, which gives the 2-Wasserstein barycenter of the ITE densities.

The aggregated quantile function is \\\[ Q\_{\\mathrm{ATE}}(u) = \\bar{\\tau} + s\\Big(\\frac{1}{n}\\sum\_{i=1}^{n} Q^{(i)}\_{\\delta}(u) - \\bar{\\tau}\\Big), \\quad u \\in (0,1) \\\] Here \\(Q^{(i)}\_{\\delta}\\) is the quantile function of the ITE density of query unit i, and s is a scaling parameter. The scale comes from conformal calibration on the model's prior, while the centre τ̄ is the average of the per-query ITE means, so the ATE point estimate is unchanged.

## Why the joint objective should be more efficient

The posterior predictive variance of δ splits into the uncertainty about the CATE and the average within-SCM variance of the ITE. Within an SCM the ITE variance is \\(v\_\\psi(x) = \\sigma\_1^2(x) + \\sigma\_0^2(x) - 2\\rho(x)\\sigma\_1(x)\\sigma\_0(x)\\), so it depends on the cross-world correlation. The part that depends on ρ(x) is where the single-outcome and joint objectives differ most.

A single-outcome model sees each unit under one treatment only, which makes it implicitly assume ρ(x)=0. A different ρ can be chosen at inference, but observational data give only a conservative bound on it, so any value within that bound is a guess.

Under the joint loss, a CATE error e raises the loss by at least \\(e^2/(2\\,\\mathrm{Var}(\\delta))\\), while the single-outcome loss gives \\(e^2/(4(\\sigma\_0^2+\\sigma\_1^2))\\). When ρ(x)\>0 the difference δ carries less noise, so the joint objective learns the effect more efficiently. This comparison assumes that both objectives learn the same outcomes.

Joint training also gains from an extra outcome per unit and from being able to learn the dependence between the two outcomes, and a matched label budget ablation separates these two sources.

A model trained on the expected outcome mt removes the idiosyncratic noise and can be more efficient for the treatment effect, but its response densities become overconfident.

A one-dimensional output over K grid points costs O(K) per query, while the two-dimensional joint output costs O(K^2) per query. To keep the cost similar, each joint model uses the square root of its baseline's grid size, which lowers its resolution and makes the reported gains conservative. A density estimator at inference could recover some resolution, but the reported results do not use one.

## Models, ablations and benchmarks

For each of Do-PFN, UWYK and CausalPFN, the prior and transformer are held fixed, both potential outcomes are generated, and only the learning objective changes; the resulting variant is called JT.

CausalFM is excluded because it trains a separate model for each identification setting and already supervises the ITE directly. CausalPFN has two training stages, and its first stage cannot use paired outcomes, so its baseline is re-trained from the causal stage and called CausalPFN-C; the comparison with the published two-stage checkpoint is in Appendix H.7.

The published UWYK checkpoint covers only the continuous treatment, so a binary version was re-trained under the same protocol and is reported in Appendix H.8.

Single-outcome baselines are reported under several assumed ρ values, namely −0.5, 0, 0.5 and 1, applied through a Gaussian copula, while JT models use their learned ρ(x). Two ablations match either the resolution K or the label budget of the JT model, which gives eleven trained models in total.

RealCause generates the two potential outcomes independently, so it serves as a check on the independence assumption. ComplexMech draws random SCMs with nonlinear mechanisms, the case study covers six causal scenarios adopted from Do-PFN, and Twins treats the two outcomes of twin pairs as factual and counterfactual. The Twins data contains 11,984 same-sex pairs with birth weights below 2 kg, with one-year mortality as the outcome.

The ATE is evaluated with its relative error, and metrics across datasets are summarised by the geometric mean, Average g, with Hochberg correction for significance.

## RealCause point estimates under independent outcomes

Because RealCause generates the two outcomes independently, a joint model that learns dependence is partly misspecified on this benchmark, so the test checks robustness.

Do-PFN JT and UWYK No-Anc JT have lower error than their baselines on all ten unit- and population-level cells. UWYK Anc JT and CausalPFN-C JT are lower on six of the ten cells, but their averages do not differ significantly from the baselines.

## Interval scores under dependent outcomes

On the case studies the correlation is about 1 wherever it can be computed, while on ComplexMech it can be computed for fewer datasets and its mean lies between 0.82 and 1 for most graph sizes.

On the case studies, the Do-PFN and UWYK JT models lower the interval score of their baselines by 55–77% under every tested ρ, including ρ = 1.

On this benchmark the resolution cost of CausalPFN-C is outweighed by the gain from joint learning.

For point estimation, joint learning reduces the square root of PEHE for Do-PFN and UWYK by 40–62% and 11–51% on average.

## Counterfactual prediction on Twins

Averaged over the random guesses of ρ, every JT model reduces the baseline's mean squared error by 22–48% at both covariate sets.

## Limits of identifiability and of the comparison

The authors therefore argue that evaluation should emphasise uncertainty estimation, coverage and density estimation alongside point estimation.

The coarser grid of the joint models makes the gains conservative, and the results use no density estimator to recover resolution.

Where outcomes are independent, as in RealCause, the joint models are misspecified and their advantage depends on the correlation the baseline assumes. CausalPFN-C and the binary UWYK are re-trained rather than taken as published, and the comparisons with the published checkpoints are reported in the appendix.

## What the results suggest for training and benchmarks

The authors recommend that evaluation measure the uncertainty that identifiability leaves, that benchmarks carry the connection between the two worlds, and that training learn both worlds jointly. Benchmarks may need to span levels of dependence between the factual and counterfactual outcomes rather than assuming independence.

## Paper info

- **Authors**: Furkan Danisman, Luke Zhang, Zhijing Jin, Dehan Kong
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-15
- **Added**: 2026-11-17
- **Updated**: 2026-11-15
- **Version**: v1
- **arXiv**: 2611.19710
- **Category**: stat.ML · cs.AI · cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.19710v1) · [PDF ↗](https://arxiv.org/pdf/2611.19710v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Estimating treatment effects is central to science across many disciplines and requires counterfactual reasoning about alternative worlds. In the real world, however, each unit reveals its outcome only under the factual world. Thus, the factual and counterfactual outcomes can never be jointly learned by any model trained on real data. The problem is therefore tractable only in synthetic settings, where both worlds can be generated. Recent progress on prior-data fitted networks (PFNs) has shown that models pre-trained purely on synthetic data can transfer to real-world prediction. This paradigm has since carried over to causal effect estimation. Despite this fully synthetic setup, existing causal PFNs carry the real-world constraint into their training objective, confining learning to a single world's outcome per unit. The dependence between the two worlds is thereby lost, and the density of the treatment effect relies by default on independence, which is implausible in practice. We therefore propose joint learning, a training setup in which a causal PFN learns the joint distribution of the factual and counterfactual outcomes of each unit. From the joint distribution, we obtain both the response and the individual treatment effect densities, and at inference, we apply optimal transport across units to obtain an approximation of the average treatment effect density. Ours is therefore the first causal PFN approach to provide all three densities together while accounting for the cross-world dependence. We apply joint learning and optimal transport to existing causal PFNs and evaluate it across semi-synthetic, synthetic, and real benchmarks spanning diverse causal scenarios. The jointly trained models significantly improve upon their baselines in point estimation and uncertainty quantification in most settings, indicating that joint learning is a preferable training setup for causal PFNs.

## Quote from the paper

Furkan Danisman, Luke Zhang, Zhijing Jin, Dehan Kong (2026). Joint Learning of Factual and Counterfactual Worlds for Causal Prior-data Fitted Networks. arXiv:2611.19710v1. https://arxiv.org/abs/2611.19710v1

**BibTeX**

```
@misc{danisman2026joint,
  title = {{Joint Learning of Factual and Counterfactual Worlds for Causal Prior-data Fitted Networks}},
  author = {Furkan Danisman and Luke Zhang and Zhijing Jin and Dehan Kong},
  year = {2026},
  eprint = {2611.19710},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19710v1}
}
```

## Other paper commentary

- [Emulating physics-based XCO2 retrievals across OCO-2 viewing modes with compact neural networks](https://refivu.com/en/papers/6eac8a41-4497-46c1-a78e-3b47e416ce0a-emulating-physics-based-xco2-retrievals-across-oco-2.md)
- [Deep Convolutional Networks on Graph-Structured Data](https://refivu.com/en/papers/b94a76bd-69b6-41d9-9dc2-a50ec07493aa-deep-convolutional-networks-on-graph-structured-data.md)
- [Pixel Recurrent Neural Networks](https://refivu.com/en/papers/d5d56398-b505-4053-bf0e-8b169a060e49-pixel-recurrent-neural-networks.md)
- [Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domains](https://refivu.com/en/papers/0db80d86-03b8-4275-8e19-39d4c7f0fd3d-fourier-features-let-networks-learn-high-frequency-functions.md)
- [CSRNet: Dilated Convolutional Neural Networks for Understanding the Highly Congested Scenes](https://refivu.com/en/papers/991e4e38-4c34-4634-839b-1c56b435a442-csrnet-dilated-convolutional-neural-networks-for.md)
- [Sequence Transduction with Recurrent Neural Networks](https://refivu.com/en/papers/882824aa-8ddf-4d40-8608-c68a08ecc168-sequence-transduction-with-recurrent-neural-networks.md)
- [Multi-Objective Causal Bandits: Minimal Intervention Space and Policy-Level Learning](https://refivu.com/en/papers/540f68b6-056b-44ce-94f3-5d91726bf05d-multi-objective-causal-bandits-minimal-intervention-space.md)
- [ResWAM: Learning What Changes, Not What Stays, for World-Action Models](https://refivu.com/en/papers/8ff204e6-02d0-446a-b10f-79536a9345b6-reswam-learning-what-changes-not-what-stays-for.md)
- [Clustering-Based Artificial Tree Ensembles for Random Forest Approximation](https://refivu.com/en/papers/ee4dcb23-4caf-4067-a49f-678a0c4355c2-clustering-based-artificial-tree-ensembles-for-random-forest.md)
- [Isolating Perception for Multi-View Planning under Occlusion-Induced Partial Observability](https://refivu.com/en/papers/6ac42b45-0624-43a7-9143-e917da2b7cc2-isolating-perception-for-multi-view-planning-under-occlusion.md)
- [ANCHOR: A Port-Hamiltonian Model for Forecasting Team Dynamics in Human-in-the-Loop Systems](https://refivu.com/en/papers/85bcf8f5-5825-4f59-88e9-06fc575cc54f-anchor-a-port-hamiltonian-model-for-forecasting-team.md)
- [Beyond Plain MCP: Do Decision Models and Code Mode Make Tool Use Cheaper and Faster?](https://refivu.com/en/papers/88efe713-93d8-47d6-b8be-667c299e21ae-beyond-plain-mcp-do-decision-models-and-code.md)

## Terms in this paper

- [mean squared error](https://refivu.com/en/terms/e8df98e6d7b7-mean-squared-error)
- [negative log-likelihood](https://refivu.com/en/terms/e6d7135ed9ca-negative-log-likelihood)
- [optimal transport](https://refivu.com/en/terms/ce65c388d297-optimal-transport)
- [average treatment effect](https://refivu.com/en/terms/e3484043c229-average-treatment-effect)
- [conditional average treatment effect](https://refivu.com/en/terms/2278f0010f72-conditional-average-treatment-effect)
- [structural causal model](https://refivu.com/en/terms/f9056ccaca07-structural-causal-model)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/ca05fe75-c727-4e23-8b7e-a0a51814ae5a-joint-learning-of-factual-and-counterfactual-worlds-for)
