Skip to main content
QUICK REVIEW

[Paper Review] Structured Stochastic Variational Inference

Matthew D. Hoffman, David M. Blei|arXiv (Cornell University)|Apr 16, 2014
Gaussian Processes and Bayesian InferenceComputer Science33 references49 citations
TL;DR

This paper introduces Structured Stochastic Variational Inference (SSVI), a generalization of stochastic variational inference that relaxes the mean-field assumption by allowing dependencies between global parameters and local latent variables. By modeling the variational distribution as $ q(z,\beta) = \left(\prod_k q(\beta_k)\right) \prod_n q(z_n|\beta) $, SSVI reduces approximation bias, avoids local optima, and improves parameter estimation on large-scale models like LDA, outperforming standard SVI in both accuracy and robustness to hyperparameters.

ABSTRACT

Stochastic variational inference makes it possible to approximate posterior distributions induced by large datasets quickly using stochastic optimization. The algorithm relies on the use of fully factorized variational distributions. However, this "mean-field" independence approximation limits the fidelity of the posterior approximation, and introduces local optima. We show how to relax the mean-field approximation to allow arbitrary dependencies between global parameters and local hidden variables, producing better parameter estimates by reducing bias, sensitivity to local optima, and sensitivity to hyperparameters.

Motivation & Objective

  • To address the limitations of mean-field variational inference in high-dimensional, multimodal posteriors, where independence assumptions introduce bias and local optima.
  • To extend stochastic variational inference to structured approximations that capture dependencies between global parameters and local latent variables.
  • To develop a scalable, stochastic optimization-based framework that maintains computational efficiency while improving posterior approximation fidelity.
  • To reduce sensitivity to hyperparameters and avoid poor local optima common in mean-field SVI.
  • To demonstrate the effectiveness of SSVI on real-world large-scale datasets, such as Wikipedia text corpora, using topic models like LDA.

Proposed method

  • Proposes a structured variational distribution $ q(z,\beta) = \left(\prod_k q(\beta_k)\right) \prod_n q(z_n|\beta) $, allowing arbitrary dependencies between global parameters $ \beta $ and local variables $ z_n $.
  • Adapts stochastic optimization to update global parameters $ \beta $ using noisy gradients from mini-batches of data, maintaining scalability.
  • Derives closed-form updates for variational parameters using the natural gradient and Fisher information matrix, particularly for exponential family distributions like the Dirichlet.
  • Employs a reparameterization trick via inverse CDF sampling (e.g., gamma variates for Dirichlet) to enable differentiable sampling and gradient computation.
  • Introduces two variants: SSVI (using natural gradient) and SSVI-A (using adaptive step sizes), both designed for efficient online learning.
  • Applies the framework to latent Dirichlet allocation (LDA), using efficient computation of sufficient statistics and Fisher matrix inverses via the matrix inversion lemma.

Experimental results

Research questions

  • RQ1Can structured dependencies between global parameters and local latent variables improve posterior approximation in stochastic variational inference?
  • RQ2Does relaxing the mean-field assumption reduce bias and sensitivity to hyperparameters in large-scale Bayesian models?
  • RQ3Can structured variational inference be efficiently scaled to massive datasets using stochastic optimization?
  • RQ4How does SSVI compare to mean-field SVI and Gibbs sampling in terms of predictive accuracy and convergence speed?
  • RQ5To what extent does SSVI avoid local optima that plague standard SVI in multimodal posteriors?

Key findings

  • SSVI achieves significantly better predictive accuracy than mean-field SVI on a 3.8 million document Wikipedia dataset, with performance approaching that of Gibbs sampling.
  • The SSVI algorithm with natural gradient updates (SSVI) outperforms mean-field SVI across all hyperparameter settings, particularly for $ \alpha = 0.1 $, where mean-field SVI degrades sharply.
  • SSVI-A, which uses adaptive step sizes, further improves robustness and reduces sensitivity to hyperparameters compared to standard SVI.
  • CVB0 and Gibbs sampling for local inference yield comparable performance when used with SSVI, but mean-field local updates degrade performance.
  • The structured approximation reduces approximation bias and avoids poor local optima, especially in models with multimodal posteriors.
  • The Fisher matrix inverse for the Dirichlet distribution is computed efficiently in $ O(V) $ time using the matrix inversion lemma, enabling scalable updates.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.