Disentangled Representation Learning with Wasserstein Total Correlation

Yijun Xiao, William Yang WangarXiv 2019 · OpenReview

TL;DR

This paper introduces Wasserstein Total Correlation (WTC), a new metric for learning disentangled representations that addresses the limitations of traditional KL divergence-based methods. By leveraging the Wasserstein distance, WTC is more robust to sample variations and metric-agnostic issues, leading to improved disentanglement with comparable or better reconstruction quality.

What Problem Does This Paper Address?

Unsupervised disentangled representation learning aims to discover underlying factors of variation in data. A common technique is to penalize "total correlation" in the latent space, encouraging statistical independence between latent variables. However, existing methods rely on Kullback-Leibler (KL) divergence to measure this total correlation. KL divergence has two major drawbacks: it's metric-agnostic (ignoring the geometric relationships between data points) and highly sensitive to small sample variations, making it unreliable for mini-batch training. This sensitivity can lead to inaccurate estimations of total correlation and, consequently, suboptimal disentanglement. The paper seeks to overcome these limitations by proposing a more robust and metric-aware measure of total correlation.

Methods

The core contribution is the introduction of Wasserstein Total Correlation (WTC). Instead of using KL divergence, WTC measures the Wasserstein-1 distance between the joint distribution of latent variables and the product of their marginal distributions. This metric is inherently metric-aware, meaning it considers the "distance" between data points in the latent space.

To estimate WTC, the authors employ an adversarial approach, similar to Generative Adversarial Networks (GANs). A "critic" network is trained alongside the main autoencoder objective to estimate the WTC term. This critic is trained to maximize the difference between the critic's output on joint samples and on samples derived from the product of marginals. To enforce the Lipschitz constraint required for Wasserstein distance estimation, they use gradient penalty.

The paper integrates WTC into two established frameworks:

  1. Variational Autoencoders (VAEs): WTC is added as a penalty term to the standard VAE loss function, encouraging disentanglement.
  2. Wasserstein Autoencoders (WAEs): WTC is incorporated into the WAE objective, which already uses Wasserstein distance for reconstruction.

Additionally, the authors propose a new metric for evaluating disentanglement called Wasserstein Dependency Gap (WDG). This metric is inspired by the limitations of KL divergence in measuring mutual information and uses Wasserstein distance to quantify the dependency between latent dimensions and ground truth factors.

Datasets

The paper evaluates their methods on three standard datasets with known ground truth factors of variation:

  • Cars3D: 17,568 RGB images of car renderings.
  • dSprites: 737,280 grayscale images of sprites.
  • Shapes3D: 480,000 RGB images of 3D shapes.

They also use a cropped version of CelebA for qualitative analysis.

Key Insights and Ideas

  • Wasserstein Distance for Independence: The core idea is that Wasserstein distance, by being metric-aware, provides a more meaningful measure of independence between latent variables than KL divergence, especially in the context of sampled data.
  • Robustness to Sampling: The metric-agnostic nature of KL divergence makes it sensitive to small sample variations. Wasserstein distance, being metric-aware, is more robust, leading to more stable training and better disentanglement.
  • Trade-off Optimization: The paper demonstrates that WTC-VAE achieves a better balance between disentanglement and reconstruction quality compared to existing methods. It can achieve high disentanglement scores with lower reconstruction errors.
  • New Disentanglement Metric: The Wasserstein Dependency Gap (WDG) offers a promising alternative to existing metrics, being easier to estimate and more robust to random samples due to its reliance on Wasserstein distance.

Key Results

  • Cars3D: WTC-VAE achieved comparable FactorVAE scores and Modularity to other top models but with significantly lower reconstruction errors. WTC-WAE also showed strong performance.
  • dSprites: WTC-WAE outperformed other models on the WDG metric, achieving the lowest reconstruction error. WTC-VAE also showed competitive results.
  • Shapes3D: WTC-VAE achieved the highest FactorVAE score and competitive WDG and Modularity scores, again with low reconstruction error.
  • Qualitative Results (CelebA): The qualitative analysis showed that WTC-VAE could discover meaningful factors of variation, such as "curly hair," "face width," "baldness," and "glasses," although some entanglement was still present.
  • WDG Performance: The proposed WDG metric showed high rank correlations with other established disentanglement metrics (FactorVAE score, MIG, Modularity), suggesting its validity.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that disentangled representation learning is a difficult problem, and even their proposed methods do not achieve perfect disentanglement.
  • Qualitative results on CelebA showed some remaining entanglement (e.g., baldness entangled with lightness).
  • Future Work:
    • Developing formal and applicable definitions of disentanglement.
  • Extending the framework to inputs beyond the vision domain.
  • Creating more reliable evaluation criteria for unsupervised settings.

Summary updated

Abstract

Unsupervised learning of disentangled representations involves uncovering of different factors of variations that contribute to the data generation process. Total correlation penalization has been a key component in recent methods towards disentanglement. However, Kullback-Leibler (KL) divergence-based total correlation is metric-agnostic and sensitive to data samples. In this paper, we introduce Wasserstein total correlation in both variational autoencoder and Wasserstein autoencoder settings to learn disentangled latent representations. A critic is adversarially trained along with the main objective to estimate the Wasserstein total correlation term. We discuss the benefits of using Wasserstein distance over KL divergence to measure independence and conduct quantitative and qualitative experiments on several data sets. Moreover, we introduce a new metric to measure disentanglement. We show that the proposed approach has comparable performances on disentanglement with smaller sacrifices in reconstruction abilities.
BibTeX
@misc{xiao2019disentangled,
  author = {Yijun Xiao and William Yang Wang},
  title = {{Disentangled Representation Learning with Wasserstein Total Correlation}},
  year = {2019},
  eprint = {1912.12818},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.12818},
}
Figure