Effects of momentum scaling for SGD

Dmitry Pasechnyuk, Alexander Gasnikov, Martin TakáčarXiv 2022 · DOI

Abstract

The paper studies the properties of stochastic gradient methods with preconditioning. We focus on momentum updated preconditioners with momentum coefficient $\beta$. Seeking to explain practical efficiency of scaled methods, we provide convergence analysis in a norm associated with preconditioner, and demonstrate that scaling allows one to get rid of gradients Lipschitz constant in convergence rates. Along the way, we emphasize important role of $\beta$, undeservedly set to constant $0.99...9$ at the arbitrariness of various authors. Finally, we propose the explicit constructive formulas for adaptive $\beta$ and step size values.

Introduction: Beyond the Global Lipschitz Constant

In the world of optimization, the "smoothness" of a function is usually captured by the Lipschitz constant ($L$). If $L$ is large, the function can change directions abruptly, forcing practitioners to use tiny step sizes to avoid overshooting. Most convergence proofs for Stochastic Gradient Descent (SGD) are shackled to this global $L$, which is often unknown or varies wildly across the loss landscape.

Furthermore, many popular adaptive optimizers (like Adam) use a momentum parameter $\beta$ to smooth out preconditioner updates. While practitioners almost universally set $\beta$ to $0.99$ or $0.999$, there has been little theoretical guidance on why this is optimal or how to change it based on the data. This research aims to replace this "rule of thumb" with a rigorous mathematical framework for preconditioned stochastic gradient methods.

Theoretical Framework: Norm Switching and Scaling

The authors analyze Scaled SGD, where the update step is modified by a preconditioner $P_t$ (a matrix that reshapes the gradient space). A key methodological contribution is Norm Switching: instead of analyzing convergence in the standard Euclidean norm, they use a norm associated with the preconditioner itself. This "local" view allows them to bypass the global Lipschitz constant.

By scaling the gradient by an approximation of the Hessian (the matrix of second derivatives), the "effective" Lipschitz constant becomes close to 1. This makes the step size choice much more stable and less dependent on global properties of the function. One of the most elegant findings is that the final convergence rate depends on the harmonic average of local Lipschitz constants ($L_t$). Because the harmonic average is "minimum-dominated," the algorithm's performance is determined by the smoothest parts of the path it takes, not the sharpest spikes it encounters.

The Balancing Act of Momentum $\beta$

The momentum parameter $\beta$ isn't just a smoothing constant; it manages a critical trade-off. A small $\beta$ allows the preconditioner to adapt quickly to local geometry, but a large $\beta$ is needed to suppress the noise (variance) in stochastic gradients.

Empirical evidence showing an optimal momentum parameter $\beta_* \approx 0.975$ for the a9a dataset, significantly different from the standard 0.99 default.

The researchers identified a "fracture point" in the relationship between step size and momentum. By solving for this point, they produced an adaptive $\beta$ that starts low (to let the preconditioner learn the initial landscape) and increases as the algorithm nears the optimum. This is supported by empirical results on the a9a dataset (predicting adult income), where the optimal $\beta$ varies significantly from the standard $0.99$ and evolves over time.

The evolution of the optimal momentum parameter $\beta_*$ over iterations, demonstrating the need for an adaptive approach rather than a fixed constant.

Key Results and Robustness

The proposed "Scaled L-SVRG" algorithm (a variance-reduced version of the theory) converged significantly faster than standard L-SVRG across different smoothness levels. The experiments confirmed that while standard methods struggle when the problem is ill-conditioned (high scaling factors $A$), the scaled methods maintain high precision.

Limitations and Future Work

While the theory is robust for diagonal preconditioners, which are computationally cheap, the framework for non-diagonal scaling is still being developed. Additionally, the authors noted unexpected results when using line-search, where small $\beta$ values became acceptable even for difficult problems—a phenomenon that warrants further investigation. Despite the computational overhead of calculating second-order information, the faster overall convergence makes these scaled methods highly efficient in practice.

Summary updated

BibTeX
@misc{pasechnyuk2022effects,
  author = {Dmitry Pasechnyuk and Alexander Gasnikov and Martin Takáč},
  title = {{Effects of momentum scaling for SGD}},
  year = {2022},
  eprint = {2210.11869},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.11869},
}
Figure