cs.AINov 5, 2026

Transporting the Past: An Optimal Transport View of Backtracking Counterfactuals

Authors: Zhangyi Liu, Pouria Fatemi, Suvrit Sra

Organizations: Stanford University, Management Science & Engineering · Technical University of Munich, School of CIT, Dept. of Mathematics · Munich Center for Machine Learning

Abstract

We study backtracking counterfactual inference for Structural Causal Models (SCMs) through the lens of optimal transport. In SCMs, a factual observation generally induces a posterior distribution over exogenous variables, making counterfactual inference inherently distributional. We introduce two complementary frameworks that transport this posterior onto the set of exogenous configurations satisfying a desired counterfactual query. The first constructs a natural pointwise projection and is suitable when the transported exogenous distribution can be used directly. The second enforces mutual independence among counterfactual exogenous variables, so that the transported variables remain interpretable as genuine exogenous noises of the same SCM. We show that both frameworks are consistent with the original backtracking counterfactual principle, and we propose marginal, penalty-based, and hard-constrained solvers for finite-posterior settings. Synthetic experiments on non-bijective SCMs illustrate the geometry of the problem and reveal trade-offs among transport cost, counterfactual constraint satisfaction, and preservation of exogenous independence.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. A Semi-Analytical Inference Framework for Structural Causal Models

    Oct 20, 2026Tatiana Boura, Robert PeharzStructural Causal Models

  2. CAFE: Counterfactual Prediction via Fast Posterior Estimation

    Sep 26, 2026Xinyan Han, Xiaoyu Lin, Hao Zou +3Counterfactual PredictionStructural Causal Models

  3. Probabilistic Counterfactual Inference for Discrete Outcomes in Gaussian-Process Causal Models

    Oct 6, 2026Juliette Sinnott, Amir-Hossein Karimi, Mohammad KohandelStructural Causal ModelsCausal Counterfactual Generation