Disentanglement Analysis in Deep Latent Variable Models Matching Aggregate Posterior Distributions
Surojit Saha, Sarang Joshi, Ross Whitaker
TL;DR
This work addresses the limitation of disentanglement metrics that assume latent factors align with latent axes by introducing a general method to uncover latent directions corresponding to true generative factors for any DLVM. The approach fixes each ground-truth factor, analyzes latent encodings with PCA to obtain factor-specific directions, and aggregates these into a set of latent directions $\mathcal{D}$ used to compute PCA FactorVAE and PCA MIG scores, enabling axis-agnostic evaluation. Experiments on DSprites and 3D Shapes show that AVAE, an aggregate-posterior-matching model, achieves the strongest disentanglement under the proposed metrics, with latent directions that are nearly orthogonal, indicating low entanglement. Overall, the method provides a general framework for disentanglement assessment across DLVMs and highlights the value of matching aggregate posteriors when evaluating and comparing latent representations.
Abstract
Deep latent variable models (DLVMs) are designed to learn meaningful representations in an unsupervised manner, such that the hidden explanatory factors are interpretable by independent latent variables (aka disentanglement). The variational autoencoder (VAE) is a popular DLVM widely studied in disentanglement analysis due to the modeling of the posterior distribution using a factorized Gaussian distribution that encourages the alignment of the latent factors with the latent axes. Several metrics have been proposed recently, assuming that the latent variables explaining the variation in data are aligned with the latent axes (cardinal directions). However, there are other DLVMs, such as the AAE and WAE-MMD (matching the aggregate posterior to the prior), where the latent variables might not be aligned with the latent axes. In this work, we propose a statistical method to evaluate disentanglement for any DLVMs in general. The proposed technique discovers the latent vectors representing the generative factors of a dataset that can be different from the cardinal latent axes. We empirically demonstrate the advantage of the method on two datasets.
