Abstract
Stochastic gradient methods with momentum are widely used in applications and at the core of optimization subroutines in many popular machine learning libraries. However, their sample complexities have not been obtained for problems beyond those that are convex or smooth. This paper establishes the convergence rate of a stochastic subgradient method with a momentum term of Polyak type for a broad class of non-smooth, non-convex, and constrained optimization problems. Our key innovation is the construction of a special Lyapunov function for which the proven complexity can be achieved without any tuning of the momentum parameter. For smooth problems, we extend the known complexity bound to the constrained case and demonstrate how the unconstrained case can be analyzed under weaker assumptions than the state-of-the-art. Numerical results confirm our theoretical developments.
Introduction
In modern machine learning, optimization landscapes are rarely smooth or convex. Practitioners frequently navigate "messy" objective functions characterized by non-convexity (multiple local minima) and non-smoothness (sharp kinks resulting from ReLU activations or $L_1$ penalties). To navigate these landscapes efficiently, Polyak-type momentum—often called the "Heavy Ball" method—has become a staple in libraries like PyTorch and TensorFlow.
Despite its empirical success, a significant theoretical gap has persisted: while momentum is known to accelerate training in practice, rigorous sample complexity guarantees (the number of data points required to reach a specific accuracy) were largely restricted to smooth or convex settings. This paper bridges that gap, providing the first formal proof that Stochastic Heavy Ball (SHB) momentum methods converge for a broad class of non-smooth, non-convex problems.
The Challenge of Non-Smoothness
The authors focus on $\rho$-weakly convex functions. This class represents a critical "sweet spot" in optimization theory, encompassing all convex functions, smooth functions with Lipschitz gradients, and many important non-smooth compositions, such as those found in robust phase retrieval.
Analyzing momentum in this context is difficult because standard gradient-based metrics fail when the objective function is non-smooth. To overcome this, the researchers utilized the Moreau envelope—a smoothed approximation of the objective function. By using the gradient of the Moreau envelope as a proxy for "near-stationarity," the authors could rigorously measure the algorithm's progress toward a critical point.
Key Technical Innovations
A Specialized Lyapunov Function
The core of the paper’s theoretical contribution is the construction of a novel Lyapunov function. In optimization analysis, a Lyapunov function acts as an "energy" metric that should ideally decrease as the algorithm iterates. The authors designed a function that simultaneously tracks the progress of the iterates and the momentum term. This innovation allows for a unified analysis that does not require the momentum parameter to be tuned on a different schedule than the step size.
Single Time-Scale Scaling
Previous theoretical attempts often required complex hyperparameter tuning, where the step size and momentum parameters followed different decay schedules. This paper demonstrates that both can scale at the same rate ($O(1/\sqrt{K})$). This "single time-scale" approach simplifies implementation and aligns more closely with how practitioners actually use these algorithms.
Empirical Validation: Robust Phase Retrieval
To validate the theory, the authors conducted numerical experiments on the Robust Phase Retrieval problem. This problem is intentionally designed to be difficult: the objective is non-smooth and non-convex, and the environment is corrupted with "gross outliers" (heavy noise) to test the algorithm's resilience.
In a simulated environment with $m=300$ measurements and $n=100$ dimensions, the Stochastic Heavy Ball (SHB) method was compared against vanilla Stochastic Gradient Descent (SGD). The results highlighted two primary advantages of momentum:
- Stability: Momentum acts as a low-pass filter, averaging past subgradients to smooth out the noise inherent in stochastic sampling. This is particularly beneficial in non-smooth landscapes where subgradients can fluctuate wildly.
- Hyperparameter Robustness: While SGD's performance is highly sensitive to the initial step size ($\alpha_0$), SHB maintained high accuracy across several orders of magnitude. This suggests that momentum makes the optimization process much less fragile.
Key Results and Impact
- Optimal Sample Complexity: The authors prove a sample complexity of $O(1/\epsilon^2)$. This matches the best-known rate for vanilla SGD, theoretically confirming that the benefits of momentum—such as increased stability and faster empirical convergence—come at no cost to the worst-case complexity.
- Refined Smooth Analysis: For smooth problems, the paper extends complexity bounds to the constrained case and relaxes the "bounded gradient" requirement for unconstrained problems, making the theory applicable to a wider range of real-world functions like quadratics.
Limitations and Future Directions
While this work provides a robust foundation for momentum in non-smooth optimization, some constraints remain. The "bounded gradient" assumption is still necessary for constrained smooth problems (Theorem 2), and it remains an open question whether this can be removed. Furthermore, while $\rho$-weakly convex functions cover many use cases, the highly complex landscapes of deep neural networks may require even more generalized frameworks in the future.
Ultimately, this paper provides the necessary theoretical justification for the "Heavy Ball" methods that power modern AI, proving that momentum is not just a heuristic, but a mathematically sound stabilizer for non-smooth, non-convex optimization.
Summary updated