NAG-GS: A Semi-Implicit Stochastic Optimizer with Large-Step Stability
Organizations: Skolkovo Institute of Science and Technology, Moscow, Russia · Moscow Institute of Physics and Technology, Moscow, Russia · AIRI, Moscow, Russia · Sber AI Lab, Moscow, Russia
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. 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 , 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 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 . 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.
Figures & tables
| Problem | Damping | Step size | Result |
|---|---|---|---|
| Strongly convex quadratic, deterministic | fixed | constant | exact Schur-stability interval; optimal fixed step for |
| Strongly convex quadratic, deterministic | dynamic | constant | linear convergence when the limiting system is Schur stable |
| Strongly convex quadratic, stochastic | fixed | constant | stationary covariance inside the Schur-stable region |
| General strongly convex, possibly nonsmooth | dynamic | decreasing | rate in expectation under a conditionally unbiased oracle |
| Nonconvex learning problems | fixed, tuned | fixed/tuned experimentally | empirical study only |
| Method | Gap after 10 epochs | Gap after 40 epochs | Test accuracy after 40 epochs |
|---|---|---|---|
| NAG-GS | |||
| SSGD | |||
| Pegasos | |||
| AdaGrad |
| Learning rate | Epochs | Optimizer | Best test accuracy |
|---|---|---|---|
| 40 | NAG-GS | ||
| SGD-M | |||
| AdamW | |||
| AC-SA | |||
| 20 | NAG-GS | ||
| SGD-M |
| Learning rate | Optimizer | Best test accuracy |
| NAG-GS | ||
| SGD-MW | ||
| NAG-GS | ||
| SGD-MW | ||
| NAG-GS | ||
| SGD-MW | – |
| Optimizer | CoLA | MNLI | MRPC | QNLI | QQP | RTE | SST2 | STS-B | WNLI |
|---|---|---|---|---|---|---|---|---|---|
| AdamW | 61.60 | 87.56 | 88.24 | 92.62 | 91.69 | 78.34 | 94.95 | 90.68 | 56.34 |
| NAG-GS | 61.60 | 87.24 | 90.69 | 92.59 | 91.01 | 77.97 | 94.50 | 90.21 | 56.34 |
| Stage | NAG-GS | AdamW |
|---|---|---|
| After 1 epoch | 0.8419 | 0.8269 |
| After 25 epochs | 0.8606 | 0.8324 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Optimizer | Mean, s | Variance, s 2 | Rel. Mean | Rel. Variance |
|---|---|---|---|---|
| SGD | 0.458 | 0.008 | 1.0 | 1.0 |
| NAG-GS | 1.648 | 0.045 | 3.6 | 5.5 |
| SGD-M | 3.374 | 0.042 | 7.4 | 5.2 |
| SGD-MW | 3.512 | 0.037 | 7.7 | 4.7 |
| AdamW | 5.208 | 0.102 | 11.4 | 12.6 |
| Adam | 7.919 | 0.169 | 17.3 | 20.8 |
Stochastic Optimization
Stochastic optimization studies how to find good decisions or model parameters when objectives, data, or feedback are random or noisy.
See all 210 papers