Low Rank Saddle Free Newton: A Scalable Method for Stochastic Nonconvex Optimization

Thomas O'Leary-Roseberry, Nick Alger, Omar Ghattas
2/7/2020
9 citations
math.OCcs.LGmath.NA

Official code: tomoleary/hessianlearn (28 stars, Python, LGPL-3.0, TensorFlow, last commit 2022-03-29). 1 more implementation below.

Abstract

In modern deep learning, highly subsampled stochastic approximation (SA) methods are preferred to sample average approximation (SAA) methods because of large data sets as well as generalization properties. Additionally, due to perceived costs of forming and factorizing Hessians, second order methods are not used for these problems.

Show full abstract

In this work we motivate the extension of Newton methods to the SA regime, and argue for the use of the scalable low rank saddle free Newton (LRSFN) method, which avoids forming the Hessian in favor of making a low rank approximation. Additionally, LRSFN can facilitate fast escape from indefinite regions leading to better optimization solutions. In the SA setting, iterative updates are dominated by stochastic noise, and stability of the method is key. We introduce a continuous time stability analysis framework, and use it to demonstrate that stochastic errors for Newton methods can be greatly amplified by ill-conditioned Hessians. The LRSFN method mitigates this stability issue via Levenberg-Marquardt damping. However, generally the analysis shows that second order methods with stochastic Hessian and gradient information may need to take small steps, unlike in deterministic problems. Numerical results show that LRSFN can escape indefinite regions that other methods have issues with; and even under restrictive step length conditions, LRSFN can outperform popular first order methods on large scale deep learning tasks in terms of generalizability for equivalent computational work.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
tomoleary/hessianlearnOfficial28PythonLGPL-3.02022-03-29
tomoleary/MatrixFreeNewton.jlOfficial7JuliaLGPL-2.12021-08-17
TensorFlowLGPL-3.0

Hessian-based stochastic optimization in TensorFlow and keras

283Python, Jupyter NotebookMay 2, 20194 years agoLGPL-3.0
kerasnewton-methodoptimizationoptimization-algorithmssecond-order-optimization+2 more
LGPL-2.1

Prototyping of matrix free Newton methods in Julia

70JuliaJun 18, 20215 years agoLGPL-2.1
julianewton-methodoptimizationoptimization-algorithmssecond-order-optimization+1 more

Similar Papers

Cite this paper

@article{olearyroseberry2020rank,
  title  = {Low Rank Saddle Free Newton: A Scalable Method for Stochastic Nonconvex Optimization},
  author = {Thomas O'Leary-Roseberry and Nick Alger and Omar Ghattas},
  year   = {2020},
  eprint = {2002.02881},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.02881}
}

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/2002.02881.svg)](https://codeofpaper.com/paper/2002.02881)

Discussion