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:
- Variational Autoencoders (VAEs): WTC is added as a penalty term to the standard VAE loss function, encouraging disentanglement.
- 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