NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Enhancing Optimizer Stability: Momentum Adaptation of The NGN Step-size

Rustem Islamov, Niccolò Ajroldi, Antonio Orvieto, Aurelien Lucchi

Abstract

Tuning learning rates is a notoriously resource-intensive aspect of deep learning. This paper introduces NGN-M, an optimizer that integrates the robustness of Normalized Gauss-Newton (NGN) step-sizes with heavy-ball momentum. NGN-M achieves performance parity with state-of-the-art optimizers like Adam and SGD while exhibiting unprecedented stability across a vast range of step-size hyperparameters—remaining functional even when the learning rate is set orders of magnitude higher than the theoretical optimum.

The Challenge of Hyperparameter Sensitivity

Modern deep learning relies heavily on adaptive optimizers such as Adam and RMSprop. Despite their power, these methods are highly sensitive to the initial learning rate. Excessive step-sizes lead to catastrophic divergence, while insufficient ones result in stalled training. This sensitivity necessitates expensive hyperparameter tuning and often leads to "loss spikes" in large-scale models like Transformers.

Existing "Polyak-type" step-sizes attempt to calculate optimal updates based on local geometry but often lack the momentum required for speed or rely on the "interpolation condition" (the assumption that a model can perfectly fit all data points), which rarely holds in practice.

Methodology: NGN-M and NGN-MD

The authors extend the Normalized Gauss-Newton (NGN) framework, which derives step-sizes by applying a Gauss-Newton update to a regularized first-order expansion of the loss. Two primary extensions are proposed:

  1. NGN-M (Momentum): Heavy-ball momentum is integrated by calculating the adaptive step-size for the gradient before it enters the momentum buffer. This configuration is theoretically sound and empirically more stable than alternative momentum integrations.
  2. NGN-MD (Diagonal/Coordinate-wise): For complex architectures like Transformers, NGN-MD applies the NGN logic to each parameter individually (diagonal preconditioning), providing the per-parameter adaptability of Adam with the inherent stability of the NGN derivation.
NGN-M trajectories on the Rosenbrock function demonstrate how the optimizer navigates complex landscapes and narrow valleys without diverging, even with varying hyperparameter settings.

Theoretical Contribution: The authors provide a convergence rate of $O(1/\sqrt{K})$ for NGN-M in convex settings. Notably, this proof does not require bounded gradients or the interpolation condition, making it highly relevant to real-world stochastic optimization.

Key Insights

  • The "Non-Divergence" Property: NGN-M effectively "shrinks" updates automatically when local curvature is too high. While SGD and Adam diverge rapidly if the learning rate is set too high (e.g., $10^{-1}$ or $10^0$), NGN-M remains stable at step-sizes as high as $10^2$ or $10^3$.
  • Automatic Annealing: The effective step-size of NGN-M naturally mimics a learning rate schedule, increasing during an initial warm-up phase and decreasing as it approaches a minimum, potentially obviating the need for manual cosine annealing schedules.
  • Momentum as a Stabilizer: In complex landscapes like the Rosenbrock function, momentum helps NGN-M navigate narrow valleys and find global minima more effectively than standard NGN or SGD-M.

Experimental Results

The authors evaluated NGN-M/MD across diverse benchmarks, including ResNet and Vision Transformers (ViT) on ImageNet-1k, and large-scale Transformer++ models (up to 1B parameters) on SlimPajama and FineWeb.

Final test accuracy vs. step-size for ResNet18 and ViT-tiny on ImageNet-1k. NGN-M and NGN-MD maintain near-peak performance across a much wider range of step-sizes compared to SGD, Adam, and Momo.
  • Superior Stability: On ResNet20, NGN-M maintained near-peak accuracy across a step-size range spanning four orders of magnitude ($10^{-1}$ to $10^3$), whereas SGDM failed outside a narrow window.
  • Transformer Performance: On a 160M parameter Transformer++ model, NGN-MDv1 matched the perplexity of AdamW while allowing for significantly larger learning rates without crashing.
  • SOTA Matching: On ImageNet-1k with ResNet18, NGN-M achieved 67.12% accuracy, outperforming SGDM's 66.73% and matching finely-tuned AdamW and Momo variants.

Limitations and Future Work

Despite its stability, NGN-MDv1 is currently ~2.5x slower per update than PyTorch’s AdamW due to the requirement of an extra pass for weighted gradient norms. Future work aims to optimize this via overlapping calculations with the backward pass. Additionally, the interaction between weight decay and adaptive Polyak step-sizes requires further investigation, as does the extension of theoretical guarantees to non-convex landscapes and distributed training environments.

Summary updated

BibTeX
@inproceedings{islamov2025enhancing,
  author = {Rustem Islamov and Niccolò Ajroldi and Antonio Orvieto and Aurelien Lucchi},
  title = {{Enhancing Optimizer Stability: Momentum Adaptation of The NGN Step-size}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=9t2OtyQ9mf},
}
Figure