Disentangling Disentanglement

Emile Mathieu, Tom Rainforth, Siddharth Narayanaswamy, Yee Whye Teh

Introduction

In generative modeling, particularly with Variational Autoencoders (VAEs), "disentanglement" has long been the gold standard for representation learning. The goal is typically to learn a latent space where individual dimensions correspond to independent physical attributes, such as the rotation, scale, or position of an object. However, despite the popularity of models like the $\beta$-VAE, the underlying mechanisms that lead to successful disentanglement have remained poorly understood.

This paper challenges the traditional focus on independence, arguing that it is a narrow and often insufficient criterion for complex data. Instead, the authors propose a broader framework called decomposition, which redefines representation learning as a balance between local encoding overlap and global aggregate structure.

The Problem with Standard Disentanglement

The authors identify a fundamental limitation in the standard $\beta$-VAE objective: when using a typical isotropic Gaussian prior, the objective is rotationally invariant. This means the model has no mathematical incentive to align latent factors with specific axes. Any rotated version of a "disentangled" representation is equally valid under the objective, making axis-aligned disentanglement largely a matter of chance or initialization bias.

Furthermore, for many real-world datasets, the assumption of strictly independent factors of variation may not hold. By focusing solely on independence, researchers may be overlooking more complex and useful latent structures.

Methods: The Decomposition Framework

The authors propose that successful representation learning requires satisfying two distinct factors:

  1. Appropriate Latent Overlap: The individual encodings $q_\phi(z|x)$ must overlap enough to ensure the latent space is continuous and not a simple lookup table, but not so much that they become indistinguishable and lose data-specific information.
  2. Aggregate Structure: The total distribution of all encodings, known as the aggregate posterior $q_\phi(z) = \mathbb{E}_{p_D(x)}[q_\phi(z|x)]$, should match a target structure defined by a prior $p(z)$.
The decomposition framework balances latent overlap (stochasticity) with the requirement that the aggregate posterior matches a target structure.

To explicitly control these factors, the authors introduce a generalized training objective, $\mathcal{L}_{\alpha, \beta}$:

$$\mathcal{L}_{\alpha, \beta}(x) = \mathbb{E}_{q_\phi(z|x)}[\log p_\theta(x|z)] - \beta \text{KL}(q_\phi(z|x) || p(z)) - \alpha \mathbb{D}(q_\phi(z), p(z))$$

In this formulation, $\beta$ acts as a lever for overlap (Factor 1), while the new $\alpha$ term (using a divergence $\mathbb{D}$ such as Maximum Mean Discrepancy or KL) forces the aggregate encoding to follow the desired prior structure (Factor 2). This allows for the use of non-isotropic or structured priors to "break" rotational symmetry and encourage specific latent organizations.

Experimental Results

The authors validated their framework across several synthetic and real-world datasets, demonstrating that decomposition allows for much finer control over the latent space than standard VAEs.

Breaking Symmetry in dsprites

On the 2D Shapes (dsprites) benchmark, the authors showed that using non-isotropic priors (like a Product of Student-t distributions) or learning the prior's variance effectively broke rotational symmetry. This led to significantly higher disentanglement scores compared to standard $\beta$-VAEs, as the model was forced to align its representation with the axes defined by the prior.

Controllable Clustering in Pinwheel

Using a synthetic 2D "Pinwheel" dataset, the authors demonstrated the necessity of the $\alpha$ term for matching complex priors. When attempting to match a Mixture-of-Gaussians prior, a standard VAE often fails to separate clusters. However, by increasing $\alpha$, the model successfully organizes the latent space into distinct clusters corresponding to the data's spiral arms.

Visualizing the effect of $\alpha$ and $\beta$ on the latent space of the Pinwheel dataset. Increasing $\alpha$ is crucial for matching the aggregate posterior to a multi-modal prior.

Learned Sparsity in Fashion-MNIST

On Fashion-MNIST, the authors employed a "spike-and-slab" prior to encourage sparsity. With the $\alpha$ term, the model learned a representation where different latent dimensions were selectively activated for different clothing categories. This resulted in interpretable features, such as specific dimensions controlling "sleeve length" for shirts while remaining inactive for trousers.

Conclusion

By reframing disentanglement as decomposition, this work provides a more robust theoretical foundation for VAE-based representation learning. The key insight is that the prior is not just a regularizer but a target structure. By explicitly balancing latent overlap and aggregate alignment, we can move beyond simple axis-aligned independence toward learning representations that reflect the true, often complex, structure of real-world data.

Summary updated

BibTeX
@misc{mathieu2018disentangling,
  author = {Emile Mathieu and Tom Rainforth and Siddharth Narayanaswamy and Yee Whye Teh},
  title = {{Disentangling Disentanglement}},
  year = {2018},
  eprint = {1812.02833},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.02833},
}
Figure