Sequential Transport for Causal Mediation Analysis

Agathe Fernandes Machado, Iryna Voitsitska, Arthur Charpentier, Ewen Gallic · 2026

Read Sequential Transport for Causal Mediation Analysis by Agathe Fernandes Machado, Iryna Voitsitska, Arthur Charpentier, Ewen Gallic (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-15182.txt.

Introduction

Fernandes Machado and co-authors propose sequential transport, a framework for causal mediation analysis. It pairs optimal transport with a directed graph of mediators. Instead of cross-world assumptions, it builds unit-level counterfactuals by moving each mediator toward its distribution under another treatment. The moves keep the graph's causal links intact. The authors prove consistency and split effects into direct and indirect parts. Gaussian cases recover classic mediation formulas. An application to the COMPAS dataset gives a fine-grained account of disparities by mediator.

Catalog record

CREATORAgathe Fernandes Machado, Iryna Voitsitska, Arthur Charpentier, Ewen Gallic
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE140365
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.15182

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Sequential Transport for Causal Mediation Analysis Agathe Fernandes Machado, Iryna Voitsitska, Arthur Charpentier, Ewen Gallic Abstract We propose sequential transport (ST), a distributional framework for mediation analysis that combines optimal transport (OT) with a mediator directed acyclic graph (DAG). Instead of relying on cross-world counterfactual assumptions, ST constructs unit-level mediator counterfactuals by minimally transporting each mediator—marginally or conditionally—toward its distribution under an alternative treatment while preserving the causal dependencies encoded by the DAG. For numerical mediators, ST uses monotone (conditional) OT maps based on conditional CDF/quantile estimators; for categorical mediators, it extends naturally via simplex-based transport. We establish consistency of the estimated transport maps and of the induced unit-level decompositions into mutatis mutandis direct and indirect effects under standard regularity and support conditions. When the treatment is randomized or ignorable (possibly conditional on covariates), these decompositions admit a causal interpretation; otherwise, they provide a principled distributional attribution of differences between groups aligned with the mediator structure. Gaussian examples show that ST recovers classical mediation formulas, while additional simulations confirm good performance in nonlinear and mixed-type settings. An application to the COMPAS dataset illustrates how ST yields deterministic, DAG-consistent counterfactual mediators and a fine-grained mediator-level attribution of disparities. 1 Introduction In causal reasoning, estimating the effect of a treatment on an outcome often requires accounting for intermediate variables, known as mediators , that transmit part of the causal influence. Causal mediation analysis provides a formal framework for quantifying these indirect pathways ( 55 ; 67 ) . Classical applications include evaluating gender-based discrimination in hiring decisions while accounting for differences in qualifications, or assessing medical treatments whose side effects trigger behavioral changes that subsequently affect disease progression ( 48 ; 50 ) . Mediation allows the total effect of a treatment on an outcome to be decomposed into a direct effect and an indirect effect operating through mediators. This decomposition is important, in practice. Direct and indirect effects may act in opposite directions, so examining only the total effect can obscure meaningful risks or benefits. Moreover, the size of the indirect pathway can guide interventions: strong mediator effects suggest that acting on the mediator may lead to stronger effects than modifying the treatment itself, mutatis mutandis —that is, “changing what must be changed” to remain consistent with the causal structure, rather than a strict ceteris paribus comparison in which everything else is held fixed ( 23 ) . Beyond policy analysis and epidemiology, mediation analysis is central in algorithmic fairness, where causal definitions of discrimination rely on isolating pathways from sensitive attributes to predictions ( 35 ) . Traditional mediation approaches rely on structural equation models (SEM), often in linear form, yielding decompositions such as the Kitagawa–Oaxaca–Blinder representation ( 31 ; 44 ; 7 ) . Semiparametric or nonparametric alternatives extend these ideas while avoiding strict functional assumptions ( 25 ; 49 ) . However, such methods (i) typically target population -level effects rather than unit-level decompositions, and (ii) may require specifying assumptions on the distributional expressions of a SEM to define mediator counterfactuals, even though the underlying functional forms are generally not identifiable from observational data. In a fully non-parametric setting, deep learning techniques, in particular normalizing flows (NF) have been used to construct counterfactuals and estimate individual-level effects ( 46 ; 27 ; 71 ) . While these techniques offer flexibility in learning the functions of a SEM, they require a sufficient amount of data and may fail to approximate simple functional forms. Recently, optimal transport (OT) has emerged as a powerful tool for constructing counterfactual representations directly from empirical distributions, without imposing a parametric structural model, and even recovering structural counterfactuals under specific assumptions. OT-based counterfactuals have been used to map individuals from one treatment distribution to another ( 11 ; 15 ) , and sequential transport (ST) algorithms have been proposed to align transport operations with the structure of a probabilistic graphical model ( 22 ) . The core idea is to build, for each untreated unit, a deterministic counterfactual mediator profile that is (i) distributionally aligned with the treated group and (ii) consistent with the mediator DAG, by transporting mediators sequentially along a topological order. Extensions further allow applying transport maps to categorical mediators by treating them as compositional objects transported on the simplex ( 21 ) . In fairness applications, similar distributional transformations have been used to define counterfactually fair predictors ( 6 ; 52 ) . A related line of work investigates the extent to which counterfactuals can be nonparametrically identified when the underlying structural equations are unknown or only partially specified. In particular, 4 develop conservative inference procedures that characterize sets of compatible counterfactuals, rather than committing to a single structural model. The approach we consider here is complementary: instead of bounding counterfactuals, we construct a specific distributionally grounded counterfactual, via optimal transport, that satisfies a mutatis mutandis principle and remains compatible with the observable mediator distributions. Sequential transport may therefore be viewed as selecting one interpretable element from the larger counterfactual ambiguity set considered in this literature. Finally, recent work has pushed OT-based causal methodologies beyond graph-constrained formulations. 18 propose structural causal optimal transport , which leverages not only the causal DAG but also the structural equations of a structural causal model to restrict the set of admissible distributions. They also introduce a relaxed version where hard causal constraints are replaced by a regularization term, leading to an efficient algorithmic approach, and they provide finite-sample guarantees when the structural equations must be estimated. While their primary focus is ambiguity-set design for distributionally robust optimization, this line of work is complementary to ours: sequential transport exploits a mediator DAG to build conditional transports (monotone in the continuous case, simplex-based in the categorical case), whereas structural causal OT shows how additional functional information (when available) can further refine OT-based causal constraints. Contributions. We integrate these transport-based ideas into causal mediation analysis. 1 1 1 The replication package, including all data, code, and a replication ebook containing additional results, is available at: https://github.com/fer-agathe/causal_OT . For this, we consider the simple but widely used causal ordering A\to\boldsymbol{X}\to Y, where A is a binary treatment, \boldsymbol{X} a (possibly high-dimensional) vector of mediators structured by a directed acyclic graph (DAG), and Y an outcome. Our key idea is to define mediator counterfactuals in a distributional mutatis mutandis sense: when changing the treatment, each mediator is modified only as necessary to reach the target distribution, while respecting the conditional structure of the joint probability distribution encoded in the DAG. Technically, we implement this through a sequential transport scheme that moves mediators one node at a time along a topological ordering ( 28 ) . For continuous mediators, each step applies either univariate transport or conditional transport, depending on the parents of the node in the DAG. This yields deterministic, interpretable mediator counterfactuals that remain in-distribution and scale linearly with the number of mediators. For categorical mediators, ST incorporates simplex-based transport to preserve label structure. Our main contributions are as follows: • Unit-level mediation via sequential transport. We provide a DAG-aligned OT framework (namely, sequential transport , ST) to compute individual-level direct and indirect effects, by producing mediator counterfactuals consistent with the causal structure. • Theoretical guarantees. We establish convergence

Read the complete text