Introduction
In representation learning, the goal is to achieve "disentangled" codes, where individual dimensions of a latent vector correspond to distinct semantic attributes of the data (e.g., rotation, scale, or color). While the popular $\beta$-VAE achieves this by penalizing the KL-divergence term in the training objective, it often introduces a significant "disentanglement-reconstruction trade-off." In this trade-off, achieving clean factor separation often comes at the cost of image detail, resulting in blurry reconstructions. Subsequent models like FactorVAE introduced complex "Total Correlation" penalties to mitigate this, but these often lack a unified probabilistic justification.
This paper proposes a hierarchical Bayesian alternative: the Covariance Hyperprior VAE (CHyVAE). Rather than forcing disentanglement through heuristic modifications to the loss function, CHyVAE allows independence to emerge naturally from the model's structure by placing an Inverse-Wishart hyperprior on the latent covariance matrix.
Methodology: The CHyVAE Framework
The core innovation of CHyVAE is the shift from a fixed identity covariance matrix to a learned hierarchical prior. The key technical components include:
- Hierarchical Prior: Instead of a fixed identity covariance matrix ($I$), the model treats the covariance ($\Sigma$) as a random variable with an Inverse-Wishart (IW) distribution as a "hyperprior."
- Controllable Independence: The IW distribution's "degrees of freedom" parameter ($\nu$) serves as a principled "knob" for disentanglement. A high $\nu$ strongly encourages an identity matrix (independence), while a lower $\nu$ allows the model more flexibility to capture data correlations.
- Structured Inference: By employing a structured variational posterior $q(z, \Sigma|x) = q(z|x)q(\Sigma|z)$, the authors derive a new Evidence Lower Bound (ELBO) where a "covariance penalty" term arises mathematically from the Bayesian framework rather than being added post-hoc.
- Full Covariance Learning: Unlike standard VAEs that use diagonal variances, CHyVAE learns a full covariance matrix, enabling it to explicitly model and isolate correlations present in the training data.
Experimental Evaluation
The model was benchmarked on standard datasets including dSprites (2DShapes), 3DFaces, 3DChairs, and CelebA. Additionally, the authors introduced CorrelatedEllipses, a dataset where factors like x and y positions are intentionally coupled to test the model's ability to disentangle statistically dependent features—a common challenge in real-world data.
Results and Discussion
CHyVAE demonstrates a superior Pareto front in the disentanglement-reconstruction trade-off. On the dSprites dataset, it achieves higher disentanglement scores than both $\beta$-VAE and FactorVAE while maintaining significantly lower reconstruction error.
A key strength of the hyperprior approach is its robustness to correlated data. In the CorrelatedEllipses "stress test," CHyVAE significantly outperformed baselines, successfully separating factors even when they were statistically linked in the training set.
Qualitatively, CHyVAE successfully isolated complex traits in CelebA (e.g., smiles, bangs) and captured subtle factors like "leg style" in 3DChairs that other state-of-the-art models missed. By learning a full covariance matrix, the model can recognize when two factors are correlated in the dataset without letting that correlation muddle the individual latent dimensions.
Conclusion
CHyVAE offers a principled Bayesian framework for unsupervised disentanglement. By treating the latent covariance as a random variable, it avoids the heuristic weighting of loss terms. While learning a full covariance matrix increases computational overhead, the resulting model is more robust to real-world data correlations. Future work may explore extending this framework to handle discrete latent factors and further refining the variational approximations.
Summary updated