cs.LGSep 26, 2026

CAFE: Counterfactual Prediction via Fast Posterior Estimation

Authors: Xinyan Han, Xiaoyu Lin, Hao Zou, Xingxuan Zhang, Bo Li, Peng Cui

Organizations: Tsinghua University · Stable AI

Abstract

Counterfactual prediction estimates an individual's outcome under an alternative intervention given their factual observations. Such outcomes are generally not identifiable from observational data without additional assumptions. Even within the class of fully observed additive noise models (ANMs), different causal graphs can generate the same observational distribution yet imply different individual counterfactual outcomes. Predictions based on a single estimated graph ignore this structural uncertainty. We therefore target a Bayesian counterfactual posterior predictive distribution that combines predictions from plausible SCMs. We introduce CAFE (CounterfActual Prediction via Fast Posterior Estimation), an amortized inference framework that directly approximates the Bayesian counterfactual posterior predictive distribution. We pretrain a transformer-based model on synthetic counterfactual tasks generated from a diverse prior over ANMs. Given an observational dataset, an individual's factual observations, and an intervention, CAFE approximates the corresponding posterior predictive distribution in a single forward pass. Experiments show that CAFE accurately predicts individual counterfactual outcomes in identifiable settings and approximates the posterior predictive distribution when structural uncertainty induced by observationally indistinguishable causal graphs exists. Strong performance in realistic manufacturing and viticulture settings further demonstrates its empirical robustness beyond the assumptions of the training prior.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Amortized Counterfactual Prediction with Graph Neural Networks

    Oct 9, 2026Hendrik Stumpf, Francesco QuinzanCounterfactual PredictionCausal Inference

  2. A Causal Foundation Model for Structure and Outcome Prediction

    Jun 25, 2026Max Zhu, Martino Mansoldo, Ching-Hao Wang +1Causal Foundation ModelsCausal Structure Learning

  3. Are Good Generators Good Decision-Makers? Policy Learning for General Interventions via Retargeted Counterfactual Generation

    Jun 5, 2026Raphael C Kim, Jingsen Zhu, Ramin Zabih +1Reinforcement LearningCausal Counterfactual Generation