VACA: Designing Variational Graph Autoencoders for Causal Queries

Pablo Sánchez-Martín, Miriam Rateike, Isabel Valera

Abstract

In this paper, we introduce VACA, a novel class of variational graph autoencoders for causal inference in the absence of hidden confounders, when only observational data and the causal graph are available. Without making any parametric assumptions, VACA mimics the necessary properties of a Structural Causal Model (SCM) to provide a flexible and practical framework for approximating interventions (do-operator) and abduction-action-prediction steps. As a result, and as shown by our empirical results, VACA accurately approximates the interventional and counterfactual distributions on diverse SCMs. Finally, we apply VACA to evaluate counterfactual fairness in fair classification problems, as well as to learn fair classifiers without compromising performance.

Introduction

Causal inference—answering questions like "What happens if I change X?" (intervention) or "What would have happened if X had been different?" (counterfactual)—usually requires a Structural Causal Model (SCM). In the real world, the exact mathematical equations governing these models are rarely known. Traditional approaches often rely on rigid parametric assumptions (e.g., linearity or Gaussian noise), which can lead to biased estimates if the assumptions are violated. While deep generative models like Variational Autoencoders (VAEs) offer flexibility, standard versions lack an inherent understanding of causal graphs, often failing to propagate effects correctly through a chain of variables.

Methodology: The VACA Framework

The authors introduce VACA (Variational Causal Graph Autoencoder), which leverages the inductive bias of Graph Neural Networks (GNNs) to mimic the behavior of an SCM. By structuring message-passing along the edges of a known causal graph, VACA effectively learns the underlying structural equations from observational data.

VACA architecture for observational, interventional, and counterfactual inference.

VACA is designed to perform Pearl’s three-step causal reasoning process:

  1. Abduction: Inferring the latent noise (exogenous variables) from observed data.
  2. Action: Modifying the graph structure to reflect an intervention (the do-operator).
  3. Prediction: Generating the new outcome distribution based on the modified graph and inferred noise.

Design Conditions for Causal Validity

A key contribution of this work is the definition of two "Design Conditions" necessary for a VGAE to be causally consistent:

  • The Decoder Depth Rule: To correctly model how an intervention on one variable affects distant descendants, the GNN decoder must have a depth of at least $\gamma - 1$, where $\gamma$ is the length of the longest path in the causal graph. This ensures that "messages" can propagate far enough to reflect indirect causal effects.
  • The Encoder Simplicity Rule: To satisfy the abduction step, the GNN encoder must have no hidden layers. This ensures that the inferred latent variables for a specific node depend only on that node and its immediate parents, preventing "information leakage" from descendants that would violate causal logic.
Comparison of message passing in the original graph versus an intervened graph.

Empirical Evaluation

The researchers evaluated VACA against state-of-the-art baselines like MultiCVAE and CAREFL using synthetic SCMs (collider graphs), simulated benchmarks (Loan and Adult datasets), and real-world data (German Credit dataset).

Key Results

  • Distributional Accuracy: VACA consistently outperformed competitors in estimating interventional and counterfactual distributions. It notably excelled at capturing the entire distribution (variance and spread) rather than just the average treatment effect.
  • Counterfactual Fairness: In the German Credit dataset application, VACA was used to extract latent features independent of protected attributes. The resulting "Fair-Z" classifier achieved high performance (F1-score ~70.8) while maintaining near-zero counterfactual unfairness, significantly outperforming "unaware" models.

Conclusion and Future Work

VACA demonstrates that GNNs are natural engines for causal inference when structured correctly. By adhering to specific architectural constraints, VACA provides a non-parametric way to estimate complex causal effects.

Future work aims to address current limitations, such as the assumption of causal sufficiency (no hidden confounders) and the requirement of a pre-defined causal graph. Integrating VACA with causal discovery algorithms to learn the graph structure from data remains a promising avenue for research.

Summary updated

BibTeX
@inproceedings{sanchezmartin2022vaca,
  author = {Pablo Sánchez-Martín and Miriam Rateike and Isabel Valera},
  title = {{VACA: Designing Variational Graph Autoencoders for Causal Queries}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=j0Zek1PAdg1},
}
Figure