[Paper Review] Stochastic Normalized Gradient Descent with Momentum for Large-Batch Training
This paper proposes Stochastic Normalized Gradient Descent with Momentum (SNGM), a novel optimization method that combines normalized gradient descent with Polyak's momentum to enable effective large-batch training in deep learning. SNGM theoretically achieves convergence to an ϵ-stationary point with lower computation complexity than momentum SGD, enabling faster training and state-of-the-art test accuracy even at large batch sizes without requiring warm-up or learning rate scaling heuristics.
Stochastic gradient descent~(SGD) and its variants have been the dominating optimization methods in machine learning. Compared to SGD with small-batch training, SGD with large-batch training can better utilize the computational power of current multi-core systems such as graphics processing units~(GPUs) and can reduce the number of communication rounds in distributed training settings. Thus, SGD with large-batch training has attracted considerable attention. However, existing empirical results showed that large-batch training typically leads to a drop in generalization accuracy. Hence, how to guarantee the generalization ability in large-batch training becomes a challenging task. In this paper, we propose a simple yet effective method, called stochastic normalized gradient descent with momentum~(SNGM), for large-batch training. We prove that with the same number of gradient computations, SNGM can adopt a larger batch size than momentum SGD~(MSGD), which is one of the most widely used variants of SGD, to converge to an $ε$-stationary point. Empirical results on deep learning verify that when adopting the same large batch size, SNGM can achieve better test accuracy than MSGD and other state-of-the-art large-batch training methods.
Motivation & Objective
- To address the generalization accuracy drop commonly observed in large-batch SGD training, especially in deep neural networks.
- To develop a theoretically grounded optimization method that maintains high test accuracy while using large batch sizes.
- To improve training efficiency by reducing the number of parameter updates required to reach convergence.
- To provide a theoretical analysis of convergence complexity for relaxed smooth non-convex objectives, a gap in prior work.
Proposed method
- SNGM integrates normalized gradient descent with Polyak's momentum, where the update direction is scaled by the inverse of the gradient norm to stabilize optimization.
- The method uses a momentum term that accumulates normalized gradient directions, improving convergence stability in high-batch regimes.
- SNGM avoids heuristic learning rate scaling and warm-up strategies by inherently stabilizing training through gradient normalization.
- The algorithm is designed for large-batch training, with theoretical guarantees on convergence complexity under relaxed smoothness assumptions.
- It employs a poly power learning rate schedule and gradient accumulation to maintain training stability when using very large batch sizes.
- Theoretical analysis shows SNGM achieves an O(1/ε⁴) computation complexity for relaxed smooth objectives, a novel result in stochastic optimization.
Experimental results
Research questions
- RQ1Can a normalized gradient method with momentum achieve better generalization than standard momentum SGD when using large batch sizes?
- RQ2Does SNGM maintain convergence to an ϵ-stationary point with lower computation complexity than momentum SGD under the same batch size?
- RQ3Can SNGM achieve state-of-the-art test accuracy on large-batch training without relying on heuristic techniques like warm-up or learning rate scaling?
- RQ4What is the theoretical convergence complexity of stochastic optimization methods under relaxed smoothness assumptions?
Key findings
- On CIFAR10, SNGM with a batch size of 4096 achieved 91.42% test accuracy on ResNet20, matching the 91.63% accuracy of MSGD with a small batch size of 128.
- On ResNet56, SNGM achieved 93.12% test accuracy at large batch size 4096, outperforming both MSGD (88.55%) and LARS (92.98% with warm-up).
- On ImageNet, SNGM with batch size 8192 achieved 69.65% top-1 accuracy on ResNet18 and 75.42% on ResNet50, closely matching MSGD’s 69.71% and 75.70% at smaller batch sizes.
- SNGM achieved these results without using warm-up or learning rate scaling, unlike LARS and other heuristic methods, demonstrating its robustness.
- Theoretical analysis confirms that SNGM achieves an O(1/ε⁴) computation complexity for relaxed smooth objectives, a novel result in stochastic optimization.
- SNGM can adopt a larger batch size than MSGD to converge to the same ϵ-stationary point with identical computation complexity, implying faster convergence.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.