Abstract
Potential outcome estimation and counterfactual reasoning are central to causal inference, yet traditional methods often focus on population averages rather than individual-level distributions. We present PO-Flow, a unified framework based on Continuous Normalizing Flows (CNFs) that jointly models potential outcome distributions. By leveraging conditional flow matching and the deterministic invertibility of flows, PO-Flow enables efficient "abduction-action-prediction" cycles for counterfactual reasoning. Our results across multiple semi-synthetic benchmarks demonstrate that PO-Flow outperforms existing diffusion and GAN-based models in accuracy, distributional fit, and computational speed.
Introduction
In causal inference, the "Potential Outcome" (PO) framework seeks to determine what would happen to a specific unit (e.g., a patient) under different treatment conditions. While the Conditional Average Treatment Effect (CATE) provides a useful group-level metric, precision medicine and personalized policy-making require understanding the full distribution of outcomes for individuals.
A significant challenge is factual-conditioned counterfactual prediction: given an observed outcome under one treatment, what would have happened under an alternative? This requires "abduction"—inferring latent factors from observed data. Traditional generative models like GANs or diffusion models often struggle with this step due to a lack of exact invertibility or the introduction of stochastic noise that obscures individual-specific information.
Methodology: The PO-Flow Framework
PO-Flow addresses these challenges by treating causal inference as a generative modeling task using Continuous Normalizing Flows (CNFs).
Conditional Flow Matching
To avoid the high computational costs of standard CNF training, PO-Flow employs conditional flow matching. The model learns a vector field that transforms a simple base distribution (e.g., a Gaussian) into the complex target distribution of outcomes, conditioned on individual features $x$ and treatment $a$.
The Abduction–Action–Prediction Cycle
The deterministic and invertible nature of CNFs allows for a clean three-step counterfactual reasoning process:
- Abduction (Encoding): The observed factual outcome $Y^{(A)}$ is mapped to a latent representation $Z$ using the forward flow. This $Z$ captures individual-level idiosyncrasies.
- Action: The treatment condition in the model's conditioning set is modified (e.g., from $A=0$ to $A=1$).
- Prediction (Decoding): The latent $Z$ is mapped back to the outcome space using the reverse flow under the new treatment condition.
Likelihood and MAP Prediction
Unlike GANs, PO-Flow provides exact log-likelihoods. This enables Maximum A Posteriori (MAP) prediction—selecting the most likely outcome—which offers a robust alternative to standard mean-based estimation.
Experimental Evaluation
We evaluated PO-Flow on four standard semi-synthetic benchmarks: ACIC 2016, ACIC 2018, IHDP, and the IBM Causal Inference Benchmark. These datasets provide the "ground truth" counterfactuals necessary for rigorous validation.
Performance and Accuracy
PO-Flow consistently achieved the lowest Root Mean Square Error (RMSE) for potential outcome prediction and the best scores for CATE estimation (measured by PEHE) across the majority of benchmarks.
The Advantage of MAP Estimation
A key insight from our study is the effectiveness of MAP prediction. By utilizing the model's ability to calculate log-densities, we can identify the most probable outcome rather than relying on the mean. As shown in the results, MAP prediction consistently yields lower RMSE than mean-based approaches.
Computational Efficiency
PO-Flow is significantly more efficient than its competitors. With approximately 32k parameters (compared to 176k for diffusion-based DiffPO), it trains in roughly one minute on an A100 GPU. Furthermore, its sampling process is approximately 8x faster than diffusion methods, making it highly scalable for large-scale causal analysis.
Conclusion
PO-Flow provides a powerful, unified engine for "what-if" reasoning. By combining the theoretical strengths of normalizing flows with the practical efficiency of flow matching, it sets a new state-of-the-art for individual-level causal inference. Future work will explore scaling PO-Flow to high-dimensional outcomes and relaxing the assumption of unconfoundedness.
Summary updated