Introduction
Estimating causal effects from observational data is a fundamental challenge in fields ranging from medicine to economics. Unlike Randomized Controlled Trials (RCTs), observational data is often confounded by hidden variables that influence both treatment and outcome. Furthermore, "post-treatment" variables—downstream effects of a treatment that subsequently influence the outcome—can introduce significant bias if not modeled correctly. This paper introduces CPTiVAE (Causal Post-Treatment identifiable VAE), a framework designed to simultaneously account for unobserved confounders and post-treatment variables using identifiable Variational AutoEncoders.
The Challenge of Post-Treatment Bias
In causal inference, adjusting for more variables is not always beneficial. A common pitfall is Post-Treatment Bias, which occurs when a variable affected by the treatment (e.g., job skills acquired during education) is treated as a pre-treatment covariate. Mathematically, adjusting for such variables "blocks" the causal path the researcher intends to measure, leading to incorrect estimates.
While existing deep learning models like CEVAE have addressed latent confounders, they often fail to distinguish them from post-treatment effects. CPTiVAE bridges this gap by explicitly modeling the structural relationships between treatment ($T$), latent confounders ($C$), latent post-treatment variables ($M$), and the outcome ($Y$).
The CPTiVAE Framework
The core innovation of CPTiVAE lies in splitting the latent space into two distinct, theoretically grounded components:
- Latent Confounders ($C$): These are learned from proxy variables ($X_C$) using a standard VAE architecture.
- Latent Post-Treatment Variables ($M$): These are learned from proxy variables ($X_M$) using an identifiable VAE (iVAE).
Standard VAEs often learn "unidentifiable" representations, meaning multiple latent configurations could explain the same observed data. By conditioning the latent post-treatment prior on the treatment variable ($T$), the authors prove that the representation of $M$ becomes identifiable (unique up to a linear transformation). This ensures the model recovers the true underlying structure of the data rather than simply overfitting noise. The model is trained by maximizing a modified Evidence Lower Bound (ELBO) that incorporates auxiliary predictors to ensure the latents remain relevant for predicting $T$ and $Y$.
Experimental Evaluation
The researchers evaluated CPTiVAE against ten state-of-the-art baselines, including GANITE, CEVAE, and TEDVAE, across synthetic, semi-synthetic (IHDP), and real-world (Adult) datasets.
Key Results
- Superior Accuracy: On synthetic data, CPTiVAE achieved an Absolute Error (AE) for the Average Treatment Effect (ATE) of 0.70, significantly outperforming CEVAE (1.59) and TEDVAE (2.61).
- Robustness: The model demonstrated consistent performance across varying sample sizes (2K to 10K) and showed low sensitivity to hyperparameters balancing the loss function components.
- Real-World Application: In a case study using the Adult census dataset to estimate the effect of education on income, CPTiVAE estimated a positive causal effect (ATE = 9.245). In contrast, models that ignored post-treatment variables produced heavily biased estimates as low as 0.053, effectively "erasing" the real-world causal signal.
Conclusion
CPTiVAE provides a theoretically robust approach to causal inference by leveraging the identifiability of iVAEs to disentangle confounding from post-treatment effects. By explicitly modeling the $T \to M \to Y$ path, it avoids the common pitfalls of post-treatment bias that plague simpler models. Future work may extend this framework to more complex directed acyclic graphs (DAGs) where confounders and post-treatment variables share more intricate dependencies.
Summary updated