Abstract
Shuffling gradient methods are widely used in modern machine learning tasks and include three popular implementations: Random Reshuffle (RR), Shuffle Once (SO), and Incremental Gradient (IG). Compared to the empirical success, the theoretical guarantee of shuffling gradient methods was not well-understood for a long time. Until recently, the convergence rates had just been established for the average iterate for convex functions and the last iterate for strongly convex problems (using squared distance as the metric). However, when using the function value gap as the convergence criterion, existing theories cannot interpret the good performance of the last iterate in different settings (e.g., constrained optimization). To bridge this gap between practice and theory, we prove the first last-iterate convergence rates for shuffling gradient methods with respect to the objective value even without strong convexity. Our new results either (nearly) match the existing last-iterate lower bounds or are as fast as the previous best upper bounds for the average iterate.
Introduction
In the optimization of machine learning models, practitioners rarely use standard Stochastic Gradient Descent (SGD) with replacement. Instead, the de facto standard is to use shuffling gradient methods—such as Random Reshuffle (RR), Shuffle Once (SO), or Incremental Gradient (IG)—where data points are processed in epochs without replacement.
Despite their empirical dominance, these methods present significant theoretical challenges. Because data is sampled without replacement, the gradient at each step is a biased estimate of the full gradient, making the analysis far more complex than that of standard SGD. Historically, theoretical guarantees for these methods have focused on the average of all iterates. However, in practice, engineers almost exclusively use the last iterate ($x_{K+1}$) of the training process. This research bridges the gap between practice and theory by establishing the first last-iterate convergence rates for shuffling methods across smooth, non-smooth, and constrained convex optimization problems.
Problem Formulation
We consider the optimization problem of the form: $$\min F(x) = f(x) + \psi(x)$$ where $f(x) = \frac{1}{n} \sum_{i=1}^n f_i(x)$ represents the average loss over $n$ data points, and $\psi(x)$ is a regularizer or an indicator function for a constraint set.
While previous literature often required strong convexity or ignored the regularizer $\psi(x)$, this work analyzes a Proximal Shuffling Gradient Method. This framework is general enough to handle non-smooth penalties (like Lasso) or hard constraints via a proximal step, providing a unified analysis for RR, SO, and IG.
Technical Innovation
The analysis of last-iterate convergence for biased gradient methods requires overcoming the accumulation of errors across an epoch. The authors introduce three key technical innovations:
- Auxiliary Sequences: The proof utilizes a sequence of "virtual" points ($z_k$) constructed as convex combinations of previous iterates and the optimum to track progress.
- Novel Recursive Inequality: A new algebraic inequality (Lemma E.2) was developed to bound the Bregman divergence—a generalized distance measure—between iterates, allowing for tighter control over the objective value gap.
- Logarithmic Step-size Adjustment: The analysis introduces a specific step-size schedule incorporating a small logarithmic factor ($1 + \log K$). This factor proves essential for stabilizing the last-iterate analysis in the absence of strong convexity.
Convergence Results
The paper establishes several new upper bounds for the function value gap $F(x_{K+1}) - F(x^*)$ after $K$ epochs. These results demonstrate that the last iterate is as effective as the average iterate, matching known lower bounds or previous best upper bounds for averaging.
1. Smooth Functions (General Convex)
For any permutation (including IG and SO), the method achieves a rate of $\tilde{O}(K^{-2/3})$. For Random Reshuffle, this improves to $\tilde{O}(n^{-1/3}K^{-2/3})$, which matches the known lower bounds for this class of algorithms.
2. Smooth Functions (Strongly Convex)
Under strong convexity, the last-iterate convergence reaches $\tilde{O}(K^{-2})$ for general permutations and $\tilde{O}(n^{-1}K^{-2})$ for RR. This is significantly faster than the standard $O(1/T)$ rate associated with SGD, providing a theoretical justification for the superior performance of shuffling in deep learning.
3. Non-Smooth (Lipschitz) Functions
The authors establish a rate of $O(1/\sqrt{K})$. This represents the first concrete last-iterate evidence that shuffling methods are competitive with proximal incremental gradient methods in non-smooth settings.
Key Insights
- Theoretical Justification of Practice: By proving that the last iterate converges at optimal rates, the paper justifies the common practice of using final model weights rather than an average of weights collected during training.
- The Advantage of Randomness: The results confirm that Random Reshuffle (RR) converges faster than Incremental Gradient (IG) by factors related to the dataset size $n$, reinforcing why randomizing epoch order is beneficial.
- Broad Applicability: Unlike previous work, these rates do not require strong convexity, making them applicable to a much wider range of convex optimization problems, including those with complex constraints.
Limitations and Future Work
While this work closes a major gap, several open questions remain. The current analysis relies on a $1 + \log K$ factor in the step-size; it is currently unknown if this is a fundamental requirement or an artifact of the proof technique. Additionally, the results utilize constant step-sizes that depend on the total number of epochs $K$. Developing "anytime" step-size schedules that achieve optimal last-iterate convergence remains a promising direction for future research.
Summary updated