Skip to main content
QUICK REVIEW

[Paper Review] On the Convergence of Stochastic Variational Inference in Bayesian Networks

Ulrich Paquet|arXiv (Cornell University)|Jul 16, 2015
Gaussian Processes and Bayesian InferenceComputer Science6 references8 citations
TL;DR

This paper investigates convergence issues in stochastic variational inference (SVI) for Bayesian networks, showing that standard step size schedules can cause divergence due to noisy, non-natural gradient estimates. It demonstrates that using small initial step sizes is essential for stable convergence when approximating global parameters via component-wise updates, especially in bilinear models like Bayesian matrix factorization.

ABSTRACT

We highlight a pitfall when applying stochastic variational inference to general Bayesian networks. For global random variables approximated by an exponential family distribution, natural gradient steps, commonly starting from a unit length step size, are averaged to convergence. This useful insight into the scaling of initial step sizes is lost when the approximation factorizes across a general Bayesian network, and care must be taken to ensure practical convergence. We experimentally investigate how much of the baby (well-scaled steps) is thrown out with the bath water (exact gradients).

Motivation & Objective

  • To identify and analyze convergence failures in stochastic variational inference when applied to general Bayesian networks with factorized variational approximations.
  • To highlight the loss of natural gradient scaling benefits when global parameters are decomposed across network factors, leading to unstable optimization.
  • To investigate the impact of noisy gradient estimates and step size selection on practical convergence in large-scale models such as those used in recommender systems.
  • To evaluate whether the use of small initial step sizes can recover the stability of well-scaled updates, despite discarding exact gradient information.
  • To provide empirical guidance for deploying SVI in real-world Bayesian networks, particularly in high-dimensional settings like matrix factorization.

Proposed method

  • Proposes a stochastic variational inference algorithm (Alg. 1) that uses noisy, component-wise natural gradient estimates to update variational parameters in a Bayesian network.
  • Employs a stochastic approximation scheme where each variational parameter update is based on a random subset of children (C) in the network, reducing computational cost.
  • Uses a time-varying step size schedule ρt with ρt → 0, ∑ρt = ∞, and ∑ρt² < ∞ to ensure convergence under stochastic approximation conditions.
  • Introduces two update options: (a) periodic averaging of parameter means over factors, and (b) the standard SVI update from Hoffman et al., both applied to natural parameters.
  • Derives the stochastic natural gradient update for Gaussian variational approximations in a bilinear model, explicitly accounting for co-parents and sufficient statistics.
  • Applies the method to Bayesian matrix factorization on the Netflix dataset, using a factorized Gaussian approximation and stochastic estimation of expectations over observed ratings.

Experimental results

Research questions

  • RQ1Why does standard stochastic variational inference fail to converge in general Bayesian networks despite working well in conjugate exponential families?
  • RQ2How does the loss of natural gradient scaling affect convergence when variational parameters are factorized across network components?
  • RQ3What role does the variance of gradient estimates play in causing divergence when using unit-length step sizes in SVI?
  • RQ4Can small initial step sizes restore convergence stability in SVI for general Bayesian networks, and what is the trade-off with convergence speed?
  • RQ5To what extent is the use of exact gradients necessary for reliable inference, or can stable results be achieved with well-scaled noisy gradients?

Key findings

  • Standard SVI with unit-length step sizes (ρt = 1) leads to numerical divergence in general Bayesian networks due to high-variance gradient estimates.
  • For small values of C (number of children used per update), both update options (a) and (b) in Alg. 1 diverge when using ρt ∈ (0,1], especially in bilinear models like matrix factorization.
  • Convergence is restored by using sufficiently small initial step sizes: ρ₁ = 1/512 for option (a) and ρ₁ = 1/64 for option (b), when C = 1.
  • The global stochastic gradient is not in natural form, which amplifies instability and causes overshooting, even with diminishing step sizes.
  • Empirical results show that full VB (ρt = 1) implicitly uses a stable step size, but this is not transferable to the stochastic setting without careful scaling.
  • The study concludes that while small step sizes mitigate divergence, the trade-off may involve discarding useful gradient information, leaving open the question of optimal step size selection.

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.