Skip to main content
QUICK REVIEW

[Paper Review] CausalVAE: Structured Causal Disentanglement in Variational Autoencoder

Mengyue Yang, Furui Liu|arXiv (Cornell University)|Apr 18, 2020
Topic ModelingComputer Science14 references15 citations
TL;DR

CausalVAE proposes a variational autoencoder framework with a Structural Causal Model (SCM) layer to learn disentangled, causally structured representations from data, enabling accurate causal graph identification and counterfactual generation via do-operations. The model achieves state-of-the-art disentanglement by enforcing DAG structure and leveraging weak supervision, with empirical validation on synthetic and CelebA datasets showing high semantic interpretability and causal fidelity.

ABSTRACT

Learning disentanglement aims at finding a low dimensional representation which consists of multiple explanatory and generative factors of the observational data. The framework of variational autoencoder (VAE) is commonly used to disentangle independent factors from observations. However, in real scenarios, factors with semantics are not necessarily independent. Instead, there might be an underlying causal structure which renders these factors dependent. We thus propose a new VAE based framework named CausalVAE, which includes a Causal Layer to transform independent exogenous factors into causal endogenous ones that correspond to causally related concepts in data. We further analyze the model identifiabitily, showing that the proposed model learned from observations recovers the true one up to a certain degree by providing supervision signals (e.g. feature labels). Experiments are conducted on various datasets, including synthetic and real word benchmark CelebA. Results show that the causal representations learned by CausalVAE are semantically interpretable, and their causal relationship as a Directed Acyclic Graph (DAG) is identified with good accuracy. Furthermore, we demonstrate that the proposed CausalVAE model is able to generate counterfactual data through "do-operation" to the causal factors.

Motivation & Objective

  • To address the limitation of existing disentangled representation learning methods that assume independent factors, which often fails in real-world scenarios with causal dependencies.
  • To develop a deep generative model that learns causally related, semantically meaningful factors from observational data without requiring prior causal structure.
  • To enable counterfactual generation through 'do-operation' on learned causal factors, supporting causal reasoning and 'what-if' analysis.
  • To provide theoretical justification for model identifiability under weak supervision, showing recovery of true causal structure up to a degree.
  • To demonstrate the effectiveness of the framework on both synthetic data and real-world benchmarks like CelebA, with quantitative and qualitative evaluation.

Proposed method

  • Introduces a novel Causal Layer (SCM layer) that transforms independent exogenous latent factors into endogenous, causally related representations via a learned DAG structure.
  • Employs a modified VAE objective with an additional acyclicity constraint on the causal graph to ensure the learned structure is a valid Directed Acyclic Graph (DAG).
  • Uses an augmented Lagrangian method to optimize the acyclicity constraint, enabling differentiable training of the causal graph.
  • Leverages weak supervision via ground-truth concept labels to guide disentanglement and improve identifiability of causal factors.
  • Applies 'do-operation' to intervened latent codes by manipulating both input and output nodes of the SCM layer, enabling counterfactual image generation.
  • Employs a pre-training phase to initialize the causal adjacency matrix, improving convergence and accuracy of the learned causal graph.

Experimental results

Research questions

  • RQ1Can a VAE-based framework learn disentangled representations that reflect underlying causal relationships rather than assuming statistical independence?
  • RQ2Does the proposed CausalVAE model achieve accurate identification of the true causal structure (DAG) from observational data?
  • RQ3Can the learned causal representations support meaningful counterfactual generation through do-operations?
  • RQ4How does CausalVAE compare to existing disentangled VAEs in terms of semantic interpretability and alignment with ground-truth concept labels?
  • RQ5To what extent does weak supervision improve the identifiability and fidelity of the learned causal representations?

Key findings

  • CausalVAE successfully learns a causal DAG that closely matches the true underlying structure, with the adjacency matrix converging rapidly during training.
  • The model achieves the highest mutual information (MIC/TIC) between learned representations and ground-truth concept labels on CelebA, outperforming all baselines.
  • Intervention experiments show that manipulating cause factors (e.g., smile) correctly alters their effects (e.g., mouth open), while manipulating effects has no influence on causes, confirming causal structure fidelity.
  • Counterfactual images generated via do-operations are semantically coherent and align with physical laws, such as shadow length changing correctly with pendulum angle.
  • On the Pendulum dataset, CausalVAE maintains consistent manipulation effects across images, while ConditionVAE fails to propagate changes meaningfully, demonstrating superior modularity and causal reasoning.
  • Theoretical analysis confirms that the model is identifiable up to a certain degree under weak supervision, justifying the recovery of true causal factors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.