NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bayes-factor-vae: Hierarchical bayesian deep auto-encoder models for factor disentanglement

Pritish SahuOpenReview 2022

TL;DR

This paper introduces Bayes-Factor-VAEs, a novel family of hierarchical Bayesian deep auto-encoder models designed to disentangle factors of variation in data. They argue that standard Gaussian priors for latent variables are suboptimal and propose using long-tail distributions for "relevant" factors and Gaussian priors for "nuisance" factors, achieving state-of-the-art disentanglement performance.

What Problem Does This Paper Address?

Understanding and representing the underlying causes of variation in high-dimensional data (like images or videos) is a fundamental challenge in machine learning. While Variational Auto-Encoders (VAEs) have been successful in modeling these generative relationships, a key goal is disentanglement: ensuring that each latent variable captures a single, independent aspect of variation (e.g., pose, lighting, identity). Existing VAE-based methods often struggle with this, primarily due to their reliance on a standard Gaussian prior for all latent variables. This paper argues that this "one-size-fits-all" approach is insufficient because "relevant" factors (those driving major variations) often exhibit non-Gaussian, long-tail behaviors, while "nuisance" factors (minor variations) are better modeled by Gaussians. The core problem is how to effectively model and disentangle these different types of latent factors in an unsupervised manner.

Methods

The authors extend the standard VAE framework by introducing hierarchical Bayesian priors on the latent variable distributions. The key innovation lies in treating "relevant" and "nuisance" latent variables differently:

  • Distinguishing Relevant vs. Nuisance Factors: The paper proposes partitioning latent dimensions into "relevant" (R) and "nuisance" (N) sets.
  • Modeling Relevant Factors: For relevant factors, they move away from fixed Gaussian priors. Instead, they introduce hyper-priors on the variances of Gaussian latent priors. This allows the model to learn distributions that can better capture the observed non-Gaussian, long-tail nature of these factors. This is achieved through three proposed models:
  • BF-VAE-0 (Adjustable Gaussian Prior): This model introduces learnable precision parameters (inverse variances) for each latent dimension, with a regularizer encouraging nuisance dimensions to have a precision close to 1 (standard Gaussian).
  • BF-VAE-1 (Hierarchical Bayesian Prior): This model further extends BF-VAE-0 by placing a Gamma distribution (a conjugate prior) on the precision parameters. This allows for learning an "infinite Gaussian mixture" for relevant factors and captures uncertainty in the precision. The corrected prior $p(z_j)$ becomes a generalized Student's t-distribution, which is more flexible than a Gaussian.
  • BF-VAE-2 (Prior with Relevance Indicators): This model introduces explicit "relevance indicator" variables ($r_j$) for each latent dimension. These indicators control the shape of the hyper-prior on the precision parameters, allowing the model to explicitly learn which dimensions are relevant and which are nuisances. This offers more direct control over the cardinality of relevant factors.
  • Tractable Learning: Despite the increased complexity, the proposed hierarchical models maintain tractable learning and inference, often by optimizing bounds on the KL divergence and using techniques like adversarial discriminators for terms like Total Correlation (TC).

Datasets

The models were evaluated on several benchmark datasets:

  • 3D-Face
  • Sprites
  • C-Spr (an extension of Sprites)
  • Teapots
  • Celeb-A

For Celeb-A, ground-truth labels are not available, making it a true unsupervised disentanglement task. For other datasets, ground-truth factor labels were used for evaluation metrics.

Key Insights and Ideas

  • The "One-Size-Fits-All" Prior is Suboptimal: The core insight is that a standard Gaussian prior for all latent variables in VAEs is a significant limitation for disentanglement, especially for factors that drive major data variations.
  • Long-Tail Distributions for Relevant Factors: Relevant factors, which capture principal sources of variability, are better modeled by distributions with heavier tails than Gaussians.
  • Nuisance Factors are Gaussian: Conversely, minor variations or noise ("nuisance factors") are well-suited to Gaussian modeling.
  • Hierarchical Priors Enable Flexibility: By introducing hierarchical Bayesian priors, the models can learn flexible latent distributions that adapt to the data's underlying structure, effectively mimicking infinite mixtures for relevant factors.
  • Explicit vs. Implicit Relevance Indicators: The paper demonstrates that both implicit indicators (like learned variances or degrees of freedom) and explicit indicators (learned relevance probabilities) can effectively identify disentangled factors.

Key Results

  • State-of-the-Art Performance: The proposed Bayes-Factor-VAE models (BF-VAE-0, BF-VAE-1, BF-VAE-2) consistently outperformed existing methods (VAE, β-VAE, F-VAE, RF-VAE) across multiple disentanglement metrics (Metric I, II, III) on benchmark datasets.
  • Superiority over High-Capacity Priors: BF-VAE-2 showed significantly better performance than a Factor-VAE with a high-capacity Gaussian Mixture Model prior, suggesting that uncontrolled complexity can be detrimental, while controlled Bayesian modeling is beneficial.
  • Qualitative Success: Latent space traversals demonstrated that the models can generate data by manipulating single latent variables, and these variations correspond to meaningful, disentangled factors of variation.
  • Control over Cardinality: BF-VAE-2, in particular, showed the ability to control the number of detected relevant factors by tuning a trade-off parameter, allowing for the detection of either strong or many weak factors.

Limitations and Future Work

  • Assumption of Known Relevance Partition (Initially): While BF-VAE-1 and BF-VAE-2 address this, the initial analysis in Section 2 assumes a known partition of relevant and nuisance variables.
  • Computational Cost: While tractable, hierarchical Bayesian models can be more computationally intensive than standard VAEs.
  • Future Work: The paper suggests exploring more complex generative models and further investigating the trade-offs between model complexity and disentanglement performance. The learned relevance indicators could also be used for downstream tasks.

Summary updated

BibTeX
@misc{sahu2022bayes,
  author = {Pritish Sahu},
  title = {{Bayes-factor-vae: Hierarchical bayesian deep auto-encoder models for factor disentanglement}},
  year = {2022},
  url = {https://openreview.net/forum?id=IiJ6ThkOlPv},
  howpublished = {OpenReview},
}
Figure