Abstract
Unsupervised representation learning typically assumes that latent factors of variation are statistically independent. However, real-world factors often exhibit complex causal dependencies. We present COVAE (Causally Ordered Variational Autoencoder), a framework designed to identify the underlying causal structure of latent variables from purely observational data. By leveraging the statistical asymmetries inherent in Additive Noise Models (ANM) and introducing a novel Hessian-based causal ordering loss, COVAE recovers identifiable latent representations and their topological order without requiring supervision, weak labels, or interventional data.
Introduction
In deep learning, the goal of unsupervised representation learning is to extract the core "factors of variation" from high-dimensional, unlabeled data. Traditional approaches, such as $\beta$-VAE, rely on the assumption that these factors are statistically independent. While this simplifies the modeling process, it often fails to capture the reality of physical systems where factors are causally linked—for instance, in medical imaging where a specific pathology might cause multiple anatomical changes.
This challenge falls under Causal Representation Learning (CRL). The primary hurdle in CRL is identifiability: ensuring the model recovers the true underlying factors rather than an arbitrary transformation. Most existing identifiable CRL methods require "extra" information, such as time-series data or interventions. COVAE addresses this by learning causal structures from observational data alone.
The COVAE Framework
COVAE bridges the gap between standard Variational Autoencoders and causal discovery through three main technical pillars:
1. Latent Additive Noise Models (ANM)
Instead of independent latents, COVAE assumes factors follow an ANM, where each variable is a function of its parents plus some independent noise ($z_i = f_i(pa(z_i)) + \epsilon_i$). This assumption is critical because ANMs exhibit statistical asymmetries that allow for the identification of causal directionality from observational data.
2. Causal Ordering Loss ($\mathcal{L}_{order}$)
The core innovation of COVAE is a loss function based on the "curvature" of the latent distribution. In an ANM, the variance of the second-order derivatives (the Hessian) of the log-likelihood is minimized for "leaf nodes" (variables that are effects rather than causes). By minimizing this variance across the latent space, the model is forced to discover a valid topological causal ordering.
3. Injective Decoder Constraints
To ensure the mapping from the latent space to the observation space is one-to-one, specific architectural constraints are applied to the decoder. These include monotonicity and full-rank weight matrices, which are essential for theoretical identifiability.
Experimental Evaluation
The authors evaluated COVAE against standard VAEs and MFC-VAE (which uses a Gaussian Mixture Model prior but lacks causal ordering) across several datasets:
- Simulation Data (SYN-2, 15, 50): Synthetic graphs with varying numbers of latent nodes.
- MorphoMNIST Variants: A modified MNIST dataset where factors like digit thickness, intensity, and slant are causally linked.
- Causal3DIdent: A complex dataset of 3D objects with causally related physical properties.
Key Results
- Causal Order Divergence (COD): COVAE consistently achieved near-zero COD, indicating it successfully identified the correct causal sequence of variables, whereas baseline models failed to find meaningful orders.
- Mean Correlation Coefficient (MCC): COVAE significantly outperformed baselines in recovering the true latent factors, particularly on high-dimensional synthetic data (SYN-50) and complex image datasets.
- Stability: The model demonstrated higher stability across different random seeds (MCC-R), suggesting that the causal prior provides a more reliable training signal than independence-based priors.
Conclusion and Future Work
COVAE demonstrates that it is possible to recover identifiable causal representations from purely observational data by leveraging the properties of the Hessian in the latent space. This moves unsupervised learning closer to capturing the interconnected nature of the real world. Future research will focus on scaling these methods to handle indirect causal relationships (e.g., $A \to B \to \text{Image}$) and improving the computational efficiency of the Hessian estimation process.
Summary updated