Abstract
We propose a family of novel hierarchical Bayesian deep auto-encoder models capable of identifying disentangled factors of variability in data. While many recent attempts at factor disentanglement have focused on sophisticated learning objectives within the VAE framework, their choice of a standard normal as the latent factor prior is both suboptimal and detrimental to performance. Our key observation is that the disentangled latent variables responsible for major sources of variability, the relevant factors, can be more appropriately modeled using long-tail distributions. The typical Gaussian priors are, on the other hand, better suited for modeling of nuisance factors. Motivated by this, we extend the VAE to a hierarchical Bayesian model by introducing hyper-priors on the variances of Gaussian latent priors, mimicking an infinite mixture, while maintaining tractable learning and inference of the traditional VAEs. This analysis signifies the importance of partitioning and treating in a different manner the latent dimensions corresponding to relevant factors and nuisances. Our proposed models, dubbed Bayes-Factor-VAEs, are shown to outperform existing methods both quantitatively and qualitatively in terms of latent disentanglement across several challenging benchmark tasks.
Introduction
In unsupervised learning, disentanglement is a primary objective. It refers to the ability of a model to decompose complex data into independent, interpretable latent variables—for instance, separating "identity," "pose," and "lighting" in a dataset of human faces.
Traditional Variational Autoencoders (VAEs) often struggle with this task because they typically assume every latent variable follows a standard independent Gaussian distribution ($N(0, 1)$). This paper argues that such a rigid prior is a fundamental limitation. In real-world data, "relevant" factors causing major structural changes (like head rotation) exhibit different statistical properties than "nuisance" factors (like minor background noise). By forcing both into the same Gaussian mold, standard VAEs fail to distinguish signal from noise, leading to entangled representations where a single latent dimension might inadvertently control multiple unrelated features.
Methodology: Hierarchical Bayesian Priors
The authors introduce Bayes-Factor-VAEs (BF-VAEs), which replace fixed latent priors with a hierarchical structure. Instead of pre-defining the variance of latent dimensions, the model treats the precision (inverse variance) as a random variable governed by a Gamma hyper-prior. This formulation effectively creates an infinite mixture of Gaussians, enabling the model to represent the non-Gaussian, long-tailed distributions characteristic of meaningful factors of variation.
The family includes three primary variants:
- BF-VAE-0: Learns specific precisions for each dimension with a regularizer pushing nuisances toward a standard Gaussian.
- BF-VAE-1: Automatically infers whether a dimension is a relevant factor or a nuisance using the Gamma hyper-prior.
- BF-VAE-2: Explicitly uses "relevance indicator" variables to partition the latent space.
To maintain factor independence, the models incorporate a Total Correlation (TC) penalty, encouraging the aggregate posterior to be fully factorized.
Experiments and Results
The BF-VAE models were evaluated on several benchmarks, including 3D-Face, Sprites (and its variants O-Spr and C-Spr), and Teapots. Quantitative results demonstrate that the BF-VAE family consistently outperforms state-of-the-art baselines like $\beta$-VAE and Factor-VAE.
Key findings from the experiments include:
- Quantitative Superiority: On the Sprites dataset, BF-VAE-2 achieved a Metric II score of 85.9, significantly outperforming the standard VAE (58.2) and Factor-VAE (77.6).
- Qualitative Clarity: Latent traversals on the Celeb-A dataset showed that BF-VAE-2 cleanly isolates major factors like gender and azimuth, while successfully relegating minor features like sunglasses to separate, lower-relevance dimensions.
- Robustness: The hierarchical Bayesian approach provides a principled way to increase model flexibility without the overfitting risks associated with high-capacity priors like standard Mixtures of Gaussians (MoG).
Discussion and Conclusion
The success of Bayes-Factor-VAE highlights the importance of Relevant vs. Nuisance Partitioning. By allowing relevant factors to occupy long-tailed distributions while keeping nuisance factors Gaussian, the model focuses on the structural features of the data. Furthermore, the model offers automatic cardinality control, allowing users to tune the number of identified "strong" factors via hyper-parameters.
While highly effective, the authors note that some entanglement still occurs in complex datasets like Teapots (e.g., between color and azimuth). Future research may explore more sophisticated hyper-priors or apply this hierarchical framework to higher-resolution data where the distinction between signal and noise is even more nuanced.
Summary updated