Causal Mediation Analysis with Hidden Confounders

Lu Cheng, Ruocheng Guo, Huan Liu

TL;DR

Researchers have developed CMAVAE, a deep learning framework that performs causal mediation analysis even when important variables are hidden. By leveraging "proxy variables" and variational auto-encoders, the model uncovers latent confounders to accurately separate a treatment's direct impact from its indirect effects through a mediator.

What Problem Does This Paper Address?

In causal inference, we often want to know how a treatment works. For example, does a job training program increase income directly by teaching skills, or indirectly by boosting a participant's confidence (the mediator)? This is Causal Mediation Analysis (CMA).

The "gold standard" for CMA usually requires sequential ignorability—the assumption that we have measured every single variable that could possibly influence the treatment, mediator, and outcome. In the real world, this is almost never true. There are always "hidden confounders" (HC), like a person's innate motivation or social connections, that skew the data. If these aren't accounted for, our estimates of direct and indirect effects will be biased and potentially flat-out wrong.

Methods

The authors propose CMAVAE (Causal Mediation Analysis Variational Auto-Encoder). Instead of pretending hidden confounders don't exist, they assume that we can see "proxies"—observed variables that are noisy reflections of the hidden ones (e.g., using a person's zip code or previous job type as a proxy for socioeconomic status).

Key technical features include:

  • Deep Latent-Variable Model: It uses a Variational Auto-Encoder (VAE) to map observed proxies into a latent space that represents the hidden confounders ($Z$).
  • Simultaneous Inference: The model is designed to simultaneously uncover the latent variables and estimate the causal effects across different pathways.
  • Probabilistic Architecture: An encoder maps the observables ($X, M, T, Y$) to the latent $Z$, while a decoder reconstructs the observables from $Z$, ensuring the latent representation is faithful to the underlying causal structure.
  • Auxiliary Predictors: To handle new samples where the mediator or outcome isn't known yet, the model includes auxiliary neural networks to predict treatment assignment, mediators, and outcomes based on the input features.

Datasets

The paper evaluates the model using three distinct setups:

  1. Synthetic Datasets: Created with a known Data Generating Process (DGP) where the authors could precisely control the influence of hidden confounders and the level of noise in proxy variables.
  2. JOBS II (Semi-Synthetic): Based on a real-world study of a job training intervention. The authors modified the data to create "ground truth" effects, allowing them to measure exactly how much their model reduced estimation error compared to traditional methods.
  3. UCI Adult Dataset: Used for a case study in Causal Fairness. Here, the "treatment" is gender, the "mediator" is occupation, and the "outcome" is income. This tests the model's ability to detect direct vs. indirect discrimination.

Key Insights and Ideas

  • Proxies are Power: You don't need to measure a hidden confounder perfectly to account for it. As long as you have several "noisy" views of that feature, a deep latent model can reconstruct a "cleaner" version of the confounder.
  • Robustness to Noise: CMAVAE proved remarkably robust. Even when the proxy variables were 50% "noise" (providing almost no direct info on the confounder), the model still outperformed traditional statistical baselines.
  • Causal vs. Statistical Fairness: The paper highlights a crucial distinction. Statistical fairness (like demographic parity) only looks at correlations. Causal fairness, powered by CMA, allows us to see why a disparity exists—distinguishing between direct bias and indirect paths that might be legally or ethically different.

Key Results

  • Significant Error Reduction: On the JOBS II dataset, CMAVAE reduced the error in estimating the Average Causal Direct Effect (ACDE) and Total Effect (ATE) by up to 87.5% and 40.0%, respectively, compared to the best-performing baselines (like LSEM and IPW).
  • Scalability: Unlike some traditional methods that struggle with high-dimensional data, CMAVAE’s performance and variance improved as the sample size increased, making it a "big-data friendly" causal tool.
  • Fairness Discovery: In the Adult dataset analysis, CMAVAE successfully partitioned gender-based income gaps into direct discrimination and indirect effects through occupation, providing a more nuanced view than simple logistic regression.

Limitations and Future Work

  • Proxy Dependency: The method relies on the existence of proxy variables. If the observed covariates have zero correlation with the hidden confounders, the model cannot recover the latent state.
  • Trade-offs in Estimation: The authors noted a potential trade-off between accurately estimating the direct effect (ACDE) and the indirect effect (ACME). Future work involves designing weighting strategies to balance these two tasks.
  • Complex Mediators: This work primarily focused on single mediators. The authors aim to extend the framework to settings with multiple, potentially interacting mediators.

Summary updated

BibTeX
@inproceedings{cheng2022causal,
  author = {Lu Cheng and Ruocheng Guo and Huan Liu},
  title = {{Causal Mediation Analysis with Hidden Confounders}},
  booktitle = {WSDM},
  year = {2022},
  doi = {10.1145/3488560.3498407},
}
Figure