Skip to main content
QUICK REVIEW

[Paper Review] Fast Black-box Variational Inference through Stochastic Trust-Region Optimization

Jeffrey Regier, Michael I. Jordan|arXiv (Cornell University)|Jun 7, 2017
Stochastic Gradient Optimization TechniquesComputer Science12 references6 citations
TL;DR

TrustVI is a fast, second-order black-box variational inference algorithm that uses stochastic trust-region optimization with the reparameterization trick to achieve convergence in tens of iterations—typically one order of magnitude faster than ADVI—while provably converging to a stationary point and often finding better variational approximations than Hessian-free stochastic gradient methods like HFSGVI.

ABSTRACT

We introduce TrustVI, a fast second-order algorithm for black-box variational inference based on trust-region optimization and the reparameterization trick. At each iteration, TrustVI proposes and assesses a step based on minibatches of draws from the variational distribution. The algorithm provably converges to a stationary point. We implemented TrustVI in the Stan framework and compared it to two alternatives: Automatic Differentiation Variational Inference (ADVI) and Hessian-free Stochastic Gradient Variational Inference (HFSGVI). The former is based on stochastic first-order optimization. The latter uses second-order information, but lacks convergence guarantees. TrustVI typically converged at least one order of magnitude faster than ADVI, demonstrating the value of stochastic second-order information. TrustVI often found substantially better variational distributions than HFSGVI, demonstrating that our convergence theory can matter in practice.

Motivation & Objective

  • Address the slow convergence of stochastic first-order optimization in black-box variational inference, which often requires thousands of iterations.
  • Overcome the limitations of existing second-order methods like HFSGVI, which lack convergence guarantees and suffer from numerical instability due to large, unbounded steps.
  • Develop a stochastic second-order optimization framework that combines trust-region principles with the reparameterization trick for scalable and reliable variational inference.
  • Provide theoretical convergence guarantees for stochastic nonconvex optimization in the context of variational inference, ensuring robustness to curvature and stochasticity.
  • Demonstrate that convergence theory translates to practical performance improvements, outperforming both first-order and heuristic second-order baselines in speed and solution quality.

Proposed method

  • Use trust-region optimization to control step size adaptively, rejecting steps that lead to numerical overflow or objective degradation.
  • Leverage the reparameterization trick to enable stochastic gradient estimation of the ELBO using independent, i.i.d. draws from a base distribution.
  • Approximate Hessian-vector products via forward-mode automatic differentiation to efficiently compute second-order information without forming full Hessians.
  • Dynamically adjust the sampling rate for evaluating proposed steps using a Hoeffding bound to ensure sufficient accuracy in stochastic Hessian and gradient estimates.
  • Integrate a two-phase optimization strategy: first, a learning rate adaptation phase using 50 SGD iterations across multiple candidates; second, full TrustVI optimization with the best-performing learning rate.
  • Apply trust-region updates that are robust to negative curvature, allowing descent even in nonconvex regions where Newton-type methods may fail.

Experimental results

Research questions

  • RQ1Can stochastic trust-region optimization with second-order information significantly accelerate convergence in black-box variational inference compared to first-order methods like ADVI?
  • RQ2Does the inclusion of convergence guarantees in a stochastic second-order method lead to better practical performance than heuristic second-order approaches like HFSGVI?
  • RQ3How does TrustVI’s adaptive sampling strategy for stochastic Hessian and gradient estimation affect convergence stability and computational efficiency?
  • RQ4In what scenarios does TrustVI outperform HFSGVI in terms of both convergence speed and final ELBO value, especially when HFSGVI suffers from numerical overflow?
  • RQ5To what extent does the theoretical convergence guarantee of TrustVI translate into practical robustness and improved solution quality across diverse Bayesian models?

Key findings

  • TrustVI typically converged at least one order of magnitude faster than ADVI across a large collection of Bayesian models, with 136 out of 137 models (99%) solved more quickly.
  • For 69 models (50%), TrustVI was at least 12x faster than ADVI, and for 34 models (25%), it was at least 36x faster.
  • On 126 of 183 models (69%), TrustVI and ADVI found median optimal ELBO values that did not differ substantively, while TrustVI outperformed ADVI on 51 models (28%) and was outperformed on only 6 (3%).
  • TrustVI outperformed HFSGVI in solution quality on 51 of 160 models (28%), with HFSGVI failing to converge on 23 models due to numerical overflow, which were excluded from analysis.
  • Despite HFSGVI's faster early progress on some models, TrustVI consistently avoided poor steps through trust-region rejection, leading to more stable and higher-quality solutions.
  • TrustVI’s convergence guarantees were practically meaningful: it avoided the instability of HFSGVI and achieved better median ELBO values on more than one-third of the models where HFSGVI failed or degraded the objective.

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.