Abstract
Virtually all state-of-the-art methods for training supervised machine learning models are variants of Stochastic Gradient Descent (SGD), enhanced with tricks like minibatching and momentum. However, a fundamental design choice is the selection of training data points. While standard SGD is analyzed using sampling with replacement, practical software almost exclusively uses sampling without replacement, such as random reshuffling (RR). Despite its empirical success, RR has long lacked a satisfactory theoretical explanation. This paper introduces a novel analysis using "controlled linear perturbations" to achieve the best-known linear convergence rates for shuffling-based methods. We demonstrate that these strategies can be enhanced with a variance reduction mechanism, obtaining linear convergence rates that outperform standard SGD in certain regimes.
Introduction: The Gap Between Theory and Practice
In the world of machine learning, Stochastic Gradient Descent (SGD) is the workhorse. Theoretically, SGD is usually analyzed using "sampling with replacement"—meaning every time you pick a data point to learn from, you pick from the whole pile, potentially picking the same point twice in one pass.
However, practitioners almost never do this. Instead, they use sampling without replacement, commonly known as Random Reshuffling (RR). They shuffle the dataset and process it in order. Empirically, this is much faster, but theoretically, it’s a nightmare to analyze because the gradient estimates become "biased" (the choice of the next point depends on what you've already seen).
Standard RR methods often struggle to converge to the exact minimizer with a constant step size; they usually hover around it due to inherent gradient noise. This paper asks: Can we add a variance reduction mechanism to shuffling methods to get them to converge linearly to the exact solution, and can we prove they are better than what we have?
Methods: Controlled Linear Perturbations
The authors propose a simple yet powerful tool: Controlled Linear Perturbations. Instead of changing the algorithm's core logic, they reformulate the objective function at the start of each epoch. They add a "structured zero" to the loss function—a set of linear functions that sum to zero across the whole dataset but shift individual gradients.
By using a control vector ($y_t$) updated at the start of each epoch (similar to the anchor point in SVRG), they can "steer" the noisy stochastic gradients. As the algorithm approaches the optimum, the variance of these shifted gradients vanishes. They apply this technique to three variants:
- Det-Shuffle: Data is processed in a fixed, deterministic cyclic order.
- Rand-Shuffle: Data is shuffled once at the very beginning.
- Rand-Reshuffle: Data is reshuffled at the start of every single epoch.
Key Insights
- The Variance Link: Lemma 1 proves that the variance of the reformulated shuffling problem is directly bounded by the distance of the control vector to the optimum. This provides the theoretical "hook" needed to prove linear convergence.
- Big Data Advantage: The paper identifies a "big data regime" ($n > \mathcal{O}(\kappa)$). In this setting, Rand-Reshuffle can use larger step sizes, leading to a complexity of $\mathcal{O}(\kappa \log 1/\epsilon)$, which is significantly better than previous shuffling analyses.
- Memory Efficiency: Unlike SAGA, which requires storing a table of all previous gradients ($\mathcal{O}(nd)$ memory), the proposed Rand-Reshuffle variant only needs to store the control vector ($\mathcal{O}(d)$ memory), making it much more practical for massive datasets.
Empirical Results
The authors evaluated their algorithms on several standard benchmark datasets from the LIBSVM repository, focusing on regularized ridge regression and logistic regression across various scales and feature densities.
As shown in Figure 1, the proposed methods achieve clear linear convergence. In head-to-head tests, Rand-Reshuffle with VR consistently outperformed RR-SAGA and standard SVRG. It required fewer epochs and fewer total gradient computations to reach the same level of precision.
Furthermore, the analysis shows that Det-Shuffle (cyclic) is significantly better than previously thought, outperforming older methods like IAG and Cyclic-SAGA (Figure 2).
Conclusion
This work provides the first-ever convergence analysis for SVRG-style methods under random reshuffling in the general non-convex setting. While shuffling methods generally win in practice, the authors note that in certain specific regimes (where $n$ is small relative to $\kappa$), classical variance-reduced methods like SVRG might still hold a theoretical edge. Future work includes exploring proximal settings for non-smooth problems and combining these shuffling VR methods with Nesterov-style acceleration for even faster rates.
Summary updated