Skip to main content
QUICK REVIEW

[Paper Review] SGD momentum optimizer with step estimation by online parabola model

Jarek Duda|arXiv (Cornell University)|Jul 16, 2019
Stochastic Gradient Optimization TechniquesComputer Science13 references9 citations
TL;DR

This paper proposes an online parabola modeling approach within the SGD momentum framework to estimate optimal step sizes using only first-order gradients. By applying online linear regression to track gradient trends along the momentum direction, it approximates curvature and enables adaptive, second-order-like step adjustments with minimal computational overhead, improving convergence in non-convex optimization for deep learning.

ABSTRACT

In stochastic gradient descent, especially for neural network training, there are currently dominating first order methods: not modeling local distance to minimum. This information required for optimal step size is provided by second order methods, however, they have many difficulties, starting with full Hessian having square of dimension number of coefficients. This article proposes a minimal step from successful first order momentum method toward second order: online parabola modelling in just a single direction: normalized $\hat{v}$ from momentum method. It is done by estimating linear trend of gradients $\vec{g}= abla F(\vecθ)$ in $\hat{v}$ direction: such that $g(\vecθ_\bot+θ\hat{v})\approx λ(θ-p)$ for $θ= \vecθ\cdot \hat{v}$, $g= \vec{g}\cdot \hat{v}$, $\vecθ_\bot=\vecθ-θ\hat{v}$. Using linear regression, $λ$, $p$ are MSE estimated by just updating four averages (of $g$, $θ$, $gθ$, $θ^2$) in the considered direction. Exponential moving averages allow here for inexpensive online estimation, weakening contribution of the old gradients. Controlling sign of curvature $λ$, we can repel from saddles in contrast to attraction in standard Newton method. In the remaining directions: not considered in second order model, we can simultaneously perform e.g. gradient descent. There is also discussed its learning rate approximation as $μ=σ_θ/ σ_g$, allowing e.g. for adaptive SGD - with learning rate separately optimized (2nd order) for each parameter.

Motivation & Objective

  • To address the challenge of optimal step size selection in stochastic gradient descent (SGD) for deep learning, where first-order methods lack curvature awareness.
  • To introduce a low-cost second-order approximation by modeling gradient trends along the momentum direction using online linear regression.
  • To enable adaptive learning rates via the ratio of parameter and gradient standard deviations ($\sigma_\theta / \sigma_g$), approximating inverse Hessian diagonal elements.
  • To improve convergence by detecting and repelling from saddle points through curvature sign control in a single direction.
  • To combine the efficiency of first-order momentum with second-order insight in a computationally lightweight, online manner.

Proposed method

  • Uses exponential moving averages of four statistics: $\overline{g}$, $\overline{\theta}$, $\overline{g\theta}$, and $\overline{\theta^2}$ along the momentum direction $\hat{v}$ to perform online linear regression on gradient trends.
  • Models the gradient $g(\theta) \approx \lambda(\theta - p)$ in the direction of the momentum vector $\vec{v}$, where $\lambda$ represents curvature and $p$ the estimated minimum location.
  • Estimates optimal step size using $\eta \propto \lambda^{-1}$, derived from the linear regression parameters to approximate Newton-like steps.
  • Introduces a learning rate approximation $\mu = \sigma_\theta / \sigma_g$ that provides a diagonal Hessian inverse approximation, enabling adaptive SGD per parameter.
  • Controls curvature sign to avoid saddle point attraction, enabling a saddle-free optimization behavior in the modeled direction.
  • Extends the method to higher dimensions via online PCA of recent gradients to identify a low-dimensional subspace for Hessian approximation, maintaining orthonormal basis and updating $d \times d$ Hessian estimates.

Experimental results

Research questions

  • RQ1Can a minimal second-order approximation be efficiently integrated into the SGD momentum framework using only first-order gradients?
  • RQ2Can online linear regression on gradient trends in a single direction provide a stable and adaptive step size estimate that improves convergence?
  • RQ3Can the ratio $\sigma_\theta / \sigma_g$ serve as a practical and effective approximation of the inverse Hessian diagonal for adaptive learning rates?
  • RQ4Can curvature sign control in a single direction help repel from saddle points, improving optimization stability?
  • RQ5Can the method be extended to higher-dimensional subspaces using online PCA while maintaining low computational cost?

Key findings

  • The method achieves second-order insight with only four online averages, enabling curvature-aware step size estimation at negligible computational cost.
  • The learning rate approximation $\mu = \sigma_\theta / \sigma_g$ provides a practical, adaptive alternative to full Hessian inversion, approximating diagonal Hessian inverses.
  • Curvature sign control allows repelling from saddle points, addressing a key limitation of standard Newton methods.
  • The approach maintains compatibility with standard momentum and gradient descent, enabling hybrid optimization strategies.
  • The method supports extension to higher-dimensional subspaces via online PCA, with $d \approx 10$ dimensions sufficient to capture dominant Hessian structure.
  • Empirical results suggest that the online parabola model enables faster convergence and improved generalization by adapting step size based on local curvature trends.

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.