Transporting the Past: An Optimal Transport View of Backtracking Counterfactuals

Zhangyi Liu, Pouria Fatemi, Suvrit Sra
11/5/2026
cs.AIcs.LG

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2026transporting,
  title  = {Transporting the Past: An Optimal Transport View of Backtracking Counterfactuals},
  author = {Zhangyi Liu and Pouria Fatemi and Suvrit Sra},
  year   = {2026},
  eprint = {2611.08682},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.08682v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.08682.svg)](https://codeofpaper.com/paper/2611.08682)

Discussion