Approximating Hessian matrices using Bayesian inference: a new approach for quasi-Newton methods in stochastic optimization

Andre Carlon, Luis Espath, Raul Tempone
7/31/2022
math.OC
bayesian

Official code: agcarlon/bayhess (2 stars, Python, GPL-3.0, last commit 2023-01-10).

Abstract

Using quasi-Newton methods in stochastic optimization is not a trivial task given the difficulty of extracting curvature information from the noisy gradients. Moreover, pre-conditioning noisy gradient observations tend to amplify the noise.

Show full abstract

We propose a Bayesian approach to obtain a Hessian matrix approximation for stochastic optimization that minimizes the secant equations residue while retaining the extreme eigenvalues between a specified range. Thus, the proposed approach assists stochastic gradient descent to converge to local minima without augmenting gradient noise. We propose maximizing the log posterior using the Newton-CG method. Numerical results on a stochastic quadratic function and an $\ell_2$-regularized logistic regression problem are presented. In all the cases tested, our approach improves the convergence of stochastic gradient descent, compensating for the overhead of solving the log posterior maximization. In particular, pre-conditioning the stochastic gradient with the inverse of our Hessian approximation becomes more advantageous the larger the condition number of the problem is.

View on arXivView PDF

Code Implementations(1)

agcarlon/bayhessOfficial100%
GPL-3.0

Bayesian Hessian Approximation for Stochastic Optimization

20Python, MakefileAug 28, 20223 years agoGPL-3.0

Similar Papers

Cite this paper

@article{carlon2022approximating,
  title  = {Approximating Hessian matrices using Bayesian inference: a new approach for quasi-Newton methods in stochastic optimization},
  author = {Andre Carlon and Luis Espath and Raul Tempone},
  year   = {2022},
  eprint = {2208.00441},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.00441}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.00441.svg)](https://codeofpaper.com/paper/2208.00441)

Discussion