A Causal Ordering Prior for Unsupervised Representation Learning

Avinash Kori, Pedro Sanchez, Konstantinos Vilouras, Ben Glocker, Sotirios A. Tsaftaris · Submission to ICLR 2024 · Rejected

TL;DR

Current causal representation learning (CRL) methods typically rely on interventional data, counterfactual pairs, or auxiliary labels to guarantee identifiability. COVAE (Causally Ordered Variational Autoencoder) achieves causal representation learning from purely observational, unsupervised data by assuming a latent Additive Noise Model (ANM) and penalizing the variance of the latent score's Hessian. This enforces a topological causal ordering directly in the latent space and proves identifiability up to a narrow, block-diagonal permutation equivalence class ($\sim_\tau$).

What Problem Does This Paper Address?

Standard unsupervised representation learning frameworks (like $\beta$-VAE) assume that latent factors of variation are statistically independent. In real-world data, however, underlying factors are often causally entangled (e.g., digit stroke thickness directly affects overall image intensity).

While CRL seeks to uncover these causal graphs, learning identifiable representations from purely observational, independent and identically distributed (i.i.d.) data is notoriously difficult without external supervision or non-linear mixing constraints. Existing identifiable CRL frameworks circumvent this by requiring interventional data, counterfactual observations, or observed auxiliary context. This paper asks: Can we learn identifiable, causally structured latent representations from purely observational data in an unsupervised manner?

Methods

COVAE bridges nonlinear causal discovery and deep generative modeling using two core ideas:

  1. Latent Additive Noise Model (LANM) Prior via GMMs:
    The authors assume the observational data $x$ is generated by an injective, piecewise-affine decoder $x = f_o(z)$, where latent factors follow an ANM: $$z_i := f_i(\text{pa}(z_i)) + \epsilon_i$$ To approximate this prior flexibly within variational inference without violating conditional dependencies, the prior is parameterized as a Gaussian Mixture Model (GMM) with $J > 1$ components (similar to MFC-VAE/VaDE), which breaks rotational symmetry.

  2. Causal Ordering Loss ($\mathcal{L}_{\text{order}}$):
    In ANMs with quadratic exponential noise, the diagonal Hessian element of the log-density with respect to node $z_i$, $\nabla_{z_i}^2 \log p(z)$, is constant if and only if $z_i$ is a leaf node (i.e., it has no children in the remaining sub-graph). Consequently, its variance across data points is zero.
    COVAE uses Stein kernel estimators to approximate this score Hessian and applies an iterative loss:

  3. At each step $i$, it penalizes the Hessian variance across remaining variables via a cross-entropy loss that forces the node with the lowest variance to position $i$.

  4. This iteratively sorts latent dimensions from leaf nodes (global effects) to root causes.
  5. Theoretical Identifiability ($\sim_\tau$):
    The authors establish that causally ordered latents under an injective piecewise-affine decoder are identifiable up to permutational block diagonal transformation ($\sim_\tau$), scaling, and shift. Rather than allowing arbitrary $d!$ permutations, the model restricts permutations strictly to valid topological orderings of the true latent DAG.

Datasets

The authors evaluate COVAE on both tabular simulations and image benchmarks:

  • Synthetic Datasets (SYN-2, SYN-15, SYN-50): Generated from random DAGs with 2, 15, and 50 latent variables mapped to $2k$-dimensional observational spaces via random injective neural networks.
  • MorphoMNIST Variants: Modified MNIST digits with explicitly designed causal mechanisms:
  • MorphoMNIST-TI (Thickness $\rightarrow$ Intensity)
  • MorphoMNIST-IT (Intensity $\rightarrow$ Thickness)
  • MorphoMNIST-TS (Thickness $\rightarrow$ Slant)
  • MorphoMNIST-TSWI (Thickness $\rightarrow$ Slant $\rightarrow$ Width $\rightarrow$ Intensity)
  • Causal3DIdent: A 10-node 3D image rendering benchmark with complex spatial, color, and object interactions.

Key Insights and Ideas

  • Turning a Discovery Metric into a Training Objective: Instead of using the Hessian variance post-hoc to discover causal graphs (as in score-based causal discovery), COVAE directly optimizes the latent representations so that the network aligns dimensions with the causal hierarchy during training.
  • Drastic Search Space Reduction: The set of valid causal orderings is exponentially smaller than the full permutation space ($d!$). In an 8-node example provided in the paper, there are $8! = 40,320$ possible permutations, but only 14 valid causal orderings—reducing ambiguity by over 99.9%.

Key Results

COVAE was benchmarked against standard VAE, $\beta$-VAE, and MFC-VAE:

  • Topological Ordering (Causal Order Divergence, COD $\downarrow$):
    COVAE achieved near-zero topological divergence across datasets (e.g., $0.00 \pm 0.01$ on SYN-2, $0.03 \pm 0.01$ on SYN-15, and $0.0$ on MorphoMNIST-IT/TSWI), whereas baselines exhibited substantial divergence (e.g., $1.43$ to $2.04$ on SYN-15).

  • Disentanglement and Stability (MCC-R $\uparrow$ & MCC-GT $\uparrow$):

  • On SYN-2, COVAE improved multi-seed stability (MCC-R) to $0.62$ (vs. $0.11$–$0.26$ for baselines) and ground-truth recovery (MCC-GT) to $0.52 \pm 0.07$ (vs. $0.10$–$0.35$).
  • On MorphoMNIST-IT, COVAE attained an MCC-R of $0.59$ and subset-MCC of $0.47 \pm 0.08$ with an $R^2$ of $0.66 \pm 0.10$ (outperforming MFC-VAE's $0.42$ $R^2$).
  • On the challenging Causal3DIdent dataset, COVAE performed competitively with MFC-VAE while significantly reducing topological divergence compared to standard VAE (COD of $3.94$ vs. $22.39$).

Limitations and Future Work

  • Computational Overhead: Stein kernel estimators require inverting a $b \times b$ matrix (where $b$ is batch size), yielding an overall per-iteration complexity of $\mathcal{O}(d b^3)$. While the authors suggest only ordering the top $m \ll d$ variables, scaling to high-dimensional latent spaces remains costly.
  • Strict Structural Assumptions: The identifiability guarantees assume that the underlying latent mechanisms conform strictly to Additive Noise Models with non-linear relationships and Gaussian-like noise.
  • Known Factor Count: The number of causal variables $d$ must be specified in advance.
  • Future Directions: Scaling to non-additive functional causal mechanisms, improving mini-batch sample efficiency, and determining the true latent dimension adaptively.

Summary updated

BibTeX
@inproceedings{kori2023causal,
  author = {Avinash Kori and Pedro Sanchez and Konstantinos Vilouras and Ben Glocker and Sotirios A. Tsaftaris},
  title = {{A Causal Ordering Prior for Unsupervised Representation Learning}},
  booktitle = {CRL @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=1gY17EWQyl},
}
Figure