Fast Last-Iterate Convergence of SGD in the Smooth Interpolation Regime

Amit Attia, Matan Schliserman, Uri Sherman, Tomer Koren · DOI

Introduction

In the field of optimization for machine learning, a persistent gap has existed between theoretical prescriptions and empirical practice. While classical stochastic gradient descent (SGD) theory often emphasizes the convergence properties of the average iterate (the mean of all models produced during training), practitioners almost universally deploy the last iterate (the final model).

This preference is not merely a matter of convenience; in modern over-parameterized deep learning, the last iterate often performs significantly better. However, proving "fast" convergence rates ($O(1/T)$) for the last iterate has historically been difficult, often requiring complex decaying stepsize schedules or being limited to specific cases like linear regression. This paper addresses this discrepancy by establishing near-optimal last-iterate convergence guarantees for smooth convex functions in the "interpolation regime"—a scenario where the model is capable of perfectly fitting the training data, resulting in zero gradient noise at the optimal solution.

The Problem: Last-Iterate vs. Average-Iterate

For smooth convex problems, it is well-established that the average iterate of SGD achieves a convergence rate of $O(1/T)$. In contrast, the last iterate was long thought to be restricted to a slower $O(1/\sqrt{T})$ rate unless specific constraints were met.

In the context of modern deep learning, we often operate in the smooth interpolation regime. Here, the noise at the optimum ($\sigma_*$) is zero. Previous attempts to prove fast last-iterate rates for the "greedy" stepsize (where $\eta = 1/\beta$, with $\beta$ being the smoothness parameter) were either restricted to Ordinary Least Squares (OLS) or resulted in weak bounds such as $O(T^{-1/4})$. This paper seeks to provide a more general and tighter analysis for these settings.

Methodological Innovations

The authors derive their results by evolving the technique introduced by Zamani & Glineur (2023), which was originally intended for non-smooth, deterministic optimization. To make this applicable to modern SGD, they introduced several key innovations:

  • Stochastic Adaptation: The researchers generalized deterministic regret analysis to the stochastic setting, specifically accounting for the properties of smooth functions.
  • Novel Weighting Schemes: They introduced a sequence of non-decreasing weights into the regret analysis. This allows for meaningful convergence bounds even when using large stepsizes that typically cause standard mathematical analyses to diverge.
  • Step-Dependent Young’s Inequality: By refining the handling of "cross terms" in the convergence proof, the authors tightened the rate for the greedy stepsize from the previously known $O(T^{-2/5})$ to $O(1/\sqrt{T})$.
  • Algorithmic Stability for Shuffling: The analysis extends to "without-replacement" (shuffled) SGD. By combining their last-iterate bounds with algorithmic stability results, they demonstrate that data shuffling—a standard practice in training—is theoretically as effective as i.i.d. sampling in the interpolation regime.

Key Insights and Results

The paper’s theoretical contributions offer several high-impact insights for the optimization community:

1. The Validity of the "Greedy" Choice

The study proves that the greedy stepsize ($\eta = 1/\beta$) is theoretically sound for the last iterate. This is particularly important for algorithms like the Randomized Kaczmarz method, where such updates are standard. Previously, theoretical proofs often required stepsizes strictly smaller than $1/\beta$ to ensure stability.

2. General Convergence Bounds

The authors establish a general last-iterate convergence rate: $$O\left(\frac{1}{\eta(2-\beta\eta)T^{1-\beta\eta/2}} + \frac{\eta \sigma_*^2 T^{\beta\eta/2}}{(2-\beta\eta)^2}\right)$$

In the pure interpolation regime where $\sigma_* = 0$, the greedy step ($\eta = 1/\beta$) achieves a rate of $O(1/\sqrt{T})$. This represents a significant improvement over the previous best-known rate of $O(T^{-1/4})$ for general smooth convex functions.

3. Near-Optimal Tuning

With a carefully tuned stepsize, the paper achieves a near-optimal rate of $O(1/T + \sigma_*/\sqrt{T})$. This result is significant because it extends fast rates, previously reserved for OLS-specific proofs, to all smooth convex loss functions.

Limitations and Future Directions

While the paper significantly advances our understanding of SGD, it leaves open some intriguing questions:

  • The Greedy Gap: While the authors prove an $O(1/\sqrt{T})$ rate for the greedy stepsize, the lower bound is $\Omega(1/T)$. It remains to be seen if the last iterate can actually reach $O(1/T)$ under these conditions or if a fundamental penalty exists for using the maximum possible stepsize.
  • Beyond Interpolation for Shuffling: The current results for without-replacement SGD are limited to the pure interpolation regime. Extending these guarantees to the "low-noise" regime (where $\sigma_*$ is small but non-zero) is a clear path for future research.

Conclusion

This work provides a robust theoretical foundation for the common practice of using the last iterate in SGD. By showing that interpolation unlocks faster convergence and that greedy stepsizes are viable for general smooth convex functions, the authors bridge the gap between the rigorous requirements of optimization theory and the practical realities of modern machine learning.

Summary updated

BibTeX
@inproceedings{attia2025fast,
  author = {Amit Attia and Matan Schliserman and Uri Sherman and Tomer Koren},
  title = {{Fast Last-Iterate Convergence of SGD in the Smooth Interpolation Regime}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ifGwVxiigF},
}
Figure