Nesterov Accelerated Shuffling Gradient Method for Convex Optimization
The Nesterov Accelerated Shuffling Gradient (NASG) method bridges a critical gap between theoretical optimization and practical machine learning. By combining Nesterov’s momentum with "without-replacement" data shuffling, NASG achieves a state-of-the-art $O(1/T)$ convergence rate for convex problems. Crucially, it does this by applying momentum at the end of each epoch rather than at every iteration, significantly outperforming standard shuffling SGD variants.
The Challenge with Shuffling SGD
In machine learning, we frequently solve finite-sum optimization problems by minimizing a loss function averaged over $n$ data points. While vanilla Stochastic Gradient Descent (SGD) samples data with replacement, practitioners almost universally prefer Shuffling SGD (sampling without replacement, such as Random Reshuffling) because it typically converges much faster in practice.
However, accelerating Shuffling SGD has historically been a theoretical nightmare. Standard Nesterov acceleration—the gold standard for speeding up deterministic gradient descent—tends to accumulate errors and perform poorly when applied to the noisy, biased gradients produced by shuffling schemes. Previous research could only prove a convergence rate of $O(1/T^{2/3})$ for shuffling methods in general convex settings. This paper aims to fix that by finding a way to integrate momentum that actually works for shuffling.
The NASG Approach
The authors introduce NASG to solve this exact problem. The key innovation lies in the timing of the momentum update:
- Epoch-based Momentum: Instead of the traditional approach of adding a momentum term at every single iteration (which leads to error accumulation), NASG performs a full pass (epoch) over the data using a shuffling scheme like Random Reshuffling or Incremental Gradient.
- The Update: Only after the epoch is complete does the algorithm apply the Nesterov momentum step. This allows the algorithm to "accumulate" the benefits of a full data pass—which acts as a better approximation of the true gradient—before attempting to accelerate.
By moving the momentum step to the epoch level, the algorithm effectively smooths out the bias inherent in shuffling SGD. The authors provide a unified convergence analysis that covers various shuffling schemes without requiring restrictive assumptions like a bounded domain or bounded gradients.
Theoretical Insights
This architectural shift yields a significant theoretical leap: NASG achieves a convergence rate of $O(1/T)$, where $T$ is the number of epochs. This is a massive improvement over the previous $O(1/T^{2/3})$ state-of-the-art for shuffling methods in the convex regime.
Furthermore, for randomized shuffling schemes, the authors proved an even tighter bound, showing a reduction in the variance term by a factor of $n$ (the number of data points). This mathematically explains why Random Reshuffling is so effective for large-scale datasets. Finally, unlike many theoretical papers that prove convergence for the average of all iterates, this paper proves it for the last iterate, which aligns with what engineers actually use in practice.
Empirical Results
The authors evaluated NASG on several standard benchmarks, including binary classification datasets (w8a, ijcnn1, covtype) and image classification tasks (MNIST, Fashion-MNIST, CIFAR-10).
In head-to-head comparisons, NASG reached lower training losses faster than standard SGD, SGD with Momentum (SGD-M), and Adam across almost all tested datasets. NASG also demonstrated superior robustness, showing better stability compared to "Per-Iteration" momentum versions (NASG-PI), which often exhibited erratic behavior or slower convergence due to error accumulation. Finally, the test accuracy for NASG was comparable to or better than other first-order methods, suggesting that the acceleration on the training set does not come at the cost of overfitting.
Limitations and Future Directions
While NASG presents a strong step forward, its primary theoretical contributions remain focused on convex optimization. Although the authors included simple non-convex experiments (like a neural network without activations), a rigorous theoretical framework for NASG in complex non-convex landscapes (such as deep ReLU networks) is still missing.
Additionally, like many accelerated methods, NASG requires careful selection of the learning rate to realize the full benefits of acceleration. Future work will likely investigate whether NASG can achieve even better rates relative to the number of data points $n$ and extend the theory to more complex non-convex settings.
Summary updated