Abstract
We study Nesterov's accelerated gradient method with constant step-size and momentum parameters in the stochastic approximation setting (unbiased gradients with bounded variance) and the finite-sum setting (where randomness is due to sampling mini-batches). To build better insight into the behavior of Nesterov's method in stochastic settings, we focus throughout on objectives that are smooth, strongly-convex, and twice continuously differentiable. In the stochastic approximation setting, Nesterov's method converges to a neighborhood of the optimal point at the same accelerated rate as in the deterministic setting. Perhaps surprisingly, in the finite-sum setting, we prove that Nesterov's method may diverge with the usual choice of step-size and momentum, unless additional conditions on the problem related to conditioning and data coherence are satisfied. Our results shed light as to why Nesterov's method may fail to converge or achieve acceleration in the finite-sum setting.
Introduction
Nesterov’s Accelerated Gradient (AG) method is a cornerstone of optimization theory, offering a "free" speedup from $O(1/k)$ to $O(1/k^2)$ convergence in deterministic settings. This theoretical optimality has led to its widespread adoption in stochastic optimization for machine learning. However, a significant gap exists between its deterministic performance and its behavior in practical mini-batch settings. This paper investigates whether Nesterov's method maintains its acceleration when gradients are derived from noisy estimates, specifically distinguishing between the stochastic approximation and finite-sum noise models.
Methodology
The authors analyze Nesterov's method by framing it as a linear dynamical system. By tracking the iterate residual and the momentum buffer (velocity), the algorithm's update can be represented as a linear operator. The stability and convergence rate are then determined by the spectral radius of the transition matrix.
The study employs several synthetic environments to isolate optimization behaviors:
- Worst-case Quadratics: Functions specifically designed to challenge first-order methods.
- Least-Squares Regression: High-dimensional ($d=100$) problems with varying condition numbers ($Q$).
- Multinomial Logistic Regression: A non-quadratic, smooth, and strongly convex problem used to verify the theoretical findings beyond quadratic objectives.
Theoretical vs. Empirical Stability
A key finding is the dichotomy between noise models. In the stochastic approximation setting (unbiased noise with bounded variance), Nesterov’s method is robust, converging to a neighborhood of the optimum at an accelerated rate.
However, in the finite-sum setting (mini-batching), the method can diverge. This instability arises from an "overshoot" phenomenon: momentum builds up along low-curvature directions, and if a subsequent mini-batch has high curvature, the algorithm overshoots the optimum. This error can then feed back into the momentum buffer, leading to divergence.
Key Results
The paper provides both theoretical proofs and empirical confirmation of these behaviors:
- Theorem 1: Establishes that in stochastic approximation, the error is bounded by an accelerated linear rate plus a term proportional to the noise variance.
- Theorem 3: Proves that for any initial point, there exist smooth, strongly convex quadratic functions where Nesterov’s method with standard parameters will diverge in the finite-sum setting.
- Stability Regions: Empirical visualizations confirm that the theoretical "stability contours" accurately predict where the algorithm begins to diverge in practice.
Discussion and Limitations
The results indicate that achieving acceleration in mini-batch settings requires more conservative parameter choices than in deterministic settings, often to the point where the acceleration benefit is lost. While the paper focuses on smooth and strongly convex objectives, the findings have profound implications for non-convex deep learning. The authors suggest that techniques like adaptive restarts or negative momentum may be necessary to stabilize accelerated methods in practical stochastic environments.
Summary updated