On the Provable Suboptimality of Momentum SGD in Nonstationary Stochastic Optimization

Sharan Sahu, Cameron J. Hogan, Martin T. Wells · OpenReview

TL;DR

This paper provides a rigorous theoretical analysis of momentum-based optimization methods (like SGD with momentum) in nonstationary settings where the data distribution shifts over time. They show that while momentum can help in stationary settings, it can actually hurt performance in dynamic environments by amplifying tracking lag and instability, a phenomenon they prove is not just an artifact but an information-theoretic barrier.

What Problem Does This Paper Address?

In many real-world machine learning scenarios, the underlying data distribution is not static. Think of online recommendation systems where user preferences change, or adaptive systems that need to track evolving optima. Traditional optimization methods like Stochastic Gradient Descent (SGD) are designed for stationary problems, aiming to find a single optimal solution. Momentum-based methods (like Heavy-Ball and Nesterov) are popular extensions that often accelerate convergence in stationary settings by smoothing gradients and reducing noise. However, their behavior in nonstationary environments, where gradients can become stale due to distribution shifts, is less understood. This paper tackles the question: when does momentum help, and when does it provably hurt, in tracking time-varying optima under strong convexity and smoothness?

Methods

The authors employ a multi-pronged theoretical approach:

  • Finite-time Tracking Bounds: They derive explicit bounds on the tracking error for SGD and its momentum variants. These bounds decompose the error into three key components: initialization decay, a noise floor, and a drift-induced lag. Crucially, they show how momentum explicitly penalizes the latter two terms, especially as the momentum parameter approaches 1.
  • Minimax Lower Bounds: To prove that the observed suboptimality of momentum is not just an artifact of their analysis but a fundamental limitation, they establish minimax lower bounds on dynamic regret. These bounds consider a "gradient-variation budget" and demonstrate an unavoidable "inertia window" for momentum methods in drift-dominated regimes, meaning they are forced to lag behind the true optimum for a period.
  • Lyapunov Analysis: For analyzing the complex dynamics of momentum methods, they utilize a 2D state-space representation and Lyapunov functions to derive stability conditions and bounds.
  • Experimental Validation: They conduct experiments on various tasks (quadratics, linear/logistic regression, MLPs) with drifting optima to empirically validate their theoretical findings.

Datasets

The paper does not introduce new datasets. Instead, it uses synthetic data generated for specific experimental setups to test the algorithms under controlled conditions of drift, noise, and conditioning. These setups include:

  • Strongly convex quadratics: Used to isolate the effects of drift, noise, and momentum.
  • Linear regression: With varying conditioning (κ=10 and κ=1000).
  • Logistic regression: With drifting decision boundaries.
  • Teacher-student MLP regression: A more complex non-linear setting.

Key Insights and Ideas

  • Momentum's Double-Edged Sword: While momentum smooths noise in stationary settings, it amplifies the "staleness" of gradients in dynamic settings. This leads to an "inertia window" where the algorithm lags behind the moving optimum.
  • Information-Theoretic Barrier: The penalty incurred by momentum in drift-dominated regimes is not just an artifact of the algorithms but a fundamental information-theoretic limitation.
  • Regime Split: The paper clearly delineates regimes where SGD outperforms momentum-based methods, particularly in nonstationary and ill-conditioned scenarios.
  • Drift-Amplification Penalty: As the momentum parameter $β$ approaches 1, the tracking error and instability can diverge, making vanilla SGD a more robust choice.
  • Time-Resolved Bounds: Their analysis provides bounds that are sensitive to recent drift, rather than relying on a single worst-case drift parameter.

Key Results

  • Finite-time bounds: The tracking error for SGD with momentum decomposes into initialization, noise, and drift components, with momentum explicitly penalizing the latter two.
  • Minimax lower bounds: For drift-dominated regimes, momentum methods incur an unavoidable inertia window, leading to systematic tracking lag.
  • Empirical validation: Experiments consistently show that SGD outperforms momentum-based methods (Heavy-Ball, Nesterov) in nonstationary settings, especially as drift, noise, or ill-conditioning increases. The gap widens significantly with higher momentum.
  • Stability conditions: The analysis reveals that high momentum can force smaller admissible step sizes, further hindering adaptation to drift, especially in ill-conditioned problems.

Limitations and Future Work

  • Fixed Momentum Parameter: The theoretical bounds and analysis are primarily for fixed momentum parameters ($β$). The authors conjecture that adaptive weighting schemes with time-varying $β$ might mitigate some of these penalties, but their analysis doesn't directly cover them.
  • Deterministic Accelerated Rates: The current Lyapunov analysis for SGDM doesn't recover the sharp deterministic accelerated rates known for Nesterov momentum in stationary settings.
  • Future Directions: The authors suggest exploring adaptive optimizers (like Adam) and developing methods that can dynamically adjust momentum or employ restart/windowing schemes to mitigate stale history effects. Adapting techniques for analyzing intermediate iterates could potentially recover accelerated rates in stochastic nonstationary settings.

Summary updated

BibTeX
@inproceedings{sahu2026provable,
  author = {Sharan Sahu and Cameron J. 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