Clear2024 Main
Clear2024 Main
Clear2024 Main
Abstract
We consider the problem of estimating the counterfactual joint distribution of multiple quantities
of interests (e.g., outcomes) in a multivariate causal model extended from the classical difference-
in-difference design. Existing methods for this task either ignore the correlation structures among
dimensions of the multivariate outcome by considering univariate causal models on each dimen-
sion separately and hence produce incorrect counterfactual distributions, or poorly scale even for
moderate-size datasets when directly dealing with such a multivariate causal model. We propose
a method that alleviates both issues simultaneously by leveraging a robust latent one-dimensional
subspace of the original high-dimension space and exploiting the efficient estimation from the uni-
variate causal model on such space. Since the construction of the one-dimensional subspace uses
information from all the dimensions, our method can capture the correlation structures and produce
good estimates of the counterfactual distribution. We demonstrate the advantages of our approach
over existing methods on both synthetic and real-world data.
Keywords: multivariate counterfactual distribution, optimal transport, difference in difference
1. Introduction
Causal inference has received explosive interest in the last decades, due to the need to extract causal
knowledge from data in various research fields, such as statistics (Pearl, 2009), sociology (Gangl,
2010), biomedical informatics (Kleinberg and Hripcsak, 2011), public health (Glass et al., 2013),
and machine learning (Schölkopf, 2022). One of the most popular causal inference models in prac-
tice is the difference in difference (DiD) model, which dates back to the works of John Snow in
the 1850s (Snow, 1854, 1855; Donald and Lang, 2007; Lechner, 2011; Roth et al., 2023). In this
model, we observe a quantity of interest (i.e., outcome) from two different groups, i.e., the treatment
group and the control group, at two different time steps, i.e., before and after the intervention (i.e.,
treatment) event. More precisely, the intervention is only applied on the treatment group while there
is no intervention applied on the control group. We assume that if there was no intervention in the
treatment group, its outcome variable would evolve the same way as that of the control group. This
is the so-called “parallel trend” assumption. The classical DiD model, however, requires that the
© 2024 T. Le.
means of the outcome variable in the two groups must evolve the same way when there is no inter-
vention. This may limit its application in practice. To extend the DiD model, several proposals have
been developed in the literature (Abadie, 2005; Athey and Imbens, 2006; Blundell and Costa Dias,
2009; Sofer et al., 2016), of which notably is the Changes-in-Changes (CiC) model (Athey and
Imbens, 2006).
The CiC model generalizes the DiD model to include parallel trends that can act on the whole
distribution of the outcome, i.e., in the absence of intervention, the means of the outcome in control
and treatment groups are allowed to evolve in different ways, as long as the two outcome distribu-
tions evolve in the same way. This allows identifications of more complex treatment effects that
require information from the whole outcome distributions, not just their first moments (Lechner,
2011). The standard CiC model, however, is only designed for univariate outcomes. In order to ex-
tend the CiC model for a multivariate outcome variable, a naive approach is to tensorize univariate
CiC models, i.e., considering independently a univariate CiC model for each coordinate. Neverthe-
less, this naive approach fails to capture correlations among coordinates of the outcome and thus is
incapable of modelling complex, multivariate parallel trends.
Recently, by leveraging the optimal transport (OT) theory (Villani, 2003, 2008), Torous et al.
(2021) proved that the counterfactual outcome distribution of the treatment group in the CiC model
(i.e., the outcome distribution of the treatment group without receiving intervention) at the post-
intervention time stamp can be estimated by exploiting the optimal transport map which pushfor-
wards the outcome distribution of the control group at the pre-intervention time stamp to that at
the post-intervention time stamp. Consequently, it is natural to extend the CiC model for univariate
quantity of interest into that for multivariate one through the lens of OT, since this would take into
account the dependence structure of the dimensions and be able to model complex parallel trends.
However, OT suffers a few drawbacks. It has a high computational complexity, which is super
cubic with respect to the number of supports of the input distribution. A popular approach is to rely
on the entropic regularization for OT, a.k.a., Sinkhorn (Cuturi, 2013), to reduce its computational
complexity to quadratic. Yet, Sinkhorn yields a dense estimator for the optimal transport plan, which
is not a desirable property for counterfactual estimation in the CiC model. Additionally, OT has a
high sample complexity, i.e., O(n−1/d ) where n is the number of samples and d is the dimension of
samples in the probability measures.
In this work, in order to exploit the efficient computation of the CiC model for the univariate
quantity of interest, and alleviate the above-mentioned challenges of the OT approach for the multi-
variate CiC model, we propose to leverage the max-min robust OT approach (Paty and Cuturi, 2019;
Deshpande et al., 2019; Le et al., 2024). In particular, we propose to lift the univariate CiC model to
that for a multivariate quantity of interest by seeking a robust latent univariate subspace. Unlike the
naive tensorization approach, our approach can incorporate the correlations of coordinates. More-
over, unlike the standard OT approach as in (Torous et al., 2021), our estimator can preserve the
efficient computation as in the univariate CiC model since the optimal transport plan is estimated
on the robust latent one-dimensional subspace instead of its original high-dimensional space.
Intuitively, our approach follows the max-min robust OT approach (Paty and Cuturi, 2019; Desh-
pande et al., 2019; Le et al., 2024), which steams from the robust optimization (Ben-Tal et al., 2009;
Bertsimas et al., 2011) where there are uncertainty non-stochastic parameters. The robust opti-
mization has many roots in applied sciences, e.g., in robust control (Keel et al., 1988), machine
learning (Morimoto and Doya, 2001; Xu et al., 2009; Panaganti et al., 2022). In the context of
OT, several advantages of the max-min (and its relaxation min-max) robust OT have been reported.
2
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
For example, (i) it makes the OT approach robust to noise (Paty and Cuturi, 2019; Dhouib et al.,
2020; Le et al., 2024); and (ii) it also helps to reduce the sample complexity (Paty and Cuturi, 2019;
Deshpande et al., 2019). At a high level, our contributions are two-fold as follows:
• (i) We propose a max-min robust OT approach for the multivariate CiC model. The proposed
approach not only inherits properties of the OT approach for the CiC model but also preserves
the efficient computation as in the univariate CiC model.
• (ii) We evaluate our approach on both synthesized and real data to illustrate the advantages of
the proposed method.
The paper is organized as follows: we review the multivariate CiC model and existing methods
for estimating the counterfactual distribution in this model in Section 2. Then, we discuss our
proposed method in Section 3 and demonstrate its benefits through synthetic data in Section 4. We
apply it to the classical dataset of Card and Krueger (1993) in Section 5 before giving concluding
remarks in Section 6. Furthermore, we have released code for our proposed approach.1
Notations. We use the superscripts C and T to indicate the control group and treatment group,
respectively. We drop those superscripts when either the context is clear or it is not necessary to
distinguish these two groups.
• (i) the control group: the stochastic process {YtC } is solely affected by the natural drift. The
evolution from {Y0C } at t = 0 to {Y1C } at t = 1 is independent of the treatment effects (of
intervention).
• (ii) the treatment group: the stochastic process {YtT } is affected by both the natural drift and
the treatment effects.
For the CiC causal model, the goal of our causal inference is to deconvolve the natural drift and
the treatment effects in the treatment group. For example, we would like to estimate the counterfac-
tual distribution of the control group at post-intervention under only natural drift effect (i.e., without
the treatment effects). By doing so, we can estimate the treatment effects of the intervention for the
considered groups in application domains.
1. https://github.com/thongphamthe/scalable-counterfactual
3
2.1. The Natural Drift Model
Natural drift is best explained in the stochastic process {YtC } for t = {0, 1} since this process
involves solely the natural drift and is not affected by the treatment effect. The change of {YtC }
from the pre-intervention (t = 0) to the post-intervention (t = 1) is modeled by assuming the
existence of two production functions ht : Rd 7→ Rd with t ∈ {0, 1} such that
YtC = ht UtC .
Consequently, we have µCt = (ht )♯ ν C where we introduce a new notation ♯ as the pushforward
operator which is defined as for any measurable set A ⊆ Rd , ν(A) = µ(h−1 t (A)) (Peyré and
Cuturi, 2019, Def. 2.1). In other words, the distribution of the quantity of interests in the control
group at the time stamp t (i.e., µC C
t ) is the pushforward of the distribution of the latent variable Ut
C
of the control group at the time stamp t (i.e., ν ) by the production function ht .
Natural drift map. Assume that the production function h0 is invertible, we have ν C = (h−1 C
0 )♯ µ0 .
Additionally, the distribution ν C of UtC is time-invariant. Thus, we have
µC1 = (h1 ◦ h−1 C
0 ) ♯ µ0 . (1)
Equivalently, µC1 is the pushforward of µC0 by the natural drift map
f = h1 ◦ h−1
0 . (2)
Natural drift in the treatment group. We first introduce the concept of a counterfactual dis-
tribution of the outcome in this group, which is the outcome variable of the treatment group at
post-intervention t = 1 under the purely hypothetical situation that the treatment was never ap-
∗
plied. Denote {Y1T } as this hypothetical stochastic process for the outcome and its distribution
∗ ∗
as µT1 . It is assumed that the change from {Y0T } to {Y1T } is governed by the same production
functions h0 and h1 used in modeling natural drift in the control group, namely Y0T = h0 (U0T ) and
∗
Y1T = h1 (U1T ). This assumption generalizes the parallel trend assumption in the classical DiD
model. Then, similarly to Equation (1), we have
∗
µT1 = (h1 ◦ h−1 T T
0 )♯ µ0 = (f)♯ µ0 . (3)
∗
Thus, the counterfactual distribution µT1 is the pushforward of µT0 by the natural drift map f. More-
∗
over, Equations (1) and (3) suggest the following two-step method to estimate µT1 , the counterfac-
tual distribution of outcomes in the treatment group under only effects of the natural drift:
• (i) We first estimate the natural drift map f from observed samples in the stochastic processes
{Y0C }, {Y1C } of the distributions µC0 , µC1 respectively. How to perform this estimation will be
discussed in the next section.
• (ii) We then use the estimated natural drift map f as the pushforward function for the stochas-
∗
tic process {Y0T } with distribution µT0 to obtain an estimate for the distribution µT1 .
The schematic summary of the causal model is shown in Fig. 1.
If we further assume U0C = U1C , then we have Y1C = f (Y0C ), i.e., the natural drift map can
be estimated by regress the control group at t = 1 on the control group at t = 0. However, it
requires coupled observations (Y0C , Y1C ), which may be not available in practical applications, e.g.,
single-cell RNA-Seq data.
4
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
control treatment
Figure 1: Schematic of the multivariate CiC model. The latent distributions ν C and ν T are time-
invariant. At each time t, the production function ht is applied to each latent distribution
to produce the corresponding outcome distribution in the absence of intervention. Con-
sequently, the natural drift map f = h1 ◦ h−1 0 dictates the evolutions of the outcome
distributions in both control and treatment groups in the absence of intervention. This
generalizes the parallel trend assumption in the classical DiD model. For estimating
∗
treatment effects on the treatment group, our goal is to estimate µT1 , the counterfactual
distribution of outcomes in the treatment group at t = 1. One can estimate f from the
observable empirical versions of µC0 and µC1 then use this estimation of f to push-forward
∗
the observable empirical version of µT0 to obtain an estimation of µT1 .
The CiC causal model and optimal transport. For the uncoupled observations Y0C , Y1C , given
d = 1, the original CiC estimator (Athey and Imbens, 2006) assumes that h0 and h1 are monotone
increasing. Let FtC be the cumulative distribution function (cdf) of YtC for t = 0, 1. Then, the unique
−1 −1
monotone increasing natural drift map is given by (F1C ) ◦F0C such that µC1 = (F1C ) ◦ F0C µC0 .
♯
−1
Interestingly, the natural drift map (F1 ) ◦ F0 is also the optimal transport map between µC0
C C
and µC1 . Therefore, the OT theory provides a natural framework to extend the Changes-in-Changes
causal model for multivariate outcomes (Torous et al., 2021).
2.2. The OT approach for estimating the counterfactual distribution in multivariate CiC
As briefly discussed in Section 2.1, for the univariate outcome, the OT map is the natural drift
map estimation for CiC causal model. Torous et al. (2021) leveraged the OT theory to extend it for
the multivariate quantity of interests. We will discuss some mathematical background of OT for
estimating f in high dimensional setting for the CiC causal model.
5
Let µ, ν be two probability measures supported on Rd , the OT problem between µ an ν with
squared Euclidean ground cost is defined as
Z
OT(µ, ν) = min ∥x − T (x)∥22 dµ s.t. (T )♯ µ = ν, (4)
T Rd
6
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
G1 = {E ⊂ Rd | dim(E) = 1},
where dim(E) is the dimension of the space E. Given two measures µ, ν supported on the space
Rd , the max-min robust OT (Paty and Cuturi, 2019) considers the maximal OT distance over all
possible 1-dimensional projections of input probability measures. Denote PE as the projector on
the 1-dimensional space E, the robust OT is defined as
ROT(µ,
g ν) = sup OT(PE ♯ µ, PE ♯ ν). (8)
E∈G1
One way to parameterize the projection on the 1-dimensional space PE and the Grassmannian man-
ifold G1 is to utilize a projected direction vector ω on the sphere centering at the origin with a radius
1 as follows:
ROT(µ, ν) = max OT(Pω♯ µ, Pω♯ ν), (9)
ω∈Rd | ∥ω∥2 =1
where Pω denotes the projector on the direction ω. For a support x ∈ Rd , its projection by the
projected direction ω is computed by ⟨x, ω⟩. However, the problem ROT is non-convex, which is
usually approximated by the first-order method in practical applications (Deshpande et al., 2019).4
Much as the sliced-Wasserstein (SW) (Rabin et al., 2011)5 which is usually approximated by
averaging over a few random directions in practical applications instead of integrating over all pos-
sible directions on the sphere, and in order to optimize the robust OT efficiently, we also seek a
direction over a subset of projected directions Ω for the robust OT, defined as follows:
where we construct Ω by randomly sampling k directions similar as SW. We observe that a small
k, e.g., in the range of 10 to 50, provides a good balance between computation speed and accuracy.
For estimating the natural drift map f, µ and ν are chosen to be the empirical versions of µC0 and µC1
respectively. A detailed description of our algorithm is provided in Appendix F.
While our approach inherits the fast computation of the CiC estimator for univariate causal
models and thus can scale up for large-scale causal inference applications, it also gives good perfor-
mances in estimating the natural drift map f. This is in line with previous observations from various
applications of sliced-based OT (Rabin et al., 2011; Deshpande et al., 2019; Le et al., 2019; Nguyen
et al., 2021).
7
Discussions. Our approach is inspired by the recent success of using sliced-Wasserstein (SW) (i.e.,
based on one-dimensional OT) in applications, e.g., computer vision (Kolouri et al., 2016; Lee et al.,
2019; Deshpande et al., 2019; Wu et al., 2019; Nguyen et al., 2021; Naderializadeh et al., 2021),
deep learning (Kolouri et al., 2019; Lee et al., 2019; Wu et al., 2019), domain adaptation (Lee et al.,
2019), and machine learning (Naderializadeh et al., 2021; Rakotomamonjy and Liva, 2021; Liutkus
et al., 2019). Much as SW, the one-dimensional projection in our robust OT does not offer interesting
properties from a distortion perspective, but remains useful as a surrogate function to optimize the
transport map in applications. From many empirical evidences in our experiments, we believe that
one-dimensional projection with large distortion, and further refined under the uncertainty sets in
our robust OT, remains useful as a surrogate in causal applications. Furthermore, it also follows
the recent realization that solving exactly the OT problem leads to overfitting (Peyré and Cuturi,
2019, §8.4), (Le et al., 2019). Excessive efforts to approximate the ground-truth cost for OT (e.g.,
under noisy supports or outliers) would be self-defeating since it leads to overfitting within the
optimization of OT problem itself.
Although it is possible to use more dimensions in the latent space as in Subspace Robust Wasser-
stein (Paty and Cuturi, 2019), our approach can be regarded as a trade-off to obtain scalable ap-
proach, since only 1-dimensional OT yields a closed-form solution, in general, this property does
not hold when the dimensional is greater than one. Also, notice that OT and SW are equivalent
metrics (Bonnotte, 2013, Theorem 5.1.5) (Carrière et al., 2017, Theorem 3.3). Moreover, SW is
indeed a distance for input measures on original high-dimensional space (Bonnotte, 2013, Propo-
sition 5.1.2). Therefore, leveraging the closed-form solution of OT in 1-dimension space is well
ground-based in OT theory.
Remark 2 A technical remark is that it may not exist the optimal transport map T for the OT
problem in Equation (4) (i.e., the Monge formulation of OT problem). In practical applications,
one can relax such the Monge problem of OT by the Kantorovich formulation of OT problem (Peyré
and Cuturi, 2019), in which the optimal transport plan always exists.6 Consequently, one can utilize
such optimal transport plan and leverage the barycentric map (Bonneel et al., 2016) for the OT map
in the Monge problem of OT.
4. Synthetic experiments
All experiments were carried out on commodity hardware and can be reproduced by the released
code.7 From here, we will denote the naive tensorization of the univariate CiC method for estimating
multidimensional counterfactual distributions simply as the CiC method.
8
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
Figure 2: Counterfactual distribution estimated by each method. While CiC failed to capture
the dependence structures between dimensions of the counterfactual distributions in both
examples, our method succeeded.
The proposed method produced a counterfactual distribution with the correct correlation struc-
ture, while CiC failed to do so. This demonstrates the 1-dimensional subspace created by our
method can indeed provide the type of information that CiC cannot capture. To systematically eval-
uate the performance of each method, we generate 10 datasets and then measure the running time
as well as the OT distance between the estimated counterfactual distribution of each method and the
∗
empirical version of the true counterfactual distribution µT1 . This empirical distribution, denoted as
µ
g T∗ , is regarded as the ground truth in our experiments. The averaged values are reported in Fig. 2.
1
Figure 3: Averaged running time and OT distance to ground truth. The OT distance is mea-
sured between the estimation result of each method and the ground truth µ g T∗ , which is
1
the empirical version of the true counterfactual distribution. Values are calculated over
ten datasets. Our method outperforms the OT approach in terms of speed while being
significantly better than the CiC approach in terms of accuracy measured by OT distance
to ground truth.
9
The CiC estimator has the worst averaged OT distance to ground truth among the three meth-
ods. This might be due to its failure to capture the correlation structure between dimensions. The
proposed method is about one order smaller in OT distance to ground truth than the CiC while being
about two orders faster than the OT approach.
Figure 4: Effect of varying the number of samples n for two types of latent distributions.
In both cases, the proposed method is much faster than both the OT and Sinkhorn ap-
proaches, while being much more accurate than the CiC.
The running time of our method is close to that of the CiC and is faster than OT and Sinkhorn
for all values of n. This is in line with the theoretical worst-case running time of each method.
Regarding OT distance to ground truth, while being worse than OT, our method outperforms CiC
for all values of n. This suggests that, while a large n might help CiC in estimating the marginals
of the counterfactual distribution in each dimension, the advantages of the 1-dimensional subspace
constructed by our method do not diminish.
In comparison with Sinkhorn, our method is both faster and more accurate. We caution that the
performance of Sinkhorn depends heavily on the strength of the entropic regularization term, and
choosing a suitable value for the entropic regularization hyperparameter is non-trivial. However, as
stated earlier, since the worst-case running time of Sinkhorn is quadratic, it is reasonable to expect
it to be generally slower than our method. Additional results that include Sinkhorn with different
hyperparameters are shown in Appendix B, and additional results with a baseline using Principal
Component Analysis (PCA) are shown in Appendix E.
10
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
report the averaged running time as well as the averaged OT distance to ground truth. More details
on experiment settings can be found in Appendix A. The results are shown in Fig. 5. Additional
results that include Sinkhorn with different hyperparameters are shown in Appendix B. Additional
results with a baseline using PCA are shown in Appendix E.
Figure 5: Varying the dimension d while fixing number of samples n = 5000. The latent dis-
tribution is multivariate Gamma. When d is high, our method is among the bests in both
running time and accuracy. This suggests that the robust 1-dimensional subspace of our
method can capture meaningful information even in high-dimensional situations.
It is interesting to observe that when d is high, our method is the fastest method, i.e., even faster
than CiC. This is in line with the theoretical worst-case running time of CiC being O(dn log n) and
ours being O(n log n+dn) when k is fixed. As d increases, the superiority of OT over our method in
terms of OT distance to the ground truth diminishes and even reverses: our method is as accurate as,
if not better than, OT when d = 100. Since the performance of CiC is still much worse, this reversal
comes from the robust one-dimensional subspace. This is consistent with previous observations that
found robustifications can alleviate the poor sample complexity of OT (Paty and Cuturi, 2019).
11
Figure 6: Performances of our proposed method and an approach employed the ROT function
when varying k. Here k has two different meanings depending on which method is
considered. In our proposed method that uses the ROT function in Eq. (10), k is the
number of projections used to construct the robust one-dimensional subspace. In the
approach that employs the ROT function in Eq. (9), k is the number of iterations of
Adam first-order method. Our approach is as good as ROT in terms of accuracy while
being much faster. Increasing the number of projections in our method to the hundreds
marginally improves the accuracy and variance of the results, while requiring more time.
the results, while significantly running longer. This ineffectiveness of Adam might be due to the
non-convexity and non-smooth of ROT.
12
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
Figure 7: Counterfactual distribution of the numbers of full-time (FT) and part-time (PT)
employees in restaurants in New Jersey. The data is from Card and Krueger (1993).
The panel of our method shows the result of one typical run. Our method captures well
the correlation between FT and PT in the result of OT, while CiC struggles in the region
of high FT and PT. The OT distance between the result of CiC and the result of OT is
72.26. For our method, this number averaged over 1000 runs is 68.66 ± 1.42.
we measure the OT distance between our method and the result of OT, averaging over 1000 runs.
The OT distance between the result of CiC and the result of OT is 72.26, while that of our method
is 68.66 ± 1.42, where the confidence interval is two standard deviations. These numbers reinforce
the aforementioned visual impressions and offer statistical evidence to support the conclusion that
our method captured better the relationship between FT and PT than CiC.
6. Concluding remarks
We proposed a method for estimating the counterfactual distribution in multidimensional CiC mod-
els. Our method, like CiC, enjoys the computational efficiency of one-dimensional optimal trans-
ports while utilizing correlation information that is ignored under CiC. Through synthetic and real-
dataset experiments, our method is shown to consistently outperform CiC in terms of accuracy,
while running at a fraction of the time of the multidimensional OT approach. In future works, we
plan to explore the robustness of our proposed method in the presence of outliers or noises, as well
as in other causal settings, such as the triple difference model (Gruber, 1994; Olden and Møen,
2022). Additionally, it may be interesting to leverage more general local structures for scalable OT,
e.g., tree and graph over supports of measures (Le et al., 2019; Le and Nguyen, 2021; Le et al.,
2022, 2023), rather than the one-dimensional structure for causal inference problems.
Acknowledgments
We thank anonymous reviewers and area chairs for their comments. This work was partially sup-
ported by Shiga University Competitive Research Fund, JST CREST JPMJCR22D2, JPMJCR2015,
JST MIRAI program JPMJMI21G2, ISM joint-research 2023-ISMCRP-2010, and JSPS KAKENHI
Grant number 23K11243.
13
References
Alberto Abadie. Semiparametric difference-in-differences estimators. The Review of Economic
Studies, 72(1):1–19, 2005. ISSN 00346527, 1467937X.
Sina Akbari, Luca Ganassali, and Negar Kiyavash. Learning causal graphs via monotone triangular
transport maps. arXiv preprint, 2023. doi: 10.48550/arXiv.2305.18210.
Matthew Ashman, Chao Ma, Agrin Hilmkil, Joel Jennings, and Cheng Zhang. Causal reasoning in
the presence of latent confounders via neural ADMG learning. In International Conference on
Learning Representations, 2023.
Susan Athey and Guido W. Imbens. Identification and inference in nonlinear difference-in-
differences models. Econometrica, 74(2):431–497, 2006. ISSN 00129682, 14680262.
Aharon Ben-Tal, Laurent El Ghaoui, and Arkadi Nemirovski. Robust optimization, volume 28.
Princeton university press, 2009.
Dimitris Bertsimas, David B Brown, and Constantine Caramanis. Theory and applications of robust
optimization. SIAM review, 53(3):464–501, 2011.
Richard Blundell and Monica Costa Dias. Alternative approaches to evaluation in empirical mi-
croeconomics. Journal of Human Resources, 44(3), 2009.
Nicolas Bonneel, Gabriel Peyré, and Marco Cuturi. Wasserstein barycentric coordinates: histogram
regression using optimal transport. ACM Trans. Graph., 35(4):71–1, 2016.
Nicolas Bonnotte. Unidimensional and Evolution Methods for Optimal Transportation. Theses,
Université Paris Sud - Paris XI ; Scuola normale superiore (Pise, Italie), December 2013. URL
https://theses.hal.science/tel-00946781.
Yann Brenier. Polar factorization and monotone rearrangement of vector-valued functions. Com-
munications on pure and applied mathematics, 44(4):375–417, 1991.
Brantly Callaway and Tong Li. Quantile treatment effects in difference in differences models with
panel data. Quantitative Economics, 10(4):1579–1618, 2019.
David Card and Alan B Krueger. Minimum wages and employment: A case study of the fast food
industry in New Jersey and Pennsylvania. Working Paper 4509, National Bureau of Economic
Research, October 1993. URL http://www.nber.org/papers/w4509.
David Card and Alan B. Krueger. Minimum wages and employment: A case study of the fast-
food industry in New Jersey and Pennsylvania: Reply. The American Economic Review, 90(5):
1397–1420, 2000. ISSN 00028282.
Mathieu Carrière, Marco Cuturi, and Steve Oudot. Sliced Wasserstein kernel for persistence dia-
grams. In International Conference on Machine Learning, volume 70, pages 664–673, 2017.
14
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
Ishan Deshpande, Yuan-Ting Hu, Ruoyu Sun, Ayis Pyrros, Nasir Siddiqui, Sanmi Koyejo, Zhizhen
Zhao, David Forsyth, and Alexander G Schwing. Max-sliced Wasserstein distance and its use for
gans. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,
pages 10648–10656, 2019.
Sofien Dhouib, Ievgen Redko, Tanguy Kerdoncuff, Rémi Emonet, and Marc Sebban. A Swiss army
knife for minimax optimal transport. In International Conference on Machine Learning, pages
2504–2513. PMLR, 2020.
Stephen G Donald and Kevin Lang. Inference with difference-in-differences and other panel data.
The Review of Economics and Statistics, 89(2):221–233, 05 2007. ISSN 0034-6535.
Wilfrid Gangbo. The Monge mass transfer problem and its applications. Contemporary Mathemat-
ics, 226:79–104, 1999.
Markus Gangl. Causal inference in sociological research. Annual Review of Sociology, 36(1):21–47,
2010.
Thomas A. Glass, Steven N. Goodman, Miguel A. Hernán, and Jonathan M. Samet. Causal infer-
ence in public health. Annual Review of Public Health, 34(1):61–75, 2013.
Jonathan Gruber. The incidence of mandated maternity benefits. The American Economic Review,
84(3):622–641, 1994. ISSN 00028282.
Inwoo Hwang, Yunhyeok Kwak, Yeon-Ji Song, Byoung-Tak Zhang, and Sanghack Lee. On discov-
ery of local independence over continuous variables via neural contextual decomposition. In 2nd
Conference on Causal Learning and Reasoning, 2023.
Alexander Immer, Christoph Schultheiss, Julia E Vogt, Bernhard Schölkopf, Peter Bühlmann, and
Alexander Marx. On the identifiability and estimation of causal location-scale noise models. In
International Conference on Machine Learning, pages 14316–14332, 2023.
Lee H Keel, SP Bhattacharyya, and Jo W Howze. Robust control with structure perturbations. IEEE
Transactions on Automatic Control, 33(1):68–78, 1988.
Kwangho Kim, Jisu Kim, and Edward H. Kennedy. Causal effects based on distributional distances.
arXiv preprint, 2021. doi: 10.48550/arXiv.1806.02935.
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International
Conference on Learning Representations, 2015.
Klaus-Rudolf Kladny, Julius von Kügelgen, Bernhard Schölkopf, and Michael Muehlebach. Deep
backtracking counterfactuals for causally compliant explanations. arXiv preprint, 2023. doi:
10.48550/arXiv.2310.07665.
15
Samantha Kleinberg and George Hripcsak. A review of causal inference for biomedical informatics.
Journal of Biomedical Informatics, 44(6):1102–1112, 2011. ISSN 1532-0464.
Soheil Kolouri, Yang Zou, and Gustavo K. Rohde. Sliced Wasserstein kernels for probability distri-
butions. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages
5258–5267, 2016.
Soheil Kolouri, Phillip E. Pope, Charles E. Martin, and Gustavo K. Rohde. Sliced Wasserstein
auto-encoders. In International Conference on Learning Representations, 2019.
Tam Le and Truyen Nguyen. Entropy partial transport with tree metrics: Theory and practice. In
Proceedings of The 24th International Conference on Artificial Intelligence and Statistics (AIS-
TATS), volume 130 of Proceedings of Machine Learning Research, pages 3835–3843. PMLR,
2021.
Tam Le, Makoto Yamada, Kenji Fukumizu, and Marco Cuturi. Tree-sliced variants of Wasserstein
distances. In Advances in Neural Information Processing Systems, pages 12283–12294, 2019.
Tam Le, Truyen Nguyen, Dinh Phung, and Viet Anh Nguyen. Sobolev transport: A scalable metric
for probability measures with graph metrics. In International Conference on Artificial Intelli-
gence and Statistics, pages 9844–9868. PMLR, 2022.
Tam Le, Truyen Nguyen, and Kenji Fukumizu. Scalable unbalanced Sobolev transport for measures
on a graph. In International Conference on Artificial Intelligence and Statistics, pages 8521–
8560. PMLR, 2023.
Tam Le, Truyen Nguyen, and Kenji Fukumizu. Optimal transport for measures with noisy tree
metric. In International Conference on Artificial Intelligence and Statistics, 2024.
Chen-Yu Lee, Tanmay Batra, Mohammad Haris Baig, and Daniel Ulbricht. Sliced Wasserstein
discrepancy for unsupervised domain adaptation. In 2019 IEEE/CVF Conference on Computer
Vision and Pattern Recognition (CVPR), pages 10277–10287, 2019.
Antoine Liutkus, Umut Simsekli, Szymon Majewski, Alain Durmus, and Fabian-Robert Stöter.
Sliced-Wasserstein flows: Nonparametric generative modeling via optimal transport and diffu-
sions. In International Conference on Machine Learning, pages 4104–4113, 2019.
Bo Lu and Paul R Rosenbaum. Optimal pair matching with two control groups. Journal of Compu-
tational and Graphical Statistics, 13(2):422–434, 2004.
Diego Martinez-Taboada and Edward Kennedy. Counterfactual density estimation using kernel
Stein discrepancies. In International Conference on Learning Representations, 2024.
Robert J. McCann. Existence and uniqueness of monotone measure-preserving maps. Duke Math-
ematical Journal, 80(2):309 – 323, 1995.
16
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
Valentyn Melnychuk, Dennis Frauen, and Stefan Feuerriegel. Normalizing flows for interventional
density estimation. In International Conference on Machine Learning, pages 24361–24397,
2023.
Jun Morimoto and Kenji Doya. Robust reinforcement learning. Advances in Neural Information
Processing Systems, pages 1061–1067, 2001.
Navid Naderializadeh, Joseph F Comer, Reed Andrews, Heiko Hoffmann, and Soheil Kolouri. Pool-
ing by sliced-Wasserstein embedding. In Advances in Neural Information Processing Systems,
volume 34, pages 3389–3400, 2021.
Trung Nguyen, Quang-Hieu Pham, Tam Le, Tung Pham, Nhat Ho, and Binh-Son Hua. Point-
set distances for learning representations of 3D point clouds. In Proceedings of the IEEE/CVF
International Conference on Computer Vision (ICCV), pages 10478–10487, 2021.
Andreas Olden and Jarle Møen. The triple difference estimator. The Econometrics Journal, 25(3):
531–553, 03 2022. ISSN 1368-4221.
Kishan Panaganti, Zaiyan Xu, Dileep Kalathil, and Mohammad Ghavamzadeh. Robust reinforce-
ment learning using offline data. In Advances in Neural Information Processing Systems, vol-
ume 35, pages 32211–32224, 2022.
François-Pierre Paty and Marco Cuturi. Subspace robust Wasserstein distances. In International
Conference on Machine Learning, pages 5072–5081, 2019.
Judea Pearl. Causal inference in statistics: An overview. Statistics Surveys, 3:96 – 146, 2009.
Gabriel Peyré and Marco Cuturi. Computational optimal transport. Foundations and Trends® in
Machine Learning, 11(5-6):355–607, 2019.
Julien Rabin, Gabriel Peyré, Julie Delon, and Marc Bernot. Wasserstein barycenter and its applica-
tion to texture mixing. In International Conference on Scale Space and Variational Methods in
Computer Vision, pages 435–446, 2011.
Alain Rakotomamonjy and Ralaivola Liva. Differentially private sliced Wasserstein distance. In
International Conference on Machine Learning, pages 8810–8820, 2021.
James M Robins and Andrea Rotnitzky. Inference for semiparametric models: Some questions and
an answer - comments. Statistica Sinica, 11(4):920–936, 2001.
Jonathan Roth and Pedro H. C. Sant’Anna. When is parallel trends sensitive to functional form?
Econometrica, 91(2):737–747, 2023.
Jonathan Roth, Pedro H.C. Sant’Anna, Alyssa Bilinski, and John Poe. What’s trending in difference-
in-differences? A synthesis of the recent econometrics literature. Journal of Econometrics, 235
(2):2218–2244, 2023. ISSN 0304-4076.
Andreas W.M. Sauter, Erman Acar, and Vincent Francois-Lavet. A meta-reinforcement learning
algorithm for causal discovery. In 2nd Conference on Causal Learning and Reasoning, 2023.
17
Bernhard Schölkopf. Causality for machine learning. Probabilistic and Causal Inference: The
Works of Judea Pearl, page 765–804, 2022.
John Snow. The cholera near Golden-square, and at Deptford. Medical Times and Gazette, 9:
321–322, 1854.
Tamar Sofer, David B. Richardson, Elena Colicino, Joel Schwartz, and Eric J. Tchetgen Tchetgen.
On negative outcome control of unobserved confounding as a generalization of difference-in-
differences. Statistical Science, 31(3):348 – 361, 2016.
Masayuki Takayama, Tadahisa Okuda, Thong Pham, Tatsuyoshi Ikenoue, Shingo Fukuma, Shohei
Shimizu, and Akiyoshi Sannai. Integrating large language models in causal discovery: A statis-
tical causal approach. arXiv preprint, 2024. doi: 10.48550/arXiv.2402.01454.
William Torous, Florian Gunsilius, and Philippe Rigollet. An optimal transport approach to causal
inference. arXiv preprint, 2021. doi: 10.48550/ArXiv.2108.05858.
Ruibo Tu, Hedvig Kjellstrom, Kun Zhang, and Cheng Zhang. Optimal transport for causal discov-
ery. In International Conference on Learning Representations, 2022.
Ted Westling and Marco Carone. A unified study of nonparametric inference for monotone func-
tions. The Annals of Statistics, 48(2):1001 – 1024, 2020.
Jonas Bernhard Wildberger, Siyuan Guo, Arnab Bhattacharyya, and Bernhard Schölkopf. On the
interventional Kullback-Leibler divergence. In 2nd Conference on Causal Learning and Reason-
ing, 2023.
Jiqing Wu, Zhiwu Huang, Dinesh Acharya, Wen Li, Janine Thoma, Danda Pani Paudel, and Luc
Van Gool. Sliced Wasserstein generative models. In 2019 IEEE/CVF Conference on Computer
Vision and Pattern Recognition (CVPR), pages 3708–3717, 2019.
Huan Xu, Constantine Caramanis, and Shie Mannor. Robustness and regularization of support
vector machines. Journal of Machine Learning Research, 10(7), 2009.
18
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
1 −0.5
1 0.5 u and h (u) =
The production functions h0 and h1 are h0 (u) = 0.5 1 1 −0.5 1 u for a
length-2 vector u. These functions are co-monotone, and thus the natural drift map f is identifi-
able (Torous et al., 2021).
When h0 (x) = H0 x and h1 (x) = H1 x for Rd×d matrices H0 and H1 , this condition is satisfied
if HT0 H1 is positive semi-definite. We generate one matrix H0 as a d × d matrix where each
off-diagonal entry is uniformly distributed in (0, 1) and the diagonal entries are 1. Note that H0
generated this way is almost surely invertible. We then generate a diagonal matrix B where each
diagonal entry is uniformly distributed in (0, 1). We then let H1 = (H−1 T
0 ) B. This will ensure
T
that H0 H1 is equal to B and thus positive semi-definite. We then fix the pair (H0 , H1 ) and then
generate datasets using this pair.
The latent distributions are as follows. For the control group, each dimension independently
follows a Gamma distribution with shape 2 and scale 3. For the treatment group, each dimension
independently follows a Gamma distribution with shape 3 and scale 2.
A.3. CK data
The dataset is available on https://davidcard.berkeley.edu/data_sets/njmin.
zip. We also include the following covariates into the analysis: HRSOPEN, OPEN, NMGRS,
NREGS, INCTIME, PSODA, and PENTREE, and estimate the 9-dimensional counterfactual dis-
tribution. We process the data by removing samples that contain missing values at any covariates.
The final numbers of samples after this pre-processing are 57 for the control group and 220 for the
treatment group.
19
Figure B.1: Additional results of Sinkhorn for the case of varying the number of samples n while
fixing the dimension d = 2.
Figure B.2: Additional results of Sinkhorn for the case of varying the dimension d while fixing
number of samples n = 5000.
where π is known as the transport plan, and Π(µ, ν) is the set of all probability distributions on the
product space Rd × Rd such that its first and second marginals equal to µ, ν respectively.
Optimal condition for OT with d = 1. If µ, ν are two probability measures supported on R, and
µ is atomless (i.e., µ is absolutely continuous with respect to the Lebesgue measure), then there
exists at least a transport map T such that T♯ µ = ν (Santambrogio, 2015, Lemma 1.27). With
quadratic cost, the transport map will be the derivative of a convex function, i.e., a nondecreasing
map (see (Santambrogio, 2015, Remark 1.23) and (Gangbo, 1999, §2) for further details).
Optimal condition for OT with d > 1. It is also known as Brenier theorem (Brenier, 1991).
Given two probability measures µ, ν supported on the Rd space such that µ is absolutely continuous
with respect to the Lebesgue measure. Then, for all possible map Te : Rd 7→ Rd such that Te♯ µ = ν,
there is an unique Brenier map T which is the gradient of a convex function, and T is the optimal
transport in the following sense: the Kantorich formulation of OT between µ and ν admits a unique
optimal transportation plan π ∗ such that (x, y) ∼ π ∗ if and only if x ∼ µ and y = T (x), µ-a.s.
20
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
For further details, please see (Santambrogio, 2015, Theorem 1.17) and (Brenier, 1991; McCann,
1995).
About the max-min robust OT. Max-sliced Wasserstein (Deshpande et al., 2019) is similar to our
proposed method, i.e., they consider the sphere for the uncertainty set Ω of projections. However,
when Ω is a sphere, the problem becomes non-convex and non-smooth. The entropic regularized
OT (Cuturi, 2013) is a popular approach to reduce the computation of OT into quadratic computation
complexity, but it comes with a trade-off for a dense optimal transport plan.
Some related causal models and methods. Beside the CiC model, another notable extension of
the classical DiD model is provided in Abadie (2005). Some other assumptions to model the natu-
ral drift have been proposed in, for example, Callaway and Li (2019), Roth and Sant’Anna (2023),
and Bonhomme and Sauder (2011). When one can only collect data at a post-treatment time, there
are numerous existing methods for estimating the multivariate counterfactual distribution in a single
time-step setting. These methods employ various approaches, such as kernel smoothing (Robins
and Rotnitzky, 2001; Kim et al., 2021), finite-dimensional modelling with f-divergences or Lp
norms (Westling and Carone, 2020; Kennedy et al., 2021; Melnychuk et al., 2023), and potentially
unnormalized density function estimation with kernel Stein discrepancies (Martinez-Taboada and
Kennedy, 2024). It is intriguing to investigate how these approaches can be modified to take into
account some kind of natural drifts when one can observe the data at more than one time point.
About the use of machine learning methods in causal inference and causal discovery Re-
cently, Tu et al. (2022) provided the first method that uses optimal transport for solving causal
discovery, i.e., the task of uncovering the graph that represents the dependence relationships be-
tween variables. Akbari et al. (2023) generalized the method to higher dimensions and different
noise settings. Takayama et al. (2024) provided a framework to utilize large language models in
causal discovery algorithms. Other machine learning tools and frameworks have also been used
in causal inference/causal discovery, such as neural networks (Hwang et al., 2023; Ashman et al.,
2023; Immer et al., 2023; Kladny et al., 2023), the Kullback-Leibler divergence (Wildberger et al.,
2023), and reinforcement learning and meta learning (Sauter et al., 2023).
21
Table E.1: Results for the case of Gaussian mixtures in Fig. 4. The mean and standard deviation
over 10 repetitions are reported.
Table E.2: Results for the case of Gamma distributions in Fig. 4. The mean and standard deviation
over 10 repetitions are reported.
Table E.3: Results for Fig. 5, i.e., when d is varying. The mean and standard deviation over 10
repetitions are reported. This experiment shows that while our method and the PCA-
based method give comparable results, our method is much faster when the dimension
is high.
Dimension d 2 10 50 100
Running time of PCA-based method 27.2 (10.77) 23.82 (3.38) 111.94 (9.02) 188.24 (18.84)
Running time of proposed method 7.83 (0.36) 8.19 (0.36) 8.49 (0.83) 10.24 (0.73)
OT (·, µ
g T ∗ ) of PCA-based method 0.46 (0.16) 31.95 (2.48) 341.04 (8.70) 1394.59 (73.12)
1
OT (·, µ
g T ∗ ) of proposed method 0.65 (0.39) 33.72 (4.36) 362.7 (14.43) 1549.3 (287.29)
1
These results show that it is sufficing to use random directions as in our robust OT which gives
comparable results, but lower computational cost (e.g., finding the first principal component for
high-dimensional spaces increases the computational cost, but its benefits are marginal.)
• compute the push-forward for input measures on each direction in the uncertainty set.
Specifically, for each direction ω in the uncertainty set, we calculate the inner product ⟨x, ω⟩
for all points x in the empirical distribution of the control group at time t = 0, 1.
22
S CALABLE C OUNTERFACTUAL D ISTRIBUTION E STIMATION IN M ULTIVARIATE C AUSAL M ODELS
• leverage 1d-OT as a surrogate on the 1d latent space for OT. For each direction ω in
the uncertainty set, we solve the 1D OT problem with push-forward measure on ω of the
outcome distribution in control group at t = 0 as source and push-forward measure on ω of
the outcome distribution in control group at t = 1 as target. Thus for each direction ω, we
will obtain a mapping and an OT distance.
• find the direction which maximizes the OT on the 1d latent space. We choose the direction
ω ∗ that gives the largest value of the OT distances calculated above.
23