Accelerated SGD for Non-Strongly-Convex Least Squares

Aditya Varre, Nicolas Flammarion

Abstract

This paper introduces AcSGD, the first practical stochastic algorithm for non-strongly convex least squares that achieves optimal error rates. By scaling the acceleration step inversely with the statistical condition number, the algorithm achieves a fast $O(d/t^2)$ convergence for the bias (initialization error) while maintaining the statistically optimal $O(d/t)$ rate for variance (noise error). We provide matching lower bounds to prove that the dependence on dimension $d$ is a fundamental requirement for acceleration in the stochastic setting.

Introduction

In large-scale machine learning, Stochastic Gradient Descent (SGD) is the standard optimization tool due to its low computational cost and robustness to noise. However, SGD suffers from a slow decay of its "bias" term—the error stemming from the starting point—which typically vanishes at a rate of $O(1/t)$. While deterministic optimization can utilize Nesterov’s Accelerated Gradient Descent to improve this to $O(1/t^2)$, these methods are notoriously sensitive to stochastic noise. In practice, simply applying Nesterov’s acceleration to stochastic gradients often leads to divergence or performance inferior to standard SGD.

Previous theoretical attempts to stabilize accelerated SGD have largely relied on the assumption of strong convexity. However, modern high-dimensional regimes, such as those found in deep learning, often involve loss surfaces that are non-strongly convex or nearly flat in many directions. This paper addresses this gap by proposing an accelerated stochastic method specifically designed for the non-strongly convex least squares setting.

The AcSGD Algorithm

The proposed algorithm, AcSGD (Accelerated Stochastic Gradient Descent), is built upon a three-sequence formulation of Nesterov’s acceleration. To overcome the noise sensitivity of traditional acceleration, the authors introduce several critical modifications:

  1. Dual Learning Rates: The algorithm employs two distinct step sizes, $\alpha$ and $\beta$, to decouple the gradient update from the acceleration step.
  2. Step-size Scaling: Utilizing a "linear coupling" perspective, the algorithm scales the aggressive acceleration step size ($\alpha$) inversely with the statistical condition number ($\tilde{\kappa}$). In the context of least squares, $\tilde{\kappa}$ is typically proportional to the dimension $d$. This scaling prevents the noise from accumulating and destabilizing the iterates.
  3. Weighted Averaging: Rather than using standard Polyak-Ruppert averaging, which weights all iterates equally, AcSGD employs a weighted averaging scheme. This approach places higher importance on later iterates, similar to tail-averaging techniques, to better capture the benefits of the accelerated trajectory.
  4. Realistic Oracle: The analysis is grounded in a rank-one stochastic gradient oracle, where updates are based on individual data points. This makes the theoretical results more applicable to real-world SGD implementations than models assuming simplified noise structures.

Theoretical Insights: The Price of Acceleration

A central contribution of this work is the characterization of the "price of acceleration" in stochastic optimization. The authors prove that in the stochastic setting, a dimension-independent rate of $O(1/t^2)$ is impossible during the initial stages of optimization. Specifically, they provide a matching lower bound of $\Omega(1/d)$ for the error after $d/2$ iterations. This confirms that any accelerated rate must depend on the dimensionality $d$ to remain stable against noise.

By splitting the error into a bias-variance decomposition, the authors show that AcSGD achieves:

  • Bias (Initialization Error): $O(d \|x_0 - x_*\|^2 / t^2)$
  • Variance (Noise Error): $O(\sigma^2 d / t)$

This represents the first algorithm to simultaneously achieve these optimal rates in the non-strongly convex setting. Furthermore, for noiseless problems—often referred to as the "interpolation regime" in modern ML—the last iterate of AcSGD converges at the accelerated rate, providing a practical advantage for users who prefer not to use averaged iterates.

Empirical Validation

The authors validated AcSGD using synthetic datasets with Gaussian distributed inputs ($d=50$) and a covariance matrix $\mathbf{H}$ featuring eigenvalues that decay as $1/i^4$. These experiments compared AcSGD against standard SGD, Averaged SGD, and existing accelerated variants (e.g., ASGD from Jain et al., 2018).

The results confirm the theoretical predictions: during the initial $O(d)$ iterations, AcSGD performs similarly to standard SGD. However, once the number of iterations exceeds the dimension, the acceleration "kicks in," and the error rate drops significantly faster than non-accelerated methods. This transition point highlights the interplay between dimensionality and the benefits of acceleration.

Conclusion

AcSGD provides a robust framework for accelerating stochastic optimization in least squares problems without requiring strong convexity. By identifying the necessity of dimension-dependent scaling, the authors bridge the gap between deterministic acceleration and stochastic robustness. Future research may extend these principles to broader classes of smooth functions, such as logistic regression, and explore applications in infinite-dimensional Hilbert spaces for kernel-based learning.

Summary updated

Abstract

We consider stochastic approximation for the least squares regression problem in the non-strongly convex setting. We present the first practical algorithm that achieves the optimal prediction error rates in terms of dependence on the noise of the problem, as $O(d/t)$ while accelerating the forgetting of the initial conditions to $O(d/t^2)$. Our new algorithm is based on a simple modification of the accelerated gradient descent. We provide convergence results for both the averaged and the last iterate of the algorithm. In order to describe the tightness of these new bounds, we present a matching lower bound in the noiseless setting and thus show the optimality of our algorithm.
BibTeX
@inproceedings{varre2022accelerated,
  author = {Aditya Varre and Nicolas Flammarion},
  title = {{Accelerated SGD for Non-Strongly-Convex Least Squares}},
  booktitle = {Conference on Learning Theory},
  year = {2022},
  url = {https://openreview.net/forum?id=zpGZl6Jntwb},
}

Loading related content...

Figure