NAG-GS: A Semi-Implicit Stochastic Optimizer with Large-Step Stability

Valentin Leplat, Daniil Merkulov, Aleksandr Katrutsa, Daniel Bershatsky, Olga Tsymboi +1 more
9/29/2022
5 citations
math.OCcs.LGmath.NA

Official code: skolai/nag-gs (9 stars, Python, MIT, last commit 2022-12-03). 1 more implementation below.

Abstract

Stochastic first-order methods are widely used for large-scale optimization and machine learning, where their performance often depends on the learning rate. We study NAG-GS, a stochastic momentum method based on a semi-implicit Gauss--Seidel discretization of a Nesterov-type flow.

Show full abstract

For strongly convex quadratics, we determine the exact range of stable step sizes for fixed damping and the step size that minimizes the worst-case spectral radius. When the damping equals the strong-convexity parameter, the method recovers the accelerated asymptotic factor $(\sqrtκ-1)/(\sqrtκ+1)$, where $κ$ is the condition number. We also prove that the quadratic iteration converges linearly with dynamic damping when its limiting fixed-damping iteration is stable. For general strongly convex, possibly nonsmooth objectives, we establish an $O(1/k)$ bound on the expected objective gap of the last iterate, using a conditionally unbiased stochastic first-order oracle with bounded second moment. The result holds with dynamic damping from any $γ_0>0$. We show that NAG-GS can also be written as a Heavy-Ball iteration with explicitly determined step sizes and momentum coefficients. We test the stochastic result on nonsmooth hinge-loss classification problems, and further evaluate NAG-GS on quadratic problems, logistic regression, convolutional neural networks, RoBERTa, and Vision Transformers. The experiments show that NAG-GS can remain effective at learning rates where standard optimizers become unstable or lose accuracy.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
skolai/nag-gsOfficial9PythonMIT2022-12-03
naggsopt/naggsOfficial0Jupyter Notebook–2023-08-10
skolai/nag-gsOfficial100%
MIT

NAG-GS: Nesterov Accelerated Gradients with Gauss-Siedel splitting

91PythonSep 29, 20223 years agoMIT
momentum-optimization-algorithmnesterov-accelerated-sgdoptimizer
naggsopt/naggsOfficial100%

Code for "NAG-GS: Semi-Implicit, Accelerated and Robust Stochastic Optimizer" experiments

00Jupyter Notebook, PythonAug 9, 20233 years ago

Similar Papers

Cite this paper

@article{leplat2022naggs,
  title  = {NAG-GS: A Semi-Implicit Stochastic Optimizer with Large-Step Stability},
  author = {Valentin Leplat and Daniil Merkulov and Aleksandr Katrutsa and Daniel Bershatsky and Olga Tsymboi and Ivan Oseledets},
  year   = {2022},
  eprint = {2209.14937},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.14937}
}

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

Discussion