[Paper Review] Momentum via Primal Averaging: Theoretical Insights and Learning Rate Schedules for Non-Convex Optimization
This paper introduces a novel Lyapunov analysis of stochastic gradient descent with momentum (SGD+M) using the primal averaging (PA) reformulation, revealing precise conditions under which momentum accelerates convergence in non-convex optimization. It identifies that abrupt learning rate changes harm stability and proposes gradual hyperparameter schedules that maintain convergence and avoid training loss spikes.
Momentum methods are now used pervasively within the machine learning community for training non-convex models such as deep neural networks. Empirically, they out perform traditional stochastic gradient descent (SGD) approaches. In this work we develop a Lyapunov analysis of SGD with momentum (SGD+M), by utilizing a equivalent rewriting of the method known as the stochastic primal averaging (SPA) form. This analysis is much tighter than previous theory in the non-convex case, and due to this we are able to give precise insights into when SGD+M may out-perform SGD, and what hyper-parameter schedules will work and why.
Motivation & Objective
- To provide a tighter, more insightful Lyapunov analysis of SGD+M in non-convex settings than prior work.
- To explain why momentum accelerates optimization, especially in early training stages.
- To identify flaws in standard, abrupt learning rate schedule practices within momentum methods.
- To propose a new, gradual hyperparameter scheduling strategy that maintains stability and performance.
Proposed method
- Reformulates SGD+M into the stochastic primal averaging (SPA) form, introducing an auxiliary variable $ z_k $ as a central component of the algorithm.
- Applies a Lyapunov function analysis to the SPA form, tracking the evolution of $ f(z_k) - f^* $ and momentum-related terms.
- Derives a bound on the Lyapunov function increment that includes terms dependent on $ \|x_k - x_{k-1}\|^2 $, $ \|g_k\|^2 $, and gradient noise $ \sigma^2 $.
- Uses the equivalence between the SPA form and standard SGD+M to derive conditions under which momentum terms are beneficial or harmful.
- Analyzes the impact of changing step size $ \alpha_k $ and momentum $ \beta_k $, showing that abrupt changes destabilize the Lyapunov function.
- Proposes a geometric, gradual learning rate and momentum schedule where $ \eta $ and $ c $ are adjusted by a small factor (e.g., 1.0005) per step to avoid instability.
Experimental results
Research questions
- RQ1Under what conditions does momentum in SGD+M provide a convergence advantage over standard SGD in non-convex problems?
- RQ2Why do standard, stage-wise learning rate schedules for SGD+M lead to training loss spikes in practice?
- RQ3How do changes in learning rate and momentum parameters affect the stability of the Lyapunov function in the primal averaging framework?
- RQ4What hyperparameter schedule ensures stable convergence in the primal averaging form without destabilizing the momentum dynamics?
- RQ5Can the primal averaging formulation provide deeper theoretical insight into the behavior of momentum methods than traditional SGD+M analysis?
Key findings
- The Lyapunov analysis in the primal averaging form reveals that momentum introduces extra terms dependent on $ \|x_k - x_{k-1}\|^2 $, which can be destabilizing if hyperparameters change abruptly.
- Abrupt learning rate reductions cause the coefficient of $ \|x_k - x_{k-1}\|^2 $ in the Lyapunov step to become positive, leading to instability and training loss spikes.
- A gradual schedule—where $ \eta $ and $ c $ are adjusted geometrically by a small factor per step—avoids instability and maintains a negative coefficient on $ \|x_k - x_{k-1}\|^2 $.
- For $ c = 0.1 $ and $ \eta L = 0.1 $, the maximum allowable multiplicative change in $ \eta $ between steps is approximately $ r = 1.01 $, ensuring stability.
- Empirical results on CIFAR-10 and ImageNet show that the gradual schedule avoids training loss spikes and maintains final test accuracy compared to standard schedules.
- The analysis shows that decreasing $ \beta $ (momentum) rather than $ \alpha $ (step size) can be a more stable strategy, but only when done gradually.
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.