Structured Disentangled Representations

Babak Esmaeili, Hao Wu, Sarthak Jain, Alican Bozkurt, N. Siddharth, Brooks Paige, Dana H. Brooks, Jennifer G. Dy, Jan-Willem van de Meent

Introduction

In deep generative modeling, the goal is to learn a latent code ($z$) that captures the underlying structure of high-dimensional data ($x$). Ideally, this code should be disentangled: a change in a single dimension of $z$ should correspond to a change in exactly one interpretable feature of $x$, such as a person's hair color or the rotation of a digit.

Standard Variational Autoencoders (VAEs) often struggle to achieve this because they assume a simple, independent Gaussian prior for all latent variables. This assumption makes it difficult to capture discrete factors (like digit identity) alongside continuous ones (like stroke thickness). While variants like $\beta$-VAE attempt to address this by penalizing latent space complexity, they often sacrifice reconstruction quality or fail to handle the diverse types of variables found in real-world data. To solve this, the authors propose Hierarchically Factorized VAEs (HFVAEs).

The HFVAE Framework

The core contribution of HFVAE is a two-level hierarchical objective that provides fine-grained control over statistical independence. The authors reinterpret the standard Evidence Lower Bound (ELBO) as a KL divergence between the generative model $p(x, z)$ and the inference model $q(z, x)$, allowing for a decomposition into four intuitive terms:

  1. Reconstruction Uniqueness: Ensuring the model can accurately reconstruct data.
  2. Mutual Information: Maximizing the uniqueness of the encoding between data and representation.
  3. Data Distribution Matching: Aligning the model's data distribution with the empirical data.
  4. Latent Distribution Matching: Aligning the learned latent distribution with the prior.
Hierarchical decomposition of the VAE objective showing the relationship between different probability distributions and the resulting independence terms.

HFVAE's "secret sauce" lies in further breaking down the fourth term using Total Correlation (TC)—a measure of dependence between multiple variables—at two distinct levels. Level 1 (Between Blocks) encourages independence between groups of variables, such as keeping a "discrete class" block separate from a "continuous style" block. Level 2 (Within Blocks) encourages independence between individual dimensions within those blocks, such as separating "rotation" from "scale."

Experimental Results

The authors evaluated HFVAE on standard benchmarks including MNIST, Fashion-MNIST, dSprites, and CelebA, as well as text datasets like 20NewsGroups.

Disentanglement and Pruning

On MNIST, HFVAE successfully separated digit identity from style factors like stroke thickness and slant. A key observation is the model's ability to "prune" redundant dimensions. For example, in MNIST, the objective might utilize only 7 out of 10 available continuous dimensions, identifying that only 7 "style" factors were necessary to describe the data variance. This is reflected in the mutual information plots, where only a subset of dimensions show high information content.

Latent traversals for MNIST and Fashion-MNIST alongside mutual information plots showing the model's ability to disentangle features and prune redundant dimensions.

Zero-Shot Generalization

One of the most significant results is the model's zero-shot generalization capability. The authors trained HFVAE on a version of MNIST where specific combinations were omitted (e.g., no "thick 7s"). Because the model learned identity and thickness as truly independent factors, it could successfully generate and encode these unseen combinations during testing, a feat that standard VAEs often fail to achieve.

Discussion and Limitations

While HFVAE provides a robust framework for structured disentanglement, it remains sensitive to hyperparameter choices (specifically $\beta$ and $\gamma$ weights) and initial random seeds. Achieving a perfectly clean separation between discrete and continuous variables still requires some trial and error.

Furthermore, the current model enforces strict statistical independence. However, in many real-world scenarios, latent factors are naturally correlated or causally linked. The authors suggest that future research should focus on characterizing these dependencies rather than simply eliminating them, potentially incorporating weak supervision to further stabilize the learning of structured representations.

Summary updated

BibTeX
@inproceedings{esmaeili2019structured,
  author = {Babak Esmaeili and Hao Wu and Sarthak Jain and Alican Bozkurt and N. Siddharth and Brooks Paige and Dana H. Brooks and Jennifer G. Dy and Jan-Willem van de Meent},
  title = {{Structured Disentangled Representations}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
}
Figure