Abstract
We provide an improved analysis of normalized SGD showing that adding momentum provably removes the need for large batch sizes on non-convex objectives. Then, we consider the case of objectives with bounded second derivative and show that in this case a small tweak to the momentum formula allows normalized SGD with momentum to find an $\epsilon$-critical point in $O(1/\epsilon^{3.5})$ iterations, matching the best-known rates without accruing any logarithmic factors or dependence on dimension. We also provide an adaptive method that automatically improves convergence rates when the variance in the gradients is small. Finally, we show that our method is effective when employed on popular large scale tasks such as ResNet-50 and BERT pretraining, matching the performance of the disparate methods used to get state-of-the-art results on both tasks.
Introduction
In the landscape of deep learning optimization, a significant divide exists between computer vision, where standard Stochastic Gradient Descent (SGD) with momentum is the norm, and natural language processing, where adaptive methods like Adam, LARS, or LAMB dominate. Normalized SGD, which updates weights based on the direction rather than the magnitude of the gradient, is theoretically appealing for non-convex landscapes but has historically been hampered by a "theory-practice gap." Specifically, normalization can amplify noise in gradient estimates, leading previous theoretical analyses to mandate impractically large batch sizes. This paper demonstrates that the simple addition of momentum effectively mitigates this noise, allowing normalized SGD to perform robustly with standard batch sizes.
Proposed Methodology: NIGT
The core contribution of this work is the Normalized SGD with Implicit Gradient Transport (NIGT) algorithm. NIGT utilizes a sophisticated momentum buffer ($m_t$) that acts as a low-pass filter, smoothing out noise before the normalization step.
A key innovation is the "Implicit Gradient Transport" update. By incorporating a look-ahead step to estimate the gradient, the algorithm accounts for the curvature of the loss function. Under the assumption of second-order smoothness (where the third derivative of the loss is bounded), NIGT can cancel out specific error terms that typically limit standard SGD.
The authors also introduce an Adaptive NIGT variant. This version automatically adjusts learning rates and momentum parameters on the fly, eliminating the need for prior knowledge of noise variance, though it currently requires two gradient samples per iteration.
Theoretical Contributions
The paper establishes several significant theoretical results:
- Momentum as a Noise Rescue: Momentum averages gradients over time, ensuring the error remains small enough that the normalization step does not misdirect the optimizer.
- Breaking the $T^{-1/4}$ Barrier: While standard SGD is limited to a convergence rate of $O(T^{-1/4})$, NIGT achieves $O(T^{-2/7})$ (or $O(\epsilon^{-3.5})$) under second-order smoothness assumptions.
- Dimension-Free Scaling: The convergence bounds are independent of the number of parameters, making the theory directly applicable to modern models with billions of parameters.
- Memory Efficiency: Unlike Adam, which stores both first and second moments, NIGT only requires a single momentum buffer, significantly reducing memory overhead for massive models.
Empirical Results
The versatility of NIGT was validated on two major large-scale benchmarks to demonstrate its potential as a unified optimizer.
BERT Pretraining
NIGT was applied to BERT-Base pretraining using the Wikipedia and BooksCorpus datasets (approx. 3.3B words). The model achieved a Masked Language Modeling (MLM) accuracy of 70.91%, slightly outperforming the industry-standard Adam optimizer (70.76%) under identical conditions.
ImageNet Classification
On the ImageNet dataset using a ResNet-50 architecture, NIGT achieved a Top-1 validation accuracy of 76.37%. This result matches the performance of a heavily tuned SGD baseline (76.2%), demonstrating that a single algorithm can excel in domains typically requiring completely different optimization strategies.
Conclusion and Future Work
NIGT bridges the gap between theory and practice for normalized SGD, providing a unified, memory-efficient optimizer that achieves state-of-the-art performance across vision and language tasks. Future research will focus on removing the dual-sample requirement for the adaptive variant and investigating why certain empirical heuristics, such as linear warm-up and weight-norm scaling, continue to provide performance gains beyond current theoretical predictions.
Summary updated