Skip to main content
QUICK REVIEW

[Paper Review] Fast Second-Order Stochastic Backpropagation for Variational Inference

Kai Fan, Ziteng Wang|arXiv (Cornell University)|Sep 9, 2015
Gaussian Processes and Bayesian InferenceComputer Science30 references21 citations
TL;DR

This paper proposes HFSGVI, a scalable second-order stochastic optimization method for variational inference using Hessian-free Gaussian backpropagation with reparameterization. By efficiently computing curvature information via Hessian-vector products, it achieves faster convergence than first-order methods like SGD and AdaGrad, especially in deep latent variable models such as VAEs and Bayesian logistic regression.

ABSTRACT

We propose a second-order (Hessian or Hessian-free) based optimization method for variational inference inspired by Gaussian backpropagation, and argue that quasi-Newton optimization can be developed as well. This is accomplished by generalizing the gradient computation in stochastic backpropagation via a reparametrization trick with lower complexity. As an illustrative example, we apply this approach to the problems of Bayesian logistic regression and variational auto-encoder (VAE). Additionally, we compute bounds on the estimator variance of intractable expectations for the family of Lipschitz continuous function. Our method is practical, scalable and model free. We demonstrate our method on several real-world datasets and provide comparisons with other stochastic gradient methods to show substantial enhancement in convergence rates.

Motivation & Objective

  • Address the slow convergence of first-order stochastic gradient methods in deep latent variable models like VAEs and Bayesian logistic regression.
  • Overcome the high computational cost of exact Newton methods by enabling efficient Hessian-vector product computation in variational inference.
  • Develop a model-free, scalable optimization framework that leverages curvature information without requiring explicit Hessian inversion.
  • Demonstrate that second-order information improves convergence rates while maintaining linear computational complexity per iteration with respect to data size.
  • Extend the theoretical variance bounds of stochastic gradient estimators to multivariate, Lipschitz-continuous functions, generalizing prior univariate results.

Proposed method

  • Use reparameterization trick to express latent variables as deterministic functions of noise, enabling unbiased gradient and Hessian estimation.
  • Derive second-order gradients (Hessian and Hessian-vector products) for Gaussian variational approximations using properties of location-scale families.
  • Implement Hessian-free optimization to avoid explicit Hessian matrix inversion, reducing per-iteration cost from O(d²) to O(d) for d-dimensional latent space.
  • Combine Hessian-free optimization with stochastic backpropagation to form HFSGVI, a scalable second-order algorithm for joint parameter optimization.
  • Leverage the affine invariance of Newton-type methods to automatically adjust learning rates, eliminating manual tuning.
  • Apply the method to Bayesian logistic regression and variational auto-encoders, demonstrating practical scalability and convergence speed.

Experimental results

Research questions

  • RQ1Can second-order optimization via Hessian information be made scalable and efficient for variational inference in deep latent variable models?
  • RQ2How can Hessian-vector products be computed efficiently in Gaussian variational inference without inverting the full Hessian matrix?
  • RQ3Does incorporating curvature information lead to faster convergence compared to first-order stochastic gradient methods in real-world generative models?
  • RQ4Can the variance of stochastic gradient estimators for intractable expectations be bounded independently of dimension for Lipschitz-continuous functions?
  • RQ5How does HFSGVI compare in performance and convergence speed to first-order methods like SGD and AdaGrad on benchmark datasets?

Key findings

  • HFSGVI achieves significantly faster convergence than first-order methods like SGD and AdaGrad on both Bayesian logistic regression and VAEs, as shown by lower bound increase over time.
  • The algorithm maintains linear computational complexity per iteration with respect to the number of training data points, similar to SGD, despite using second-order information.
  • The variance of the stochastic lower bound estimator is bounded by a dimension-free constant for Lipschitz-continuous functions, extending prior univariate bounds.
  • Hessian-free optimization in HFSGVI eliminates the need for manual learning rate tuning due to its affine invariance, improving robustness.
  • Reconstruction results on the Olivetti face dataset show that HFSGVI produces sharper and more realistic images than AdaGrad, even with a bottlenecked latent space.
  • Visualization of the learned manifold using a 2D latent space confirms that HFSGVI captures meaningful data structure, such as facial identity variations, in a smooth and interpretable way.

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.