NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Transporting the Past: An Optimal Transport View of Backtracking Counterfactuals

Zhangyi Liu, Sayedpouria Fatemi, Suvrit Sra

NeurIPS page · OpenReview · Open on the map

Category: Causality, Privacy & Learning Theory › Causal Structure Discovery · Type: new method · Keywords: optimal transport, backtracking counterfactuals, structural causal models, counterfactual inference, independence preservation, synthetic experiments

Areas: Causal Inference › Causal Learning › Causal Models

Summary

We propose two optimal transport frameworks for backtracking counterfactual inference in structural causal models, enabling both direct use of transported distributions and preservation of exogenous independence, with marginal, penalty-based, and hard-constrained solvers.

Explained to a 5-year-old

We have a model that explains how things cause each other. When we see something, we wonder what would happen if we changed something else. The model says there are hidden random parts we don't see. We move those hidden parts around to see what would happen, making sure the new parts stay random and independent. We do this in different ways and test it on made-up examples.

Explained to a 5-year-old, longer

Imagine a story where things happen because of other things. We call this kind of story a cause model. When we look at the story, we see some things that happen for sure. But there are also hidden pieces that are random, like secret noises. When we want to ask "what if" questions, we need to change those hidden pieces. We need to move the hidden pieces around so they still make sense. Sometimes we just move them directly to fit the new question. Other times we make sure the moved pieces stay independent, like they don't talk to each other. We have a math tool called optimal transport that helps us move these pieces. We create two ways to use this tool: one simple, one that keeps independence. We also create three different solvers to do the moving. We test everything on made-up examples to see how well it works.

For a technical reader

The paper reframes backtracking counterfactual inference as an optimal transport problem. Two complementary transport frameworks are introduced: a pointwise projection that directly uses the posterior, and an independence-enforcing version that keeps exogenous noises interpretable. Marginal, penalty-based, and hard-constrained solvers are proposed for finite posteriors, and synthetic experiments illustrate the trade-offs between transport cost, constraint satisfaction, and independence preservation.

Problem

Inferring counterfactuals given a factual observation in structural causal models is inherently distributional because the observation induces a posterior over unobserved exogenous variables. Transporting this posterior to satisfy a desired counterfactual query while preserving desirable properties such as independence is challenging.

Method

The approach formulates counterfactual inference as an optimal transport problem, constructing two complementary transport frameworks: one that directly projects the posterior onto feasible exogenous configurations, and another that additionally enforces independence among the transported variables. Solvers include marginal, penalty-based, and hard-constrained methods to handle finite-posterior settings.

Results

The approach demonstrates trade-offs among transport cost, counterfactual constraint satisfaction, and preservation of exogenous independence in synthetic non-bijective SCMs.

Contributions

We provide two optimal-transport based frameworks for backtracking counterfactual inference that (i) directly transport posterior distributions onto feasible exogenous configurations and (ii) additionally enforce independence among counterfactual exogenous variables. We also propose marginal, penalty-based, and hard-constrained solvers for finite-posterior settings and evaluate them on synthetic non-bijective SCMs.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction