Reducing Balancing Error for Causal Inference via Optimal Transport

Yuguang Yan, Hao Zhou, Zeqin Yang, Weilin Chen, Ruichu Cai, Zhifeng HaoICML 2024

Introduction

Estimating causal effects from observational data is notoriously difficult due to confounding bias. In observational studies—unlike randomized controlled trials (RCTs)—the treated and control groups often have fundamentally different underlying characteristics (covariates). For instance, a new medical treatment might be disproportionately prescribed to younger patients, skewing the observed outcomes.

To estimate the true Average Treatment Effect (ATE), researchers must "balance" these two distributions. Traditional methods achieve this by reweighting samples (e.g., Inverse Probability Weighting) or by learning new representations to match the distributions using metrics like Integral Probability Metrics (IPMs). However, choosing the appropriate metric to measure and minimize this distribution shift remains an open challenge, as standard metrics often fail to capture complex distributions or rely on hard-to-tune function spaces. This paper introduces a novel Optimal Transport (OT) framework that minimizes confounding bias by simultaneously learning sample weights and a representation space guided by factual outcomes.

The OICL Framework

The authors propose OICL (Optimal transport for causal Inference by Cost Learning). They mathematically define a generic "balancing error" and prove it is bounded by the Wasserstein discrepancy derived from Optimal Transport theory.

Instead of merely using standard OT to measure the distance between the treated and control groups, OICL builds a unified learning model that tackles two tasks simultaneously:

  1. Learnable Marginals (Reweighting): Instead of relying on fixed distributions, the marginals in the OT problem are learned. These learned marginals act as the balancing sample weights for the treated and control groups.
  2. Factual Outcome-Guided Cost Function (Representation Learning): In standard OT, the "cost" of moving mass between points is usually a fixed Euclidean distance. OICL parameterizes the cost function using a learnable projection matrix. Crucially, this learning process is guided by factual outcomes. If two samples have similar observed outcomes, the model forces their transport cost (distance in the projected space) to be small.

The framework also applies entropic regularization to ensure the transport plans are not overly sparse. The resulting optimization problem is solved using an alternating approach, utilizing closed-form eigenvalue solutions for the projection matrix and projected mirror descent for the transport plans.

Experimental Setup

The authors evaluated OICL on a mix of synthetic and real-world benchmarks:

  • Synthetic Data: Generated using Gaussian and Non-Gaussian (mixture) distributions with varying levels of confounding bias.
  • LaLonde: A classic causal inference benchmark combining RCT data with observational data to evaluate the effect of job training programs on future income.
  • Twins: Data on twin births in the USA used to study the effect of birth weight on one-year mortality.
  • IHDP (Infant Health and Development Program): Evaluates the effect of specialist home visits on infants' future cognitive test scores.

Results and Key Insights

OICL elegantly bridges two dominant causal inference paradigms—reweighting and representation learning—by treating sample weights as OT marginals and representations as the OT cost function. A major theoretical contribution is the proof that minimizing their specific Wasserstein discrepancy directly minimizes the upper bound of the confounding balancing error, alongside proofs of statistical consistency and sample efficiency.

Empirically, OICL consistently achieved state-of-the-art performance:

  • Synthetic Data: OICL achieved the lowest Mean Absolute Error (MAE) across all simulated confounding bias levels. On Gaussian data ($\mu_c=0.6$), OICL hit an MAE of 0.0272, outperforming the next best baseline (0.0360).
  • Real-World Data: OICL outperformed a wide array of baselines, including complex neural network-based IPM methods. On the IHDP dataset, it achieved an MAE of 0.0698. On the notoriously difficult LaLonde dataset, it achieved the lowest error (146.3 vs. the next best 148.2) by effectively handling complex, real-world distribution shifts.
Visualizing the alignment of treated and control groups in the learned representation space.

Beyond quantitative metrics, visualizations of the learned representation space provide compelling proof of the method's efficacy. As shown above, the treated and control groups become highly overlapped after projection, visually confirming the elimination of confounding bias.

Limitations and Future Work

While highly effective, the OICL framework does have limitations. The subproblem for updating the projection matrix involves a Stiefel manifold constraint to ensure orthogonal subspaces. This makes the optimization non-convex, meaning it could theoretically get stuck in local optima, even though the alternating updates use closed-form steps.

For future work, the authors note that while the current framework focuses on the Average Treatment Effect (ATE) across the whole population, it can be extended to estimate the Average Treatment Effect on the Treated (ATT) and Individual Treatment Effects (ITE). Applying this outcome-guided OT approach to high-dimensional unstructured data, such as images or text, represents a highly promising next step for causal inference research.

Summary updated

BibTeX
@inproceedings{yan2024reducing,
  author = {Yuguang Yan and Hao Zhou and Zeqin Yang and Weilin Chen and Ruichu Cai and Zhifeng Hao},
  title = {{Reducing Balancing Error for Causal Inference via Optimal Transport}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=GktjBAGgo4},
}
Figure