Improving SGD convergence by online linear regression of gradients in multiple statistically relevant directions

Jarek Duda
1/31/2019
cs.LGstat.ML

Official code: JarekDuda/SGD-OGR-Hessian-estimator (17 stars, Mathematica, MIT, last commit 2023-05-11).

Abstract

Deep neural networks are usually trained with stochastic gradient descent (SGD), which minimizes objective function using very rough approximations of gradient, only averaging to the real gradient. Standard approaches like momentum or ADAM only consider a single direction, and do not try to model distance from extremum - neglecting valuable information from calculated sequence of gradients, often stagnating in some suboptimal plateau.

Show full abstract

Second order methods could exploit these missed opportunities, however, beside suffering from very large cost and numerical instabilities, many of them attract to suboptimal points like saddles due to negligence of signs of curvatures (as eigenvalues of Hessian). Saddle-free Newton method is a rare example of addressing this issue - changes saddle attraction into repulsion, and was shown to provide essential improvement for final value this way. However, it neglects noise while modelling second order behavior, focuses on Krylov subspace for numerical reasons, and requires costly eigendecomposion. Maintaining SFN advantages, there are proposed inexpensive ways for exploiting these opportunities. Second order behavior is linear dependence of first derivative - we can optimally estimate it from sequence of noisy gradients with least square linear regression, in online setting here: with weakening weights of old gradients. Statistically relevant subspace is suggested by PCA of recent noisy gradients - in online setting it can be made by slowly rotating considered directions toward new gradients, gradually replacing old directions with recent statistically relevant. Eigendecomposition can be also performed online: with regularly performed step of QR method to maintain diagonal Hessian. Outside the second order modeled subspace we can simultaneously perform gradient descent.

View on arXivView PDF

Code Implementations(1)

MIT

SGD (stochastic gradient descent) with OGR - online gradient regression Hessian estimator

172MathematicaNov 27, 20223 years agoMIT

Similar Papers

Cite this paper

@article{duda2019improving,
  title  = {Improving SGD convergence by online linear regression of gradients in multiple statistically relevant directions},
  author = {Jarek Duda},
  year   = {2019},
  eprint = {1901.11457},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1901.11457}
}

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

Discussion