Disentangled Representation Learning for Causal Inference With Instruments

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

TL;DR

This paper introduces DIV.VAE, a novel framework that uses Variational AutoEncoders (VAEs) to automatically "discover" instrumental variables (IVs) hidden within observational data. By disentangling latent representations into IV-related and confounder-related components, the method enables unbiased causal effect estimation even when researchers don't know which specific variables are valid instruments.

What Problem Does This Paper Address?

Estimating the causal effect of a treatment (like a new drug) on an outcome (like patient recovery) is notoriously difficult when "latent confounders" exist—unmeasured factors that influence both the treatment and the outcome.

The gold standard for solving 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, finding a valid IV usually requires deep domain expertise, and in many datasets, a "pure" IV might not exist. Instead, we might only have Surrogate IVs (SIVs)—proxies that are statistically "messy" and hard to distinguish from other covariates.

The authors tackle a specific gap: How can we estimate causal effects when we suspect an IV proxy exists in our data, but we don't know which variable it is?

Methods

The authors propose DIV.VAE (Disentangled IV-based VAE), which treats the search for an instrument as a representation learning problem.

  1. Disentangled Representation: The model takes measured pretreatment variables ($X$) and encodes them into a latent space $\Phi$. Crucially, it forces this space to split into two disjoint sets: $Z$ (the latent IV representation) and $C$ (the latent confounding representation).
  2. Orthogonality Promoting Regularization (OPR): To ensure $Z$ and $C$ are truly distinct and independent (as required by IV theory), the authors use a specific loss term based on cosine similarity to minimize the association between the two latent sets.
  3. Auxiliary Predictors: The architecture includes two "heads" that predict the treatment ($W$) and the outcome ($Y$). These guide the VAE to ensure $Z$ captures the information relevant to the treatment (the "relevance condition") while $C$ captures the rest.
  4. Causal Estimation: Once the latent IV ($Z$) is learned, the authors plug it into a downstream estimator called Ortho.IV to calculate the final causal effect ($\beta_{wy}$).

Datasets

The authors evaluated DIV.VAE across three distinct types of data:

  • Synthetic Data: Generated from complex Directed Acyclic Graphs (DAGs) with both linear and non-linear outcome functions to test the model's robustness against ground-truth causal effects.
  • Real-World Benchmarks:
    • Vitamin D (VitD): A study on the effect of Vitamin D on mortality.
  • Schooling Returns: A classic economics dataset looking at how education affects wages.
  • Sachs: A biological dataset involving protein-signaling networks where no "official" IV is nominated.
  • Image Data: A creative synthetic setup using MNIST digits. Here, the "tens" digit of a two-digit number acts as the IV, and the "ones" digit acts as a confounder, testing if the model can extract causal signals from raw pixels.

Key Insights and Ideas

  • From Selection to Extraction: Traditional methods try to select which column in a spreadsheet is the IV. DIV.VAE instead extracts the "IV-ness" into a latent variable, which can be a combination of multiple noisy proxies.
  • The Power of Disentanglement: By forcing the latent space to be orthogonal, the model effectively "filters out" the confounding noise that usually breaks IV-based estimators.
  • Handling Non-linearity: Unlike traditional Two-Stage Least Squares (TSLS) which struggles with non-linear relationships, the VAE-based approach naturally handles complex, high-dimensional data (like images or high-dimensional tabular data).
  • Weakening Assumptions: The method only requires that at least one SIV exists somewhere in the data, a much lighter requirement than needing a known, pure instrument.

Key Results

  • Superior Accuracy: In synthetic tests, DIV.VAE consistently showed lower bias and variance compared to state-of-the-art baselines like DeepIV and FIVR, especially as sample sizes increased.
  • Robustness to Dimension: The model maintained performance even as the number of measured variables increased to 64, where traditional "Tetrad-based" discovery methods often fail.
  • Real-World Consistency: On the VitD and Schooling datasets, DIV.VAE produced estimates that fell within the 95% confidence intervals of established reference effects.
  • Image Success: In the MNIST experiment, DIV.VAE's performance closely matched an "Oracle" model (which had access to the true labels), proving it can learn valid instruments from unstructured image data.

Limitations and Future Work

The authors acknowledge a fundamental challenge in VAE research: unidentifiability. There is no theoretical guarantee that a VAE will always recover the exact "true" latent IV; it relies on the presence of SIVs and the specific architecture to guide it.

Future Directions: * Exploring "balanced representation learning" to further improve the stability of the latent space. * Applying the framework to Recommendation Systems (where user features often act as noisy proxies for intent) and Natural Language Processing. * Integrating "proximal causal learning" to handle cases where even the proxies are extremely weak.

Summary updated

BibTeX
@article{cheng2025disentangled,
  author = {Debo Cheng and Jiuyong Li and Lin Liu and Ziqi Xu and Weijia Zhang and Jixue Liu and Thuc Duy Le},
  title = {{Disentangled Representation Learning for Causal Inference With Instruments}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  url = {https://openreview.net/forum?id=5XIeaDLTqZ},
}
Figure