Revisiting Factorizing Aggregated Posterior in Learning Disentangled Representations

Ze Cheng, Juncheng Li, Chenxu Wang, Jixuan Gu, Hao Xu, Xinjian Li, Florian MetzearXiv 2020

Abstract

In the problem of learning disentangled representations, one of the promising methods is to factorize aggregated posterior by penalizing the total correlation of sampled latent variables. However, this well-motivated strategy has a blind spot: there is a disparity between the sampled latent representation and its corresponding mean representation. In this paper, we provide a theoretical explanation that low total correlation of sampled representation cannot guarantee low total correlation of the mean representation. Indeed, we prove that for the multivariate normal distributions, the mean representation with arbitrarily high total correlation can have a corresponding sampled representation with bounded total correlation. We also propose a method to eliminate this disparity. Experiments show that our model can learn a mean representation with much lower total correlation, hence a factorized mean representation. Moreover, we offer a detailed explanation of the limitations of factorizing aggregated posterior: factor disintegration. Our work indicates a potential direction for future research of disentangled learning.

Introduction

The goal of disentangled representation learning is to find a latent space where each dimension corresponds to a single, independent physical attribute of the data, such as rotation, scale, or color. Variational Autoencoders (VAEs) are a popular framework for this task. A common approach to achieve disentanglement is to penalize the Total Correlation (TC) of the sampled latent variables, denoted as $TC_{sample}$. The intuition is that by minimizing the dependence between sampled dimensions, the model will naturally learn to separate independent factors of variation.

The Disparity Blind Spot

While penalizing $TC_{sample}$ is theoretically sound, empirical evidence has shown a persistent gap between the independence of samples and the independence of the mean representations ($TC_{mean}$) that are actually used in downstream tasks. This paper identifies this as a critical "blind spot" in current methodologies.

The disparity between sampled and mean representations. While samples (blue) appear uncorrelated, the underlying means (orange) are highly correlated along a specific direction.

The authors provide a theoretical foundation for this observation in Theorem 1. They prove that for multivariate normal distributions, $TC_{sample}$ has an upper bound that is entirely independent of $TC_{mean}$. This implies that an optimization process can minimize $TC_{sample}$ by simply increasing the variance of the latent distributions, effectively "masking" the correlation present in the means. Consequently, a model can appear to have independent samples while maintaining highly entangled mean representations.

RTC-VAE: Regularizing the Disparity

To bridge this gap, the authors propose RTC-VAE (Regularized TC-VAE). The core idea is to prevent the model from "cheating" the TC penalty by forcing the sampled representations to stay close to their means. This is achieved by adding a variance-based regularization term to the standard $\beta$-TCVAE objective:

$$\mathcal{L}_{RTC} := \mathcal{L}_{\beta-TC} - \eta \cdot tr(\mathbb{E}_{p(n)}Cov_{q(z|n)}[z])$$

By penalizing the trace of the covariance matrix (the sum of variances), the model is discouraged from using high variance to hide correlations. This synchronization ensures that a low $TC_{sample}$ actually translates to a low $TC_{mean}$, leading to truly factorized representations.

TC Estimation and the Curse of Dimensionality

Another challenge in this field is the accurate estimation of Total Correlation. Most methods rely on estimators like Minibatch Weighted Sampling (MWS). The authors analyze these estimators and find they are highly sensitive to the "curse of dimensionality."

Total Correlation (TC) estimation performance for different methods across latent dimensions D=2 to D=10. Note the increasing gap between estimators and ground truth in higher dimensions.

As shown in the experiments, common estimators often fail to track the ground truth TC as the number of latent dimensions increases. This can lead to "dimension shutdown," where the model stops using certain dimensions entirely to satisfy the (incorrectly estimated) independence constraint, rather than learning to disentangle them.

Results and Factor Disintegration

The proposed RTC-VAE was evaluated on standard benchmarks including dSprites, Shapes3D, and Car3d. The results demonstrate that RTC-VAE effectively eliminates the disparity, producing mean representations with significantly lower TC compared to vanilla models.

However, the authors also highlight a new challenge: Factor Disintegration. Even when a representation is perfectly factorized (independent), it may not be compact. For instance, a single physical factor like "object color" might be split across two independent latent dimensions. While this satisfies the independence requirement, it fails the goal of "one-dimension-per-factor." This phenomenon explains why standard disentanglement metrics like SAP or MIG often yield low scores even when the model has successfully learned independent features; these metrics penalize any mapping that isn't strictly one-to-one.

Conclusion

This work reveals that factorizing the aggregated posterior of samples is insufficient for true disentanglement due to the disparity between samples and means. By introducing RTC-VAE and identifying the phenomenon of factor disintegration, the authors provide both a practical fix for the disparity and a new conceptual framework for understanding the limitations of current disentanglement objectives. Future research should focus on developing regularizers that promote both independence and compactness to overcome factor disintegration.

Summary updated

BibTeX
@misc{cheng2020revisiting,
  author = {Ze Cheng and Juncheng Li and Chenxu Wang and Jixuan Gu and Hao Xu and Xinjian Li and Florian Metze},
  title = {{Revisiting Factorizing Aggregated Posterior in Learning Disentangled Representations}},
  year = {2020},
  eprint = {2009.05739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.05739},
}
Figure