On the Provable Suboptimality of Momentum SGD in Nonstationary Stochastic Optimization

Sharan Sahu, Cameron Hogan, Martin T. Wells

Introduction

While momentum is widely considered the "gold standard" for accelerating neural network training, it can act as a double-edged sword in nonstationary environments. Most optimization theory focuses on finding a single, static minimizer ($\theta^*$). However, real-world machine learning—such as reinforcement learning or online recommendation systems—often occurs in environments where the data distribution shifts over time. In these scenarios, the objective is not to converge to a static point, but to track a moving target ($\theta^*_t$).

Practitioners have frequently observed that momentum variants, such as Polyak’s Heavy-Ball or Nesterov Acceleration, can become unstable or sluggish when the target moves quickly. This paper provides a rigorous theoretical explanation for this phenomenon, proving that the very mechanism that accelerates static optimization—averaging gradients over time—becomes a fundamental liability under distribution shift.

Theoretical Framework

The authors conduct a comprehensive theoretical analysis within the framework of $\mu$-strongly convex and $L$-smooth functions. Because momentum relies on both the current and previous iterates, the authors model it as a 2D state-space dynamical system, utilizing Lyapunov functions to establish stability and convergence.

The core of the analysis rests on finite-time tracking bounds for SGD and its momentum variants (SGDM). The tracking error is sharply decomposed into three components:

  1. Initialization Decay: The rate at which the algorithm forgets its starting point.
  2. Noise Floor: The error induced by stochasticity.
  3. Drift-Induced Lag: The penalty incurred by the moving target.

Crucially, the authors complement these upper bounds with minimax lower bounds under gradient-variation constraints. This establishes that the tracking penalty observed in momentum is not merely an analytical artifact of the proof technique, but an information-theoretic barrier inherent to the algorithm itself.

The Cost of Momentum: Key Insights

The theoretical decomposition exposes a fundamental trade-off in the use of momentum:

  • The Drift-Amplification Penalty: Momentum acts as a low-pass filter for noise. However, under distribution shift, this filtering creates "stale" gradients that point toward where the optimum used to be, rather than its current location.
  • The $\beta$ Divergence: As the momentum parameter $\beta$ approaches 1, the drift penalty diverges. High momentum increases sensitivity to initialization by a factor of $(1-\beta)^{-2}$ and inflates the noise floor by $(1-\beta)^{-1}$.
  • The Inertia Window: The analysis identifies a critical period, $\tau_\beta \approx \Omega(\kappa/(1-\beta))$, during which the algorithm is effectively "blind" to changes in the target's direction.
  • Regime Boundaries: The paper delineates clear regime boundaries. In noise-dominated regimes (slow drift, high noise), momentum remains beneficial for gradient smoothing. Conversely, in drift-dominated regimes (fast drift), vanilla SGD provably outperforms its accelerated counterparts because it discards outdated information more rapidly.

Empirical Validation

The theoretical claims are validated across four settings featuring a drifting minimizer (modeled as a normalized random walk): Strongly Convex Quadratics, Linear Regression, Logistic Regression, and a Teacher-Student MLP.

The empirical results closely match the theoretical predictions:

  • Quadratic Environments: On a drifting quadratic, increasing $\beta$ from 0.5 to 0.99 caused the mean tracking error for Heavy-Ball to explode from approximately 0.34 to 401.37. In contrast, vanilla SGD remained highly stable with an error of ~1.04.
  • Ill-Conditioning: In ill-conditioned linear regression scenarios ($\kappa=1000$), SGD achieved a tracking error of 0.168, vastly outperforming both Heavy-Ball and Nesterov, which plateaued at 0.898. The mathematics reveal that maintaining stability in ill-conditioned settings forces momentum to use significantly smaller step sizes, further crippling its ability to adapt to drift.

Limitations and Future Work

While the paper provides a robust foundation for understanding momentum in dynamic settings, it notes several avenues for future research. The current study focuses on fixed momentum ($\beta$); however, the authors hypothesize that adaptive momentum schemes (like Adam) suffer from similar stale-history effects. Additionally, the proofs rely on strong convexity. Extending these guarantees to the non-convex landscapes typical of deep learning remains an open challenge, though the qualitative "lag" behavior is expected to persist. Finally, while the authors propose a practical heuristic for "restarting" the momentum buffer when it misaligns with the gradient, rigorous theoretical analysis of such restart rules is left for future work.

Summary updated

BibTeX
@inproceedings{sahu2026provable,
  author = {Sharan Sahu and Cameron Hogan and Martin T. Wells},
  title = {{On the Provable Suboptimality of Momentum SGD in Nonstationary Stochastic Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=U1bxeLQLaK},
}
Figure