[Paper Review] Hyperprior Induced Unsupervised Disentanglement of Latent Representations
This paper proposes Covariance Hyperprior VAE (CHyVAE), a hierarchical Bayesian approach that enforces disentanglement in variational autoencoders by placing an inverse-Wishart hyperprior on the latent space covariance matrix. By tuning the hyperprior's degrees of freedom, the model encourages statistical independence in latent dimensions without modifying the ELBO, achieving superior disentanglement and reconstruction on both standard and correlated factor datasets compared to β-VAE and FactorVAE.
We address the problem of unsupervised disentanglement of latent representations learnt via deep generative models. In contrast to current approaches that operate on the evidence lower bound (ELBO), we argue that statistical independence in the latent space of VAEs can be enforced in a principled hierarchical Bayesian manner. To this effect, we augment the standard VAE with an inverse-Wishart (IW) prior on the covariance matrix of the latent code. By tuning the IW parameters, we are able to encourage (or discourage) independence in the learnt latent dimensions. Extensive experimental results on a range of datasets (2DShapes, 3DChairs, 3DFaces and CelebA) show our approach to outperform the $β$-VAE and is competitive with the state-of-the-art FactorVAE. Our approach achieves significantly better disentanglement and reconstruction on a new dataset (CorrelatedEllipses) which introduces correlations between the factors of variation.
Motivation & Objective
- To address the challenge of unsupervised disentanglement in deep generative models without relying on ELBO surgery or additional penalty terms.
- To explore a principled hierarchical Bayesian approach for controlling latent space independence through prior specification.
- To improve disentanglement while preserving reconstruction quality by modeling the latent prior covariance as a learnable parameter with a hyperprior.
- To evaluate the method on datasets with correlated factors of variation, where standard disentanglement methods fail.
- To demonstrate that model-level design—specifically, hyperpriors on the prior covariance—can achieve better disentanglement than loss-function modifications.
Proposed method
- The model introduces an inverse-Wishart (IW) hyperprior on the covariance matrix Σ of the VAE latent prior p(z|Σ), enabling principled control over latent independence.
- The hyperprior's degrees of freedom parameter ν controls the informativeness of the prior, with lower ν encouraging more deviation from identity covariance and thus promoting disentanglement.
- A structured variational posterior q(z, Σ|x) is used to jointly infer the latent codes and the covariance matrix, improving inference stability and expressiveness.
- The hierarchical prior naturally induces additional terms in the ELBO through variational inference, avoiding ad-hoc modifications to the loss function.
- The method learns a full covariance matrix Σ, allowing the model to capture data-induced correlations, unlike standard VAEs that assume isotropic priors.
- The approach is implemented as the Covariance Hyperprior VAE (CHyVAE), which enables end-to-end training with stable optimization via approximation techniques.
Experimental results
Research questions
- RQ1Can disentanglement in VAEs be achieved through principled hierarchical prior specification rather than loss-function modifications?
- RQ2How does hyperprior tuning on the latent covariance matrix affect disentanglement and reconstruction performance?
- RQ3Does the CHyVAE model generalize better than β-VAE and FactorVAE when factors of variation are correlated in the data?
- RQ4Can a hierarchical Bayesian model that learns a full covariance matrix outperform models with fixed or diagonal priors in disentanglement tasks?
- RQ5To what extent does the choice of hyperprior distribution (e.g., inverse-Wishart) influence the quality of disentangled representations?
Key findings
- CHyVAE outperforms β-VAE in both disentanglement and reconstruction across all evaluated datasets, including 2DShapes, 3DChairs, 3DFaces, and CelebA.
- On the novel CorrelatedEllipses dataset with strong factor correlations, CHyVAE significantly outperforms both β-VAE and FactorVAE in disentanglement and reconstruction error.
- The best-performing CHyVAE model achieved a disentanglement score of 0.905, comparable to FactorVAE’s 0.909, but with better reconstruction fidelity.
- Latent traversals show that CHyVAE learns semantically meaningful factors on 3DFaces and CelebA, capturing leg-style variations in 3DChairs that FactorVAE misses.
- Training curves indicate that CHyVAE achieves lower reconstruction error and higher disentanglement than β-VAE and FactorVAE across different hyperparameter settings.
- The results demonstrate that disentanglement can be effectively controlled via hyperprior parameters without modifying the ELBO, offering a more principled alternative to ELBO surgery.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.