NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Causal Inference with Conditional Instruments Using Deep Generative Models

Debo Cheng, Ziqi Xu, Jiuyong Li, Lin Liu, Jixue Liu, Thuc Duy Le

Introduction

Estimating the causal effect of a treatment (e.g., a new drug) on an outcome (e.g., recovery rate) is notoriously difficult when latent confounders exist—hidden variables that influence both the treatment and the outcome.

The gold standard for handling this is the Instrumental Variable (IV) approach. A valid instrument is a variable that affects the treatment but has no direct effect on the outcome except through that treatment. However, "perfect" instruments are rare in the real world. Conditional Instrumental Variables (CIVs) are more practical; they only need to act like an instrument after you control for a specific set of other variables.

The challenge lies in the fact that in complex datasets, it is mathematically impossible to distinguish a CIV from its conditioning set using standard statistical tests. Most existing methods require researchers to identify the instrument beforehand based on domain expertise. This paper introduces CIV.VAE, a framework designed to discover these CIVs and their conditioning sets directly from observational data.

Methods: The CIV.VAE Framework

CIV.VAE leverages Variational Autoencoders (VAEs) to perform causal representation learning. Instead of selecting a single observed variable as an instrument, the model learns two disjoint latent representations from the measured pretreatment variables ($X$):

  1. $Z_T$: Captures the "instrumental" information that influences the treatment $T$.
  2. $Z_C$: Captures the information of the "conditioning set" that blocks spurious paths between the instrument and the outcome.
The architecture of CIV.VAE, featuring (a) the Inference Network for mapping observed variables to latent space and (b) the Generative Network for reconstructing variables and predicting outcomes.

The model uses an inference network (encoders) to map observed variables to these latent spaces and a generative network (decoders) to reconstruct the original variables, the treatment, and the outcome. To ensure $Z_T$ and $Z_C$ contain the correct causal information, the authors incorporate auxiliary loss terms that force the model to predict the treatment $T$ from both $Z_T$ and $Z_C$, and the outcome $Y$ from $Z_C$ and $T$. Theoretically, the authors prove that if the model successfully learns these representations, $Z_T$ is guaranteed to be a valid CIV when conditioned on $Z_C$.

Experimental Evaluation

The model was evaluated on both synthetic and real-world benchmarks, including the Schoolingreturns dataset (education's effect on wages), the 401(k) dataset (savings participation), and the Sachs protein signaling network.

On synthetic data, where the CIV and conditioning set are intentionally indistinguishable by basic statistics, CIV.VAE demonstrated significant performance gains over traditional and modern baselines.

Comparison of Absolute Error (ACE) across different methods and sample sizes. CIV.VAE consistently achieves the lowest error as sample size increases.

As shown in the results table, at 20k samples, CIV.VAE achieved an error of 0.22, significantly lower than standard IV methods like TSLS (11.06) or other VAE-based methods like TEDVAE (1.70). In real-world tests, CIV.VAE was the only method that consistently produced causal effect estimates within the 95% confidence intervals of established empirical results across all datasets.

Key Insights and Discussion

  • Representation vs. Selection: Unlike most IV methods that try to select a variable, CIV.VAE learns a representation. This is more robust because instrumental signals are often distributed across multiple observed features.
  • Breaking Indistinguishability: While the instrument and conditioning set may look similar statistically, they play different roles in the generative process. By enforcing a specific bottleneck structure in the VAE, the model successfully separates these roles.
  • Relaxed Assumptions: CIV.VAE does not require the "unconfoundedness" assumption or a pre-defined instrument; it only assumes that some CIV exists within the measured variables.

Limitations and Future Work

While powerful, the model performs best with larger datasets (typically 4k+ samples). At very small sample sizes, simpler models occasionally show lower variance. Additionally, the model relies on the assumption that the measured variables actually contain a CIV. Future work may involve incorporating "identifiable VAE" (iVAE) frameworks to further ensure that latent variables are perfectly recovered from observed data.

Summary updated

BibTeX
@inproceedings{cheng2023causal,
  author = {Debo Cheng and Ziqi Xu and Jiuyong Li and Lin Liu and Jixue Liu and Thuc Duy Le},
  title = {{Causal Inference with Conditional Instruments Using Deep Generative Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25869},
}
Figure