[KongchangAI]
· 2 min read· 1,183 words

Jointly Learning Factual and Counterfactual Worlds: A New Causal PFN Method

Jointly Learning Factual and Counterfactual Worlds: A New Causal PFN Method

Joint learning lets causal PFNs model factual and counterfactual worlds together, improving effect estimation and uncertainty quantification.

The article discusses the fundamental difficulty that counterfactuals are unobservable in causal effect estimation, noting that causal PFNs still follow a single-world training objective that loses cross-world dependencies and defaults to an unreasonable independence assumption. The authors propose joint learning, which learns the joint distribution of factual and counterfactual outcomes and uses optimal transport to aggregate across units at inference; experiments show significant gains in point estimation and uncertainty quantification.

Title

Jointly Learning Factual and Counterfactual Worlds: A New Causal PFN Method

Meta Description

This article introduces a new causal PFN training method—joint learning—that simultaneously models factual and counterfactual worlds, uses optimal transport to obtain the average treatment effect density, and significantly improves point estimation and uncertainty quantification across multiple benchmarks.

Article Content

Causal effect estimation is a core task in many scientific fields, requiring us to reason counterfactually about alternative worlds. However, in the real world, each unit reveals its outcome only under the factual world, so any model trained on real data cannot simultaneously learn factual and counterfactual outcomes. This problem is tractable only in synthetic environments, where both worlds can be generated. Recent advances in Prior-Fitted Networks (PFNs) have shown that models pretrained entirely on synthetic data can transfer to real-world prediction tasks. This paradigm was subsequently introduced to causal effect estimation.

Illustration of joint learning in causal PFN

Limitations of Existing Causal PFNs: The Single-World Constraint

Although causal PFNs adopt a fully synthetic setting, existing methods still carry real-world constraints into their training objectives—namely, that each unit can only learn outcomes from a single world. This causes the dependency between the two worlds to be lost, and the density of treatment effects defaults to an independence assumption, which is unreasonable in practice. According to the paper's authors, this training objective limits the model's ability to capture cross-world dependencies, thereby affecting the accuracy of effect estimation.

The Potential Outcomes Framework is the classic formalization tool for causal inference, proposed by Neyman and Rubin. For each unit $i$, two potential outcomes $Y_i(1)$ and $Y_i(0)$ are defined, representing the outcomes under treatment and no treatment respectively; the individual treatment effect is their difference. The core difficulty of this framework lies in "the fundamental problem of causal inference": in reality, each unit can only observe one of the potential outcomes, while the other becomes counterfactual and is forever missing. Traditional methods therefore rely on strong assumptions (such as unconfoundedness and overlap) to identify average effects. Causal PFNs move this framework into synthetic data, where both potential outcomes can in principle be generated, but existing training objectives still follow the "observe only one world" constraint—precisely the root of the criticism in this article.

Prior-Fitted Networks (PFNs) are a class of Transformer-based meta-learning architectures. The idea is to sample a large number of synthetic datasets from a prior distribution (each dataset corresponding to a "task") and train the model to directly output the predictive distribution at test points given a training set. The model is essentially performing implicit Bayesian inference: treating the training set as context, it obtains the posterior predictive in a single forward pass. The advantage of PFNs is that no retraining or hyperparameter tuning is needed for new tasks, and they naturally output uncertainty. Causal PFNs transplant this paradigm to causal effect estimation, using synthetic causal scenarios as the prior so that the model learns to infer treatment effects from observational data.

Joint Learning: Modeling Factual and Counterfactual Simultaneously

To address the above problem, the researchers propose a joint learning training setup. In this setup, the causal PFN learns the joint distribution of factual and counterfactual outcomes for each unit. From the joint distribution, we can obtain the response density and the individual treatment effect density. At inference time, the researchers apply optimal transport across units for approximation to obtain the average treatment effect density. It is claimed to be the first causal PFN method that simultaneously provides three densities and accounts for cross-world dependencies.

Optimal Transport (OT) is a mathematical tool for measuring the distance between two probability distributions and finding the optimal transport plan. Given a source distribution and a target distribution, OT solves for the coupling that "moves" the former into the latter at minimum cost; its discrete form is the classic optimal matching problem, and its continuous form is closely related to the Wasserstein distance. In the inference stage of this paper, the researchers need to aggregate the average treatment effect density from individual treatment effect densities, but each unit only provides its own effect distribution, and distributions cannot be averaged directly. By using optimal transport to align these distributions across units, one can perform principled aggregation at the distribution level rather than simply averaging point estimates, thereby preserving uncertainty information.

Experimental Evaluation and Results

The researchers applied joint learning and optimal transport to existing causal PFNs and evaluated them on semi-synthetic, synthetic, and real benchmarks covering a variety of causal scenarios. Experimental results show that in most settings, jointly trained models significantly outperform baselines in both point estimation and uncertainty quantification. This indicates that joint learning is a superior training setup for causal PFNs.

Semi-synthetic benchmarks are a commonly used compromise in causal inference evaluation: covariates and some structure come from real data (such as IHDP, ACIC, etc.), while treatment assignment and outcome generation mechanisms are artificially specified, thereby retaining the complexity of real data while knowing the true individual treatment effects, allowing exact error computation. Uncertainty quantification concerns whether the confidence intervals or posterior distributions produced by the model are reliable, with commonly used metrics including interval coverage, interval width, and the Continuous Ranked Probability Score (CRPS). Accurate point estimates do not imply trustworthy uncertainty; the two must be evaluated separately, which is precisely the significance of this article's emphasis on "improving both point estimation and uncertainty quantification."

Multi-Source Cross-Validation

According to analyses from Bilibili creators and YouTube channels, the joint learning framework proposed in this research is innovative in the field of causal inference, solving the long-standing problem of cross-world dependencies. Multiple sources agree that the method's improvements in uncertainty quantification are particularly notable, providing a new direction for the development of causal PFNs.

Conclusion

Joint learning provides a more reasonable training paradigm for causal PFNs. By modeling the joint distribution of factual and counterfactual worlds and using optimal transport for inference, it significantly improves the accuracy of effect estimation and the capability of uncertainty quantification. This method is expected to advance the real-world application of causal inference.

One-line Summary

Joint learning enables causal PFNs to simultaneously model factual and counterfactual worlds, improving effect estimation and uncertainty quantification.

Paragraph Summary

The article discusses the fundamental difficulty that counterfactuals are unobservable in causal effect estimation, pointing out that although causal PFNs are pretrained on synthetic data, they still follow the training objective of "each unit learns outcomes from only a single world," leading to lost cross-world dependencies and treatment effect densities that default to unreasonable independence assumptions. To address this, the authors propose a joint learning setup in which the model directly learns the joint distribution of factual and counterfactual outcomes and derives response densities and individual treatment effect densities from it; at inference time, optimal transport is used to aggregate across units to obtain the average treatment effect density. Experiments on semi-synthetic, synthetic, and real benchmarks show that joint training significantly outperforms baselines in both point estimation and uncertainty quantification in most settings, and is regarded as a more reasonable training paradigm for causal PFNs.

#causal PFN#joint learning#counterfactual reasoning#optimal transport#treatment effect estimation#uncertainty quantification
Share:

Related articles