Skip to main content
QUICK REVIEW

[Paper Review] Generalized Polyak Step Size for First Order Optimization with Momentum

Xiaoyu Wang, Mikael Johansson|arXiv (Cornell University)|May 22, 2023
Stochastic Gradient Optimization TechniquesComputer Science3 citations
TL;DR

This paper proposes a generalized Polyak step size for first-order optimization with momentum, enabling adaptive learning rates that are robust to momentum parameter choice and effective for ill-conditioned problems. The method achieves faster, stable convergence in both deterministic and stochastic settings, outperforming prior adaptive step size methods in large-scale machine learning tasks.

ABSTRACT

In machine learning applications, it is well known that carefully designed learning rate (step size) schedules can significantly improve the convergence of commonly used first-order optimization algorithms. Therefore how to set step size adaptively becomes an important research question. A popular and effective method is the Polyak step size, which sets step size adaptively for gradient descent or stochastic gradient descent without the need to estimate the smoothness parameter of the objective function. However, there has not been a principled way to generalize the Polyak step size for algorithms with momentum accelerations. This paper presents a general framework to set the learning rate adaptively for first-order optimization methods with momentum, motivated by the derivation of Polyak step size. It is shown that the resulting techniques are much less sensitive to the choice of momentum parameter and may avoid the oscillation of the heavy-ball method on ill-conditioned problems. These adaptive step sizes are further extended to the stochastic settings, which are attractive choices for stochastic gradient descent with momentum. Our methods are demonstrated to be more effective for stochastic gradient methods than prior adaptive step size algorithms in large-scale machine learning tasks.

Motivation & Objective

  • To address the lack of principled adaptive step size methods for momentum-accelerated first-order optimization.
  • To overcome the sensitivity of the heavy-ball method to momentum parameter β and its oscillatory behavior on ill-conditioned problems.
  • To extend the success of the Polyak step size—known for optimal convergence in subgradient and SGD settings—to momentum-based algorithms.
  • To develop a theoretically grounded, stable, and practical adaptive step size policy for stochastic gradient methods with momentum.
  • To demonstrate superior empirical performance compared to existing adaptive step size methods in large-scale machine learning benchmarks.

Proposed method

  • Proposes a generalized Polyak step size for momentum methods by deriving an adaptive learning rate that depends on the current function value, gradient norm, and momentum direction.
  • Introduces a normalization term using the momentum direction’s norm, scaled by a hyperparameter c, to stabilize updates and reduce sensitivity to β.
  • Employs a maximum step size η_max to prevent divergence and ensures numerical stability.
  • Adapts the method to stochastic settings by using mini-batch estimates of function value and gradient, enabling use in large-scale deep learning.
  • Incorporates a warmup phase that gradually increases the learning rate to improve early training stability.
  • Extends the method to include weight decay, enabling application in standard deep learning training pipelines.

Experimental results

Research questions

  • RQ1Can the Polyak step size be generalized to momentum-based optimization methods in a principled and stable way?
  • RQ2How does the proposed adaptive step size perform in comparison to existing methods like L⁴ Mom, Adam, and step-decay schedules on ill-conditioned problems?
  • RQ3What is the impact of the hyperparameter c on convergence and robustness across different problem classes?
  • RQ4Can the adaptive step size significantly improve convergence speed and test accuracy in stochastic settings such as training deep neural networks?
  • RQ5Is the method robust to the choice of momentum parameter β, especially in high condition number problems?

Key findings

  • The proposed ALR-SMAG algorithm achieves 67.66% test accuracy on Tiny-ImageNet200 with ResNet18, outperforming SGDM with cosine decay (67.13%) and Adam (59.56%).
  • ALR-SMAG with warmup reaches 67.66% accuracy on Tiny-ImageNet200, surpassing L⁴ Mom (66.87%) and all baseline methods.
  • The hyperparameter c is robust across a wide range: c ∈ {0.1, 0.5} yields similar performance, with c = 0.1 recommended for CIFAR tasks and c = 0.3 or 0.5 for more challenging problems.
  • ALR-SMAG shows significantly faster and more stable convergence than L⁴ Mom, which is prone to explosion or slow convergence depending on α.
  • On CIFAR-100 with WRN-28-10, ALR-SMAG with warmup achieves 78.42% test accuracy, outperforming SGDM with cosine decay (77.15%) and Adam (76.89%).
  • The method is less sensitive to momentum parameter β and avoids the zigzag oscillations common in the heavy-ball method on ill-conditioned problems.

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.