[Paper Review] Hierarchical Variational Models
This paper introduces Hierarchical Variational Models (HVMs), a framework that enhances variational inference by placing priors on variational parameters, enabling richer posterior approximations while preserving black-box computational efficiency. HVMs significantly improve approximation fidelity—especially for deep discrete latent variable models—achieving up to 180-point lower perplexity than mean-field variational inference on text datasets.
Black box variational inference allows researchers to easily prototype and evaluate an array of models. Recent advances allow such algorithms to scale to high dimensions. However, a central question remains: How to specify an expressive variational distribution that maintains efficient computation? To address this, we develop hierarchical variational models (HVMs). HVMs augment a variational approximation with a prior on its parameters, which allows it to capture complex structure for both discrete and continuous latent variables. The algorithm we develop is black box, can be used for any HVM, and has the same computational efficiency as the original approximation. We study HVMs on a variety of deep discrete latent variable models. HVMs generalize other expressive variational distributions and maintains higher fidelity to the posterior.
Motivation & Objective
- Address the limitation of mean-field variational inference in capturing posterior dependencies between latent variables.
- Develop a flexible, expressive variational family that maintains computational efficiency for high-dimensional models.
- Enable effective inference in complex models like deep exponential families with discrete latent variables.
- Generalize existing variational families by introducing hierarchical structure through priors on variational parameters.
- Maintain black-box inference capability while improving approximation quality for both continuous and discrete latent variables.
Proposed method
- Construct a hierarchical variational model by placing a prior $ q(\boldsymbol{\lambda}; \boldsymbol{\theta}) $ on the parameters $ \boldsymbol{\lambda} $ of a base variational family $ q_{\text{mf}}(\boldsymbol{z}; \boldsymbol{\lambda}) $, resulting in a marginalized distribution $ q_{\text{hvm}}(\boldsymbol{z}; \boldsymbol{\theta}) = \int q(\boldsymbol{\lambda}; \boldsymbol{\theta}) \prod_i q(z_i; \boldsymbol{\lambda}_i) d\boldsymbol{\lambda} $.
- Use normalizing flows (e.g., planar flows) to model the prior $ q(\boldsymbol{\lambda}; \boldsymbol{\theta}) $, enabling flexible, non-Gaussian parameter distributions.
- Apply black-box variational inference to optimize the hyperparameters $ \boldsymbol{\theta} $, maintaining the same computational efficiency as standard mean-field inference.
- Integrate hierarchical priors into existing variational families, allowing them to capture complex dependencies and multimodal structures in the posterior.
- Leverage the joint posterior $ q(\boldsymbol{\lambda} \mid \boldsymbol{z}, \boldsymbol{\theta}) $ during inference to refine parameter estimates and improve approximation quality.
Experimental results
Research questions
- RQ1Can we construct a more expressive variational family than mean-field that still allows efficient black-box optimization?
- RQ2How does placing a hierarchical prior on variational parameters improve posterior approximation in models with discrete latent variables?
- RQ3To what extent do HVMs outperform mean-field variational inference in deep latent variable models like deep exponential families?
- RQ4Can HVMs effectively model multi-layered Poisson and Bernoulli deep exponential families where mean-field fails?
- RQ5Does the hierarchical structure in variational families reduce sensitivity to model depth and improve generalization across datasets?
Key findings
- HVMs achieve a mean perplexity improvement of 180 points over mean-field variational inference across six models on two text datasets, with consistent gains on multi-layer models.
- On the Science dataset, HVMs identify multi-level Poisson models as optimal, while mean-field variational inference fails to detect this structure due to poor approximation fidelity.
- On The New York Times dataset, HVMs outperform mean-field in five out of six models, with the mean-field method only outperforming HVMs on the two-layer Bernoulli model.
- HVMs enable effective inference in multi-level Poisson deep exponential families, a class of models where mean-field variational inference fails to converge or produce meaningful results.
- The use of normalizing flows as priors on variational parameters significantly improves modeling flexibility without sacrificing computational efficiency.
- HVMs maintain black-box inference efficiency while capturing complex posterior dependencies and multimodal structures, especially in deep discrete latent variable models.
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.