Manuscript Offprint
arXiv:2610.25469Near-Optimal Last-Iterate Convergence of SGD in the Smooth Interpolation Regime
Abstract
We study the last iterate of stochastic gradient descent (SGD) with a constant stepsize on smooth convex objectives in the low-noise and interpolation regimes, where the variance of the stochastic gradients at the optimum is small or zero. We establish that after steps of SGD on -smooth convex losses with any constant stepsize , the last iterate attains expected excess risk , which gives the rate for every constant stepsize in the interpolation regime , matching the lower bound up to logarithmic factors and improving upon the rate of Attia et al. [2026] for . Our analysis is based on a new technique, which compares the second moments of the stochastic gradients along the SGD trajectory across only logarithmically many time scales. For quadratic losses in the interpolation regime, an adaptation of this technique gives an rate for every constant stepsize, extending the recent optimal rate for the randomized Kaczmarz method of Derezinski and Dong (2026) to stepsizes above the greedy stepsize with an arguably simpler proof.
1 Introduction
We study the convergence of stochastic gradient descent (SGD) for smooth convex objectives in the low-noise and interpolation regimes. Concretely, we consider optimization problems of the form
where is a distribution over a sample space , and is convex and -smooth for all . In the low-noise regime, the gradient noise at the optimum, defined as for , is assumed to be small or even zero. The special case where is known as the interpolation regime, in which minimizes for almost all . We analyze the expected excess risk of SGD, which, given a stepsize and an i.i.d. sample , performs the following updates, starting from an initialization :
Standard convergence bounds of SGD apply to an average (possibly weighted) of the iterates. It is by now a classical result that the average iterate of SGD with a constant stepsize converges at the
Blavatnik School of Computer Science and AI, Tel Aviv University; schliserman@mail.tau.ac.il.
Blavatnik School of Computer Science and AI, Tel Aviv University, and Google Research Tel Aviv; tkoren@tauex.tau.ac.il.
fast rate in the interpolation regime with , and at the rate in the low-noise regime with a suitably tuned stepsize [Srebro et al., 2010, Ma et al., 2018], as compared to the slower rate that holds more generally.
In practice, however, SGD is commonly run with a constant stepsize, independent of T and of order , and returns its last iterate. This has motivated a long line of work on last-iterate bounds, namely, bounds that apply to the expected excess risk of the last SGD iterate rather than to an average of the iterates [Rakhlin et al., 2012, Shamir and Zhang, 2013, Jain et al., 2019, Harvey et al., 2019, Orabona, 2020, Zamani and Glineur, 2025, Liu and Zhou, 2024]. For convex Lipschitz losses, the last iterate can be worse than the average by a logarithmic factor [Shamir and Zhang, 2013, Harvey et al., 2019], and stepsize schedules that depend on the horizon can close this gap [Jain et al., 2019]. These results, however, require stepsizes of , and thus do not capture the fast rates attained by the average iterate in the smooth low-noise regime.
A recent line of work has focused on the last iterate of SGD with a constant stepsize in the smooth low-noise regime. This regime is natural for modern overparameterized models, which often interpolate their training data [Ma et al., 2018]. It also captures classical procedures that output their last iterate, such as the randomized Kaczmarz method [Needell et al., 2014] and continual learning of realizable tasks [Evron et al., 2022, 2026, Dereziński and Dong, 2026b,a], which can be presented as instances of SGD in the interpolation regime with the “greedy” stepsize (e.g. Evron et al. [2026]). For quadratic losses, Varre et al. [2021] proved an rate with a stepsize of order , and at the greedy stepsize, the known rates improved from [Evron et al., 2026] to [Dereziński and Dong, 2026b] and, very recently, to the optimal [Dereziński and Dong, 2026a]; the latter two results rely on the linear structure of the updates. For general smooth convex losses, Attia et al. [2026] and Garrigos et al. [2025] obtained fast last-iterate rates with stepsizes of order , which depend on the horizon. For larger constant stepsizes, these guarantees deteriorate polynomially in T, and at the greedy stepsize, the best known rate is [Attia et al., 2026] (see Table 1). Thus, for general smooth convex losses with a constant stepsize, there is a gap between the best known last-iterate bounds and the fast rate of the average iterate.
In this work, we establish that the last iterate of SGD on convex and -smooth losses with any constant stepsize attains an expected excess risk of . To achieve this bound, we introduce a new multiscale technique for last-iterate analysis, which tracks the sequence of second moments of the stochastic gradients along the SGD trajectory. Then, for quadratic losses in the interpolation regime, we show that an adaptation of our technique removes the logarithmic factors and achieves an rate for every constant stepsize , extending the recent optimal rate of Dereziński and Dong [2026a], proved for , with an arguably simpler proof. Finally, for completeness, we apply our bounds to the randomized Kaczmarz method and related applications.
(i) In Theorem 1 (Section 2.1), we establish a convergence rate of for the last iterate of SGD on convex, -smooth losses, with any constant stepsize . In the interpolation regime, the rate is for every such stepsize, matching the lower bound up to logarithmic factors. Compared with Attia et al. [2026], this replaces the decay by and replaces polynomial growth of the noise term by logarithmic
| Reference | Losses | Bound for | Bound for |
|---|---|---|---|
| Evron et al. [2026] | quadratic | ||
| Attia et al. [2026] | convex and smooth | ||
| Garrigos et al. [2025] | convex and smooth | — | |
| Derezinski and Dong [2026a] | quadratic | ||
| This work (Theorem 1) | convex and smooth | ||
| This work (Theorem 2) | quadratic | ||
| Zhang et al. [2023] | convex and smooth |
Table 1: Last-iterate bounds on the expected excess risk of SGD after steps with a constant stepsize independent of , for , , and . The rows labeled “quadratic” assume interpolation (). “—” indicates that no bound is stated. Only for . Only for . The last row is a lower bound in the interpolation regime.
growth. In the low noise regime, tuning the stepsize gives the near-optimal rate of .
(ii) On the technical side, we bound the last element of the sequence of second moments of the stochastic gradients by a multiscale comparison of the sequence with its shifted copies at only logarithmically many time scales, in contrast to the polynomially many past iterates used in previous analyses. This is achieved using virtual iterates, namely, SGD trajectories with a block of consecutive updates deleted, which enable us to relate the risk of the last iterate to the average risk of the iterates with only logarithmic factors in , instead of the polynomial factors of previous bounds. This proof technique is outlined in Section 3.
(iii) In Theorem 2 in Section 4, we show that our technique gives the rate for quadratic losses in the interpolation regime, for every constant stepsize . This extends the optimal rate of Derezinski and Dong [2026a] to stepsizes above the greedy stepsize, with an arguably simpler proof.
(iv) For completeness, in Appendix A we apply our results to random projections onto convex sets, the randomized Kaczmarz method, and forgetting in continual learning, obtaining, for instance, rates for the randomized Kaczmarz method and for forgetting in continual linear regression.
Open problems. Our upper bound exceeds the lower bound by a factor of . The main question left open is whether these logarithmic factors are necessary for general smooth convex losses. This question is of particular interest since, for non-smooth convex losses, logarithmic factors are necessary when the stepsizes do not depend on the horizon [Harvey et al., 2019, Kornowski and Shamir, 2026]. However, the known constructions rely heavily on nonsmoothness, and it remains unclear whether logarithmic factors are also necessary in the smooth case. In addition, we leave as an open problem the exact dependence of the bounds on .
1.2 Additional related work
Last-iterate analysis of SGD. Last-iterate convergence of SGD has been studied extensively for convex Lipschitz losses in the gradient oracle model, where decaying or horizon-dependent stepsizes yield near-optimal guarantees [Rakhlin et al., 2012, Shamir and Zhang, 2013, Harvey et al., 2019, Jain et al., 2019, Orabona, 2020, Zamani and Glineur, 2025, Liu and Zhou, 2024]. Cortild et al. [2025] used a computer-aided Lyapunov analysis to prove average-iterate guarantees. For least squares under interpolation, Varre et al. [2021] obtained constant-stepsize guarantees under additional assumptions on the features and solution. Our analysis gives a last-iterate rate in the interpolation regime for every convex and smooth loss and every constant stepsize below .
SGD in the interpolation regime. Interpolation is a natural regime for overparameterized deep networks, which are commonly trained with SGD until they fit their training data. A growing literature studies SGD for smooth objectives [e.g., Lan, 2012, Bach and Moulines, 2013, Ge et al., 2019], and in particular in overparameterized and interpolation settings [e.g., Vaswani et al., 2019, Berthier et al., 2020, Varre et al., 2021, Wu et al., 2022, Liu et al., 2023], mostly for underdetermined linear regression or for smooth convex component losses with a strongly convex population objective. In contrast, our results impose neither a parametric form on the losses nor a strongly convex objective.
Stability and coupling arguments. Our last-iterate analysis involves virtual iterates, namely, coupled copies of the SGD trajectory, a technique that has appeared in other contexts. Algorithmic stability analyses compare SGD trajectories that differ in a few samples and exploit the nonexpansiveness of smooth convex gradient updates [Hardt et al., 2016, Lei and Ying, 2020, Schliserman and Koren, 2022]. Our comparison deletes blocks of updates. Under i.i.d. sampling, the resulting virtual trajectories have the distributions of earlier SGD iterates, turning deletion stability into control of variation across time. Sherman et al. [2021] and Liu [2026] also used coupled virtual sequences, constructed by swapping two entries of a random permutation, to study stability under sampling without replacement.
The Kaczmarz method. The Kaczmarz method solves consistent linear systems by successive projections onto the solution sets of single equations or blocks of equations [Kaczmarz, 1937, Elfving, 1980, Needell and Tropp, 2014], and more general projection methods find a common point of convex sets [Gubin et al., 1967, Boyd et al., 2003]. In Appendix A.1, we apply our bounds to the randomized Kaczmarz method and obtain guarantees that are independent of the condition number. Classical analyses establish linear convergence at rates that depend on the condition number [e.g., Strohmer and Vershynin, 2009, Gower and Richtárik, 2015, Needell and Tropp, 2014, Oswald and Zhou, 2015], which can be arbitrarily large, while recent work obtained tight bounds for the cyclic method [Yu and Diakonikolas, 2026] and condition-number-free rates [Dereziński and Dong, 2026b,a], including the optimal rate, which our bounds recover through a more general and arguably simpler analysis.
Continual learning. Continual learning trains a model on a sequence of tasks, during which its performance on earlier tasks may degrade, a phenomenon known as catastrophic forgetting.
In Appendix A.2, we show that our bounds apply to forgetting in continual linear regression and classification, settings whose theory has been studied extensively [e.g., Doan et al., 2021, Lin et al., 2023, Peng et al., 2023, Goldfarb and Hand, 2023, Li et al., 2023, Hiratani, 2024, Evron et al., 2023, Levinstein et al., 2026]. The extent of forgetting depends on task similarity, overparameterization, and the trade-off between stability and plasticity [Mermillod et al., 2013, Goldfarb et al., 2024], and it can diminish under cyclic or random task orderings [Lesort et al., 2023, Hemati et al., 2024, Swartworth et al., 2023, Jung et al., 2025, Cai and Diakonikolas, 2025]. Beyond linear models, the theory has recently been extended to deep networks [Schliserman et al., 2026].
2 Setup and main result
Problem setup. Let be an index set for convex loss functions , and be an arbitrary distribution over . We consider the unconstrained stochastic optimization problem
under the assumption that the loss functions are individually smooth. Specifically, we assume that for all , the function is -smooth. (Throughout, refers to the norm, and log to the natural logarithm.) We further assume that the objective admits a minimizer, denoted by , and that the variance of the stochastic gradients at is bounded, . The special case where is referred to as the interpolation regime, in which minimizes for almost all .
Throughout the paper, we consider the fixed stepsize SGD algorithm, which given an initialization , a stepsize and an i.i.d. sample , performs at each step the update
and returns . We bound the expected excess risk of the last iterate.
2.1 Main result
Our main result shows that the expected excess risk of the last iterate decays at the rate , up to logarithmic factors and a noise term, for every constant stepsize .
Theorem 1. Let be such that is -smooth and convex for every . Assume there exists a minimizer , and that . Then, for SGD initialized at with stepsize , we have the following last-iterate guarantee for every :
In particular:
(i) in the interpolation regime , when , it holds that
That is, for all .
(ii) when , it holds that
In the interpolation regime ( ), the bound gives the rate for every constant stepsize , whereas the bound of Attia et al. [2026] decays only as . In the low-noise regime, the stepsize in (ii) is tuned to the horizon and gives the near-optimal rate .
3 Proof of main result
In this section we prove Theorem 1. For this, our main technical tool is to analyze the sequence of the second moments of the stochastic gradients along the SGD dynamics, defined as
Below we elaborate on the main steps of the proof.
3.1 A multiscale comparison for the last element of a sequence
The first step is to bound the last element of the sequence by the average of the sequence and by a multiscale comparison of the sequence with itself at the lags , all with the same starting point , which will be determined later (in Section 3.4). In fact, we show the following lemma, which holds for any real sequence.
Lemma 1. Let , let be the integer for which , and let . Then, for all real numbers ,
where the maximum is 0 if J = 0.
The bound of Lemma 1 involves only comparisons, one for each lag . These lags correspond to different time scales, from consecutive elements of the sequence to elements about steps apart . The normalization by makes these costs comparable across the scales, and the factor comes from the number of scales. In contrast, previous last-iterate analyses [Shamir and Zhang, 2013, Zamani and Glineur, 2025, Liu and Zhou, 2024, Attia et al., 2026] compare the last iterate with polynomially many past iterates, which results in additional polynomial factors compared to our analysis.
Proof of Lemma 1. Fix , and as in the statement, and real numbers . Since , we have and , and as , also . We compare with the average of the last elements. For , let , so that . For and , , and since , by Jensen inequality,
Finally, , thus, by young's inequality and Cauchy-Schwarz,
3.2 The comparison at a single scale
The next step is to bound the comparison at a single lag , namely , which appears in Lemma 1. The sum that defines this distance begins at the starting point , which is common to all the lags. The following lemma bounds this distance by the expected squared distance between the iterates and .
Lemma 2. Under the conditions of Theorem 1, let be as defined in Eq. (2). Then, for all integers and ,
The proof of Lemma 2 compares SGD with virtual iterates, obtained by deleting a block of updates. For integers , the virtual iterates , restart SGD from the past iterate at time , namely,
that is, is obtained from SGD by deleting the updates at steps , and from time on, it is updated with the same samples as SGD. The virtual iterates have two properties. First, in distribution, they are past iterates of SGD: since the samples are i.i.d., the pair is distributed as the pair , and in particular, . Second, they are coupled with the current iterates of SGD: the virtual iterates and SGD are updated with the same samples, and as gradient steps with a common sample bring two points closer to each other, the virtual iterates remain close to the iterates of SGD. The first property expresses through the virtual iterate , and the second relates to the SGD iterate , whose stochastic gradient has second moment . Below we prove Lemma 2 by combining these two properties.
Proof of Lemma 2. Fix , and as in the statement, let , , be the virtual iterates defined in Eq. (3), and for , let and . We prove the two inequalities
which give the claim, as . For the first inequality, we use the first property: for every , and thus, by the Cauchy-Schwarz inequality, ; therefore,
and summing over , and noting that , gives the first inequality. For the second inequality, we use the second property: as both sequences are updated with the sample at every step , we have , and by Lemma 11 (in Appendix B) we know that , thus,
Summing over , the right-hand side telescopes, and we obtain
taking expectations gives the second inequality.
3.3 The distance between the iterates at the starting point
Next, we bound the distances between the iterates at the starting point of the compared sequences, which appear in Lemma 2. The following lemma bounds them by the risk at the starting point.
Lemma 3. Under the conditions of Theorem 1, for all integers ,
The bound of Lemma 3 grows only linearly with the lag h, and depends only on the risk at the starting point . Hence, combined with Lemma 2 and after the normalization by the lag in Lemma 1, it gives the same bound for all the lags. Below we prove Lemma 3 by tracking the squared distance to a fixed reference point, as in a regret analysis against .
Proof of Lemma 3. We treat as a fixed reference point, and track the squared distance to it, as in a regret analysis against . We first bound the expected squared distance to a fixed point after one step. Let , and denote by the expectation over . Then, by Lemmas 11 and 12 and Young's inequality,
where the fact that for all ,
Now, for every , both and are determined by , and are therefore independent of ; thus, applying the last bound conditionally on with and , and taking expectations,
Summing over , the right-hand side telescopes, and the claim follows.
3.4 Bounding the stochastic gradient at the last iterate
We now bound the last element of the sequence, as established in the following lemma,
Lemma 4. Under the conditions of Theorem 1, for every ,
The lemma follows by combining Lemmas 1 to 3 with a choice of the starting point r of the compared sequences.
Proof of Lemma 4. Fix , and denote ; throughout, we use that . We bound the two terms of Lemma 1, applied to . First, by Lemma 12, . Second, we choose deterministically as an index whose expected excess risk is the smallest among the first iterates, so that , as the minimum is at most the average. For every lag in Lemma 1, we have by the choice of , and thus, by Lemmas 2 and 3 with , so
Plugging these bounds into Lemma 1, and using ,
Finally, by the average-iterate analysis (Lemma 9), , which gives the claim.
3.5 From the stochastic gradients to the risk of the last iterate
In the final step, we convert the bound of Lemma 4 on the stochastic gradients into a bound on the risk of the last iterate. We first relate the risk of the last iterate to the average risk of the iterates and to the stochastic gradients along the iterates.
Lemma 5. Under the conditions of Theorem 1, for every ,
The proof of Lemma 5 follows the suffix-averaging technique of Shamir and Zhang [2013]: it combines the regret bound of SGD against past iterates with an inequality of Orabona [2020, Lemma 1], which relates the last element of a sequence to its suffix averages (Lemma 10 in Appendix B).
Proof of Lemma 5. Fix . For every , by convexity of and the SGD update Eq. (1),
Summing over , the right-hand side telescopes, and we have
Using , we obtain, by taking expectations, that for every ,
Now, applying Lemma 10 with , which is nonnegative since minimizes and the fact that ,
Finally, we can prove Theorem 1, by combining Lemmas 4 and 5 with the average-iterate bound of Lemma 9.
Proof of Theorem 1. Fix . By Lemmas 5 and 9,
To bound the last term, note that comparing the harmonic sum with an integral gives (where the sum is empty for ), and therefore
Thus, using Lemma 4 for every ,
(Lemma 4)
Combining everything gives,
4 Logarithm-free bounds for quadratic losses
In this section, we prove our results for quadratic losses. Although our main result (Theorem 1) captures the particular case of quadratic losses, we show that the logarithmic factors in Theorem 1 are not necessary for quadratic losses under interpolation. In particular, we establish the following theorem, (Here, I denotes the identity matrix, and for symmetric matrices A, B, we write if B - A is positive semidefinite.)
Theorem 2. Under the conditions of Theorem 1, assume in addition that for every , there is a symmetric matrix with such that for all . Then, for every ,
In particular, for , it holds that .
The proof of Theorem 2 is based on the following lemma, which bounds the one-step decrease of the squared distance to .
Lemma 6. Under the conditions of Theorem 2, for every ,
As the proof of Lemma 2 in the general case, the proof of Lemma 6 uses the virtual iterates defined in Section 3.2. However, here, the proofs compares SGD with the virtual iterates associated with all the starting points simultaneously, with the lag . In contrast to the general case, SGD and the virtual iterates are updated by the same linear maps; thus, the effects of the deleted updates combine linearly, and their total effect admits a bound that does not depend on .
Lemma 6 is closely related to the operator inequality of Dereziński and Dong [2026a, Theorem 3.1]: both start from the same deletion identity, and differ in the bound on the combined effect of the deletions, which Dereziński and Dong [2026a] obtain by complex analysis, and which we obtain by standard convex optimization techniques that apply to every stepsize .
As a consequence of Lemma 6, we obtain the following analogues of Lemmas 1 and 5, which do not involve logarithmic factors and their proofs are deferred to Appendix C.
Lemma 7. Under the conditions of Theorem 2, for every ,
Lemma 8. Under the conditions of Theorem 2, for every ,
Finally, the proof of Theorem 2 is obtained by combining Lemmas 7 and 8 with the average-iterate analysis (Lemma 9 in Appendix B).
Proof of Theorem 2. Fix , and denote by . Since , by Lemma 3 with and Lemma 9,
By Lemma 7, we get that , and plugging this into Lemma 8 gives
Acknowledgments
This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (grant agreement No. 101078075). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them. This work received additional support from the Israel Science Foundation (ISF; grant numbers 2549/19 and 3174/23), from the Council for Higher Education in Israel under a Moonshot Project, and a fellowship from the Tel Aviv University Center for AI and Data Science (TAD).
References
Amit Attia, Matan Schliserman, Uri Sherman, and Tomer Koren. Fast last-iterate convergence of sgd in the smooth interpolation regime. Advances in Neural Information Processing Systems, 38:104951–104987, 2026.
Francis Bach and Eric Moulines. Non-strongly-convex smooth stochastic approximation with convergence rate . Advances in neural information processing systems, 26, 2013.
Raphaël Berthier, Francis Bach, and Pierre Gaillard. Tight nonparametric convergence rates for stochastic gradient descent under the noiseless linear model. Advances in Neural Information Processing Systems, 33:2576–2586, 2020.
Stephen Boyd, Jon Dattorro, et al. Alternating projections. EE392o, Stanford University, 2003.
Xufeng Cai and Jelena Diakonikolas. Last iterate convergence of incremental methods and applications in continual learning. In The Thirteenth International Conference on Learning Representations, 2025.
Daniel Cortild, Lucas Ketels, Juan Peypouquet, and Guillaume Garrigos. New tight bounds for SGD without variance assumption: A computer-aided Lyapunov analysis. arXiv preprint arXiv:2505.17965, 2025.
Michal Dereziński and Xiaoyu Dong. How AI settled the complexity of the oldest SGD algorithm. arXiv preprint arXiv:2606.29593, 2026a.
Michal Dereziński and Xiaoyu Dong. Last-iterate convergence of randomized Kaczmarz and SGD with greedy step size. In Conference on Learning Theory (COLT), 2026b. arXiv:2604.09909.
Thang Doan, Mehdi Abbana Bennani, Bogdan Mazoure, Guillaume Rabusseau, and Pierre Alquier. A theoretical analysis of catastrophic forgetting through the NTK overlap matrix. In Proceedings of The 24th International Conference on Artificial Intelligence and Statistics, pages 1072–1080, 2021.
Tommy Elfving. Block-iterative methods for consistent and inconsistent linear equations. Numerische Mathematik, 35(1):1–12, 1980.
Itay Evron, Edward Moroshko, Rachel Ward, Nathan Srebro, and Daniel Soudry. How catastrophic can catastrophic forgetting be in linear regression? In Conference on Learning Theory (COLT), pages 4028–4079. PMLR, 2022.
Itay Evron, Edward Moroshko, Gon Buzaglo, Maroun Khriesh, Badea Marjieh, Nathan Srebro, and Daniel Soudry. Continual learning in linear classification on separable data. In International Conference on Machine Learning, pages 9440–9484. PMLR, 2023.
Itay Evron, Ran Levinstein, Matan Schliserman, Uri Sherman, Tomer Koren, Daniel Soudry, and Nathan Srebro. From continual learning to sgd and back: Better rates for continual linear models. In Matus Telgarsky and Jonathan Ullman, editors, Proceedings of The 37th International Conference on Algorithmic Learning Theory, volume 313 of Proceedings of Machine Learning Research, pages 1–50. PMLR, 23–26 Feb 2026. URL https://proceedings.mlr.press/v313/evron26a.html.
Guillaume Garrigos, Daniel Cortild, Lucas Ketels, and Juan Peypouquet. Last-iterate complexity of SGD for convex and smooth stochastic problems. arXiv preprint arXiv:2507.14122, 2025.
Rong Ge, Sham M Kakade, Rahul Kidambi, and Praneeth Netrapalli. The step decay schedule: A near optimal, geometrically decaying learning rate procedure for least squares. Advances in Neural Information Processing Systems, 32, 2019.
Daniel Goldfarb and Paul Hand. Analysis of catastrophic forgetting for random orthogonal transformation tasks in the overparameterized regime. In International Conference on Artificial Intelligence and Statistics, pages 2975–2993. PMLR, 2023.
Daniel Goldfarb, Itay Evron, Nir Weinberger, Daniel Soudry, and Paul Hand. The joint effect of task similarity and overparameterization on catastrophic forgetting - an analytical model. In The Twelfth International Conference on Learning Representations, 2024.
Robert M Gower and Peter Richtárik. Randomized iterative methods for linear systems. SIAM Journal on Matrix Analysis and Applications, 36(4):1660–1690, 2015.
LG Gubin, Boris T Polyak, and EV Raik. The method of projections for finding the common point of convex sets. USSR Computational Mathematics and Mathematical Physics, 7(6):1–24, 1967.
Moritz Hardt, Ben Recht, and Yoram Singer. Train faster, generalize better: Stability of stochastic gradient descent. In International Conference on Machine Learning, pages 1225–1234. PMLR, 2016.
Nicholas JA Harvey, Christopher Liaw, Yaniv Plan, and Sikander Randhawa. Tight analyses for non-smooth stochastic gradient descent. In Conference on Learning Theory, pages 1579–1613. PMLR, 2019.
Hamed Hemati, Lorenzo Pellegrini, Xiaotian Duan, Zixuan Zhao, Fangfang Xia, Marc Masana, Benedikt Tscheschner, Eduardo Veas, Yuxiang Zheng, Shiji Zhao, et al. Continual learning in the presence of repetition. In CVPR Workshop on Continual Learning in Computer Vision, 2024.
Naoki Hiratani. Disentangling and mitigating the impact of task similarity for continual learning. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
Prateek Jain, Dheeraj Nagaraj, and Praneeth Netrapalli. Making the last iterate of SGD information theoretically optimal. In Conference on Learning Theory, pages 1752–1755. PMLR, 2019.
Hyunji Jung, Hanseul Cho, and Chulhee Yun. Convergence and implicit bias of gradient descent on continual linear classification. In The Thirteenth International Conference on Learning Representations, 2025.
S Kaczmarz. Angenaherte auflosung von systemen linearer glei-chungen. Bull. Int. Acad. Pol. Sic. Let., Cl. Sci. Math. Nat., pages 355–357, 1937.
Guy Kornowski and Ohad Shamir. Gradient descent's last iterate is often (slightly) suboptimal. arXiv preprint arXiv:2604.13870, 2026.
Guanghui Lan. An optimal method for stochastic composite optimization. Mathematical Programming, 133(1):365–397, 2012.
Yunwen Lei and Yiming Ying. Fine-grained analysis of stability and generalization for stochastic gradient descent. In Hal Daumé III and Aarti Singh, editors, Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 5809–5819. PMLR, 13–18 Jul 2020.
Timothée Lesort, Oleksiy Ostapenko, Pau Rodríguez, Diganta Misra, Md Rifat Arefin, Laurent Charlin, and Irina Rish. Challenging common assumptions about catastrophic forgetting and knowledge accumulation. In Conference on Lifelong Learning Agents, pages 43–65. PMLR, 2023.
Ran Levinstein, Amit Attia, Matan Schliserman, Uri Sherman, Daniel Soudry, Tomer Koren, and Itay Evron. Optimal rates in continual linear regression via increasing regularization. Advances in Neural Information Processing Systems, 38:60456–60495, 2026.
Haoran Li, Jingfeng Wu, and Vladimir Braverman. Fixed design analysis of regularization-based continual learning. In Conference on lifelong learning agents, pages 513–533. PMLR, 2023.
Sen Lin, Peizhong Ju, Yingbin Liang, and Ness Shroff. Theory on forgetting and generalization of continual learning. In International Conference on Machine Learning, pages 21078–21100. PMLR, 2023.
Chaoyue Liu, Dmitriy Drusvyatskiy, Misha Belkin, Damek Davis, and Yian Ma. Aiming towards the minimizers: fast convergence of SGD for overparametrized problems. Advances in Neural Information Processing Systems, 36:60748–60767, 2023.
Zijian Liu. Random reshuffling dominates stochastic gradient descent. In Steve Hanneke and Tor Lattimore, editors, Proceedings of Thirty Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 4859–4882. PMLR, 29 Jun–03 Jul 2026. URL https://proceedings.mlr.press/v336/liu26d.html.
Zijian Liu and Zhengyuan Zhou. Revisiting the last-iterate convergence of stochastic gradient methods. In The Twelfth International Conference on Learning Representations, 2024.
Siyuan Ma, Raef Bassily, and Mikhail Belkin. The power of interpolation: Understanding the effectiveness of SGD in modern over-parametrized learning. In International Conference on Machine Learning, pages 3325–3334. PMLR, 2018.
Martial Mermillod, Aurélia Bugaiska, and Patrick Bonin. The stability-plasticity dilemma: Investigating the continuum from catastrophic forgetting to age-limited learning effects, 2013.
Deanna Needell and Joel A Tropp. Paved with good intentions: analysis of a randomized block Kaczmarz method. Linear Algebra and its Applications, 441:199–221, 2014.
Deanna Needell, Rachel Ward, and Nati Srebro. Stochastic gradient descent, weighted sampling, and the randomized Kaczmarz algorithm. Advances in Neural Information Processing Systems, 27:1017–1025, 2014.
Yurii Nesterov. Introductory lectures on convex programming volume I: Basic course. Lecture notes, 3(4):5, 1998.
Francesco Orabona. Last iterate of SGD converges (even in unbounded domains). Blog post, 2020. URL https://parameterfree.com/2020/08/07/last-iterate-of-sgd-converges-even-in-unbounded-domains.
Peter Oswald and Weiqi Zhou. Convergence analysis for Kaczmarz-type methods in a Hilbert space framework. Linear Algebra and its Applications, 478:131–161, 2015.
Liangzu Peng, Paris Giampouras, and René Vidal. The ideal continual learner: An agent that never forgets. In International Conference on Machine Learning, 2023.
Alexander Rakhlin, Ohad Shamir, and Karthik Sridharan. Making gradient descent optimal for strongly convex stochastic optimization. In International Conference on Machine Learning, pages 449–456. PMLR, 2012.
Matan Schliserman and Tomer Koren. Stability vs implicit bias of gradient methods on separable data and beyond. In Conference on Learning Theory, pages 3380–3394. PMLR, 2022.
Matan Schliserman, Gon Buzaglo, Itay Evron, and Daniel Soudry. Convergence of continual learning in homogeneous deep networks. In Steve Hanneke and Tor Lattimore, editors, Proceedings of Thirty Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 5743–5784. PMLR, 29 Jun–03 Jul 2026. URL https://proceedings.mlr.press/v336/schliserman26a.html.
Ohad Shamir and Tong Zhang. Stochastic gradient descent for non-smooth optimization: Convergence results and optimal averaging schemes. In Sanjoy Dasgupta and David McAllester, editors, Proceedings of the 30th International Conference on Machine Learning, volume 28 of Proceedings of Machine Learning Research, pages 71–79. PMLR, 2013.
Uri Sherman, Tomer Koren, and Yishay Mansour. Optimal rates for random order online optimization. Advances in Neural Information Processing Systems, 34:2097–2108, 2021.
Nathan Srebro, Karthik Sridharan, and Ambuj Tewari. Smoothness, low noise and fast rates. Advances in Neural Information Processing Systems, 23, 2010.
Thomas Strohmer and Roman Vershynin. A randomized Kaczmarz algorithm with exponential convergence. Journal of Fourier Analysis and Applications, 15(2):262–278, 2009.
William Swartworth, Deanna Needell, Rachel Ward, Mark Kong, and Halyun Jeong. Nearly optimal bounds for cyclic forgetting. Advances in neural information processing systems, 36:68197–68206, 2023.
Aditya Vardhan Varre, Loucas Pillaud-Vivien, and Nicolas Flammarion. Last iterate convergence of SGD for least-squares in the interpolation regime. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, 2021.
Sharan Vaswani, Francis Bach, and Mark Schmidt. Fast and faster convergence of SGD for over-parameterized models and an accelerated perceptron. In The 22nd international conference on artificial intelligence and statistics, pages 1195–1204. PMLR, 2019.
Jingfeng Wu, Difan Zou, Vladimir Braverman, Quanquan Gu, and Sham Kakade. Last iterate risk bounds of SGD with decaying stepsize for overparameterized linear regression. In International Conference on Machine Learning, pages 24280–24314. PMLR, 2022.
Runbo Yu and Jelena Diakonikolas. Tight convergence bounds for the classical kaczmarz method. arXiv preprint arXiv:2609.32034, 2026.
Moslem Zamani and François Glineur. Exact convergence rate of the last iterate in subgradient methods. SIAM Journal on Optimization, 35(3):2182–2201, 2025.
Peiyuan Zhang, Jiaye Teng, and Jingzhao Zhang. Lower generalization bounds for gd and sgd in smooth stochastic convex optimization. arXiv preprint arXiv:2303.10758, 2023.
A Applications
In this section, we apply our results to random projections onto convex sets, the randomized Kaczmarz method, and forgetting in continual learning. Each setting can be expressed as SGD in the interpolation regime by choosing an appropriate loss.
A.1 Random projections and randomized Kaczmarz
The random projection method finds a point in the intersection of convex sets [Gubin et al., 1967, Boyd et al., 2003]. For a nonempty closed convex set , let denote the Euclidean projection of onto , and write . Consider a family of such sets , , with a common point for almost every . Starting from , the method draws i.i.d. from and updates
and returns the last iterate .
To express this method as SGD, consider the losses . Each loss is convex and differentiable, with gradient . This gradient is 1-Lipschitz because is firmly nonexpansive. Thus, Eq. (7) is SGD with and the greedy stepsize . The common solution minimizes the losses almost surely, so .
The identity allows us to apply Lemma 4 directly. In particular, we get the following corollary, which bounds the expected squared distance of the last iterate from a fresh random set.
Corollary 1. In the setting above, the random projection method (Eq. (7)) satisfies, for every ,
Proof. The left-hand side is . Apply Lemma 4 with and .
The randomized Kaczmarz method solves a consistent linear system by projecting onto the solution set of one equation at a time [Kaczmarz, 1937, Strohmer and Vershynin, 2009]. Let be the nonzero rows of . At each iteration , the method independently draws a row index with probabilities and updates
This is the special case of Eq. (7) in which the sets are the hyperplanes . We measure the performance of the last iterate by its weighted residual, which admits a bound independent of the condition number of .
Previous work (e.g. Needell et al. [2014], Evron et al. [2026]) has shown that the randomized Kaczmarz method can be viewed as SGD with stepsize on the losses . For any solution of , these losses equal , where is the orthogonal projection onto the span of . Since the functions are quadratic with , we can apply Theorem 2 and obtain the following corollary.
Corollary 2 (randomized Kaczmarz). In the setting above, the randomized Kaczmarz method (Eq. (8)) satisfies, for every ,
In particular, if for all , then .
Proof. The weighted residual is , so the first claim follows from Theorem 2 with . When , this residual equals , giving the second claim.
The bound in Corollary 2 improves upon the rates of Evron et al. [2026] and Attia et al. [2026], and matches the rate of Dereziński and Dong [2026a]. The same argument applies to the block Kaczmarz method [Elfving, 1980]: projecting onto the solution set of a block of equations again corresponds to a quadratic loss whose Hessian is an orthogonal projection.
A.2 Forgetting in continual learning
Continual learning of linear models has received considerable attention in recent years [e.g., Doan et al., 2021, Evron et al., 2022, Lin et al., 2023, Evron et al., 2026, Levinstein et al., 2026]. We consider tasks drawn i.i.d. from , with each task associated with a nonempty closed convex solution set . Assume the tasks are jointly realizable: there is a point for almost every . Starting from , the learner fits each task by projecting its current model onto the task's solution set:
This framework includes continual linear regression trained to convergence by gradient methods, where the sets are affine [Evron et al., 2022], and weakly regularized continual linear classification on jointly separable data, where they are polyhedral [Evron et al., 2023]. After tasks, the learner returns . Following Evron et al. [2022], we measure forgetting by the average loss on the observed tasks, defined as, . Each task has zero loss immediately after it is learned, so this quantity also measures the average increase in loss since learning each task.
As in previous work [Evron et al., 2022, 2023, 2026], we view Eq. (9) as SGD with stepsize on the losses . This is the random projection method of Appendix A.1. Its risk bound concerns a fresh task, whereas forgetting is evaluated on tasks that determine . Lemma 13 in Appendix B relates these two quantities. Combining it with our last-iterate bounds gives the following guarantee.
Corollary 3 (forgetting under random task orderings). In the setting above, the expected forgetting of the algorithm in Eq. (9) satisfies, for every ,
If the sets are affine subspaces, the left-hand side is at most .
Proof. Apply Lemma 13 with . Since and is independent of , Corollary 1 gives . The first bound follows using .
For affine solution sets, the losses are quadratic and their Hessians are orthogonal projections. In this case, Theorem 2 gives , and Lemma 13 yields the bound .
For continual linear regression with task data , the solution set is . The original task loss satisfies
where is the operator norm. Thus, if and , the expected forgetting in the original losses is at most . This improves upon the rate of Evron et al. [2026] and agrees with the rate implied by Dereziński and Dong [2026a].
B Auxiliary lemmas
In this section, we present the auxiliary lemmas used in our analysis, which are known or adapted from previous work.
B.1 Average-iterate analysis
The following bound on the regret of SGD, which is established in the proof of Theorem 8 of Attia et al. [2026] (by Eq. (13) there and convexity), for any stepsize in the low-noise regime.
Lemma 9 (Attia et al., 2026, Theorem 8). Under the conditions of Theorem 1, for every ,
B.2 A suffix-averaging inequality
We use the following inequality, which is Lemma 1 of Orabona [2020] with constant weights (Lemma 1 there is stated for non-increasing weights); it underlies the suffix-averaging technique of Shamir and Zhang [2013] (see the proofs of Theorems 1 and 2 therein).
Lemma 10 (Orabona, 2020, Lemma 1). For every and nonnegative numbers ,
B.3 Properties of smooth convex functions
We use the following standard property of convex and smooth functions given at Nesterov [1998].
Lemma 11 (Nesterov, 1998, Theorem 2.1.5). Under the conditions of Theorem 1, for all and ,
We also use the following self-bounding property of smooth losses, (e.g. Srebro et al. [2010]).
Lemma 12 (Srebro et al., 2010). Under the conditions of Theorem 1, , and for every ,
The following lemma adapts the stability argument of Evron et al. [2026, Lemma F.2] to single-update deletions.
Lemma 13 (adapted from Evron et al., 2026, Lemma F.2). Under the conditions of Theorem 1, assume in addition that and . Then, for every ,
B.4 Properties of quadratic losses
For quadratic losses in the interpolation regime, we use the following lemma from Evron et al. [2026].
Lemma 14 (Evron et al., 2026, Lemma E.3). Under the conditions of Theorem 2, for all and ,
C Proofs for Section 4
Throughout this section, the assumptions of Theorem 2 hold, , and are the iterates of SGD with stepsize ; we denote for .
C.1 Proof of Lemma 6
Proof of Lemma 6. Fix , and for every , let be the virtual iterates defined in Eq. (3) with , restarted from at time . Fix . The virtual iterate is obtained from by the updates with the samples , whereas is obtained from by the updates with the samples ; as the samples are i.i.d., is distributed as , and thus . Moreover,
Since the virtual iterates and SGD are updated with the same samples, by non-expensiveness of SGD, it holds that for every ; hence, . Taking expectations in the last display and averaging over , we obtain
We next show that, almost surely,
which gives the claim: by the inequality with , we then have .
To prove Eq. (10), we use the linearity of the updates. For , let , which is a symmetric matrix with . Since , the update of SGD reads , and similarly, for . As , we obtain
where the product is the identity for . Moreover, for every , since every eigenvalue of satisfies , and thus . As for every , summing over gives
We pair with a vector propagated backward by the same matrices. Fix , let , and let for . As the matrices are symmetric, , and thus . Since for every , the Cauchy–Schwarz inequality for the positive semidefinite bilinear form gives
By the last display, the second sum is at most , and Since and , the first sum is at most
Hence, , and taking gives Eq. (10).
C.2 Proof of Lemma 7
Proof of Lemma 7. Fix . By Lemma 14, and Since is independent of , we have , thus,
Moreover, Since for every , applying Lemma 12 conditionally on gives . Combining the two, , and the claim follows from Lemma 6.
C.3 Proof of Lemma 8
Proof of Lemma 8. Fix . By Lemma 14, and Since is independent of , we have , thus,
that is, , and the claim follows from Lemma 6.