Stochastic gradient descent with initial regularization
Nabil Kahalé
Abstract
We analyze a variant of stochastic gradient descent with initial regularization (SGDIR) and derive dimension-free upper bounds on its expected excess risk for the squared loss. In the noiseless case, we obtain new bounds for both averaged and non-averaged SGDIR under moment, source, and capacity assumptions. For a particular value of the source parameter, these bounds are of order m−2log2m, where the number of training samples is of order m. For another value of the source parameter, we obtain, for any ϵ>0, bounds of order m−3+ϵ, provided that the capacity parameter exceeds ϵ−1. We also establish a lower bound that matches our upper bounds in certain regimes up to a polylogarithmic factor. In the noisy case, we provide an instance-based comparison between SGDIR and ridge regression. Under general assumptions and a mild lower bound on the regularization parameter, we show that the expected excess risk of SGDIR is no larger than that of ridge regression, up to a polylogarithmic factor. Numerical experiments on synthetic and real data are consistent with our theoretical findings.
A central question in machine learning is how to fit a model from copies of a feature-response pair (x,y) so that it generalizes well to unseen data. Beyond generalization performance, the running time, space complexity, and degree of parallelism of the learning algorithm are also important considerations in practice. In this paper, we assume that (x,y) is a square-integrable random vector in H×R, where H is a separable Hilbert space over R, equipped with the inner product ⟨⋅,⋅⟩. Define the loss function L(θ):=21E[(y−⟨x,θ⟩)2] for any θ∈H, and let (xt,yt)t≥0 be independent copies of (x,y). Our objective is to approximately minimize L using the training sequence (xi,yi), 0≤i≤n−1, where n is the sample size. This problem has been extensively studied using two main approaches: stochastic gradient descent (SGD) and ridge (or least-squares) regression.
The asymptotic properties of averaged SGD with constant step size were first studied by Ruppert (1988) and Polyak and Juditsky (1992). In the non-strongly convex setting, Bach and Moulines (2013) show that the expected excess risk of averaged SGD is O(1/n). Under strong convexity of L, Jain, Kakade, Kidambi, Netrapalli and Sidford (2018b) analyze tail-averaged and mini-batch SGD in Euclidean spaces and derive asymptotically optimal bounds. More recently, Kahalé (2026) introduces an unbiased SGD-like estimator of the minimizer of L and derives
*ESCP Business School, Paris, France; e-mail: nkahale@escp.eu.
convergence bounds that match those of Bach and Moulines (2013) up to a polylogarithmic factor.
The aforementioned studies concern finite-dimensional settings. In practice, the number of features can be very large, or even infinite, as in reproducing kernel Hilbert spaces (RKHSs). We next review work establishing dimension-independent bounds on the expected excess risk. In the RKHS framework, Caponnetto and De Vito (2007) and Dieuleveut and Bach (2016) derive convergence bounds for kernel ridge regression (KRR) and averaged SGD, respectively, that are asymptotically optimal under suitable assumptions. Dieuleveut, Flammarion and Bach (2017) derive similar bounds for regularized averaged SGD in Hilbert spaces. Improved bounds on the expected excess risk in hard learning problems have been established by Pillaud-Vivien, Rudi and Bach (2018) using SGD with multiple passes and by Jun, Cutkosky and Orabona (2019) using a variant of KRR. Likewise, Mücke, Neu and Rosasco (2019) derive improved bounds for tail-averaged SGD in Hilbert spaces under certain regularity assumptions and also study minibatching. Finally, under suitable moment assumptions, Zou, Wu, Braverman, Gu and Kakade (2023) derive sharp excess risk bounds for constant-step-size SGD with iterate averaging or tail averaging in terms of the full eigenspectrum of the covariance operator.
Motivated by the double-descent phenomenon and the near-zero training loss achieved by over-parameterized neural networks, a growing literature has analyzed SGD, linear regression, and ridge regression in over-parameterized settings. In particular, the last iterate of constant-step-size SGD has received considerable attention in this context, given the success of SGD in training over-parameterized models. For instance, Bartlett, Long, Lugosi and Tsigler (2020) and Hastie, Montanari, Rosset and Tibshirani (2022) analyze the prediction accuracy of the minimum-norm interpolator in over-parameterized linear regression, while Tsigler and Bartlett (2023) provide analogous results for ridge regression. Zdeborova (2022) analyze the performance of KRR under a low-noise Gaussian design. Ma, Bassily and Belkin (2018) establish exponential convergence bounds for the last iterate of SGD under noiselessness and strong convexity. In a noiseless Hilbert space setting, Berthier, Bach and Gaillard (2020) and Varre, Pillaud-Vivien and Flammarion (2021) derive tight convergence bounds for non-averaged SGD. Lin, Wu, Kakade, Bartlett and Lee (2024) provide sharp convergence bounds for the test error of SGD in terms of the number of parameters and training samples in an infinite dimensional linear regression setup. In zero- or low-noise settings, Attia, Schliserman, Sherman and Koren (2026) establish bounds on the expected excess risk of the last iterate of constant-step-size SGD for smooth convex objectives.
1.1 Contributions
Dimension-free convergence rates for ridge regression and SGD are often established under capacity and source conditions, which are formally defined in Section 4.1. In this paper, we study SGDIR, an SGD method with initial regularization. Specifically, given a regularization parameter Λ>0, a constant step size γ>0, and an integer m≥3, we generate the sequence (θt)t≥0 by the recursion
θt+1=(1−γλt)θt−γ(⟨xt,θt⟩−yt)xt,
(1) where λt=1(t<m)Λ and the initial vector is θ0=0. We use the tail-averaged estimator θˉ2m,3m to approximately minimize L, where uˉi:j:=(j−i)−1∑t=ij−1ut for 0≤i<j and any sequence (ut)t≥0 in H. In the particular case where σ=0, we will also use θN to approximately minimize L, where N is drawn uniformly at random in {2m,…,3m−1}.
Our main contributions are as follows. Let λ denote the regularization parameter in ridge regression.
In the noiseless case, under appropriate capacity and source conditions, we establish dimension-free upper bounds on the expected excess risk of θˉ2m,3m and θQ that, up to a log2m factor, are no worse than existing bounds and are strictly sharper in certain regimes. In particular, for a certain value of the source parameter, we obtain bounds of order m−2log2m. Moreover, for any ϵ>0, we obtain bounds of order m−3+ϵ for another value of the source parameter, provided that the capacity parameter is of order ϵ−1 or larger. To the best of our knowledge, no previous algorithm has been shown to achieve such a tradeoff between sample size and accuracy under comparable assumptions.
Under general assumptions, we show that, for every problem instance with n training samples and every regularization parameter λ of order 1/n or larger, explicit choices of γ and Λ ensure that the expected excess risk of SGDIR is at most a factor of log2n larger than that of ridge regression. This factor improves to logn when λ is of order logn/n or larger, and to a constant in the noiseless case when λ is of order (logn)/n or larger. Such choices of λ are common in the analysis of ridge regression (e.g., Caponnetto and De Vito (2007) and Bach (2024, Section 7.6.6)). Our proof technique also yields a lower bound on the expected excess risk of ridge regression that is of independent interest.
In the noiseless case, we derive a minimax lower bound on the expected excess risk of any estimator of a minimizer of L based on n training samples. Our lower bound is new, to the best of our knowledge. For a range of values of the source parameter, it matches our upper bound up to a polylogarithmic factor, and its exponent depends only on the source parameter.
1.2 Other related work
In an RKHS, assuming that each kernel evaluation takes constant time, SGD based on n samples can be implemented using O(n2) time and O(n) space (Bach 2024, Section 7.4.5), and a straightforward adaptation of the same approach yields the same complexities for SGDIR. In contrast, the standard algorithm for kernel ridge regression requires O(n3) time and O(n2) space (Bach 2024, Eq. 7.7). More efficient random-feature implementations of KRR and SGD are analyzed for a class of kernels by Rudi and Rosasco (2017) and Carratino, Rudi and Rosasco (2018), respectively, and alternative implementations of KRR can be found in Bach (2024, Section 7.4).
Recent work has compared the performance of ridge regression, SGD, and gradient descent. For example, Zou, Wu, Braverman, Gu, Foster and Kakade (2021) provide an instance-based comparison of the generalization error of tail-averaged SGD and ridge regression in several settings, including one-hot and Gaussian distributions. In these settings, they show that tail-averaged SGD generalizes no worse than ridge regression, up to a logarithmic factor. In contrast, our comparison between SGD and ridge regression does not make distributional assumptions on x beyond standard moment conditions, but requires a lower bound on the regularization parameter. Wu, Bartlett, Kakade, Lee and Yu (2025) establish conditions under which gradient descent dominates ridge regression and is incomparable with SGD. Beyond machine learning, kernel methods have a range of applications, including optimization (Bertsimas and Koduri 2022) and numerical integration (Chatalic, Schreuder, De Vito and Rosasco 2025). Our lower bounds for ridge regression are inspired from the financial engineering literature on model-free bounds, which has been the subject of numerous studies (e.g., (Bertsimas and Popescu 2002, Kahalé 2017)).
The rest of the paper is organized as follows. Section 2 introduces our notation and main assumptions. Section 3 derives upper bounds on the expected excess risk of SGDIR. Section 4 establishes convergence bounds under source and capacity assumptions and provides a more technical comparison with the prior literature. Section 5 compares SGDIR with ridge regression. Section 6 derives a lower bound on the expected excess risk of any algorithm. Section 7 presents numerical experiments, and Section 8 concludes. Omitted proofs are provided in the appendix.
2 Notation and main Assumptions
For u,v∈H, denote by u⊗v the linear operator on H defined by (u⊗v)w=⟨v,w⟩u, for w∈H. Thus, when H is equal to Rd equipped with the usual scalar product ⟨u,v⟩=uTv, the matrix of u⊗v is uvT. If A and B are self-adjoint operators on H, we say that A≼B (resp. A≽B) if the operator B−A (resp. A−B) is positive semidefinite. For any operator M on H, we use the shorthand M+λ to denote M+λI. Given a self-adjoint positive semidefinite operator M on H, let ∣∣v∣∣M:=⟨v,Mv⟩ for v∈H. If ψ is a square-integrable random vector in H, set VarM(ψ)=E[∣∣ψ∣∣M2]−∣∣E[ψ]∣∣M2. Standard results show that the noncentered covariance operator Σ:=E[x⊗x] is positive semidefinite, self-adjoint, and trace-class, with tr(Σ)=E[∣∣x∣∣2]. Consequently, there exists an orthonormal basis (ei)i∈J of H consisting of eigenvectors of Σ, where J={1,…,d} if H is d-dimensional and J=N−{0} otherwise. Thus Σei=μiei for i∈J, where μi≥0, and ∑i∈Jμi=tr(Σ). We suppose that the μi's are sorted in nonincreasing order.
For the remainder of this section and throughout Sections 3 and 4, we assume the following.
Assumption A1. The function L attains its minimum at a vector θ∗∈H, and there are constants R>0 and σ≥0 such that
E[∥x∥2x⊗x]≼R2Σ,(2)E[(y−⟨x,θ∗⟩)2x⊗x]≼σ2Σ.(3)
Because L attains its minimum at θ∗, a standard calculation shows the normal equation
Σθ∗=E[yx].(4)
Conditions (2) and (3) are taken from Bach and Moulines (2013). It is easy to verify (2) if
∥x∥≤R with probability 1. It follows from (2) that tr[Σ]≤R2 (Dieuleveut, Flammarion and Bach 2017). Hence
0≼Σ≼R2I.(5)
Condition (3) holds if ∣y−⟨x,θ∗⟩∣≤σ with probability 1. Moreover, if the error term y−⟨x,θ∗⟩ is independent of x, then (3) holds with σ2=E[(y−⟨x,θ∗⟩)2].
We further assume that γ and Λ satisfy the bound
γ(R2+Λ)≤1.(6)
Condition (6) is approximately a factor of 2 weaker than a corresponding condition in Dieuleveut, Flammarion and Bach (2017, Theorem 2) for regularized SGD. Since γΛ→0 as m→∞ in our main results, (6) essentially requires γ to be of order 1/R2 or smaller. Similar step-size conditions are commonly imposed in the analysis of SGD algorithms for least-squares regression (Bach and Moulines 2013, Dieuleveut and Bach 2016, Kahalé 2026).
For θ∈H, let R(θ):=L(θ)−L(θ∗) denote the excess risk of θ. Using (4), a standard calculation shows that R(θ)=21∣∣θ−θ∗∣∣Σ2 and that the regularized loss function Lλ(θ):=L(θ)+λ∣∣θ∣∣2/2 minimized at θλ:=(Σ+λ)−1Σθ∗. When t<m (resp. t≥m), the recursion (1) corresponds to the standard SGD applied to LΛ (resp. L). This observation provides intuition behind our approach. Assume for simplicity that σ=0. The smallest eigenvalue of the Hessian matrix Σ+Λ of LΛ is at least Λ. By (Jain, Kakade, Kidambi, Netrapalli and Sidford 2018b, Theorem 1)) and (Kahalé 2026, Proposition SM.1), this suggests that E[∣∣θm−θΛ∣∣2] is upper bounded by an exponentially decreasing function of m, with a rate proportional to Λ. Thus, if Λ is sufficiently large, the last 2m steps of our algorithm correspond to an unregularized SGD with an initial state “close” to θΛ. Moreover, if Λ is sufficiently small, θ∗ is intuitively “closer” to θΛ than to 0. This suggests that, for a suitable choice of Λ, our algorithm forgets initial conditions faster than an unregularized SGD with initial state 0 and 2m steps. We stress that the above argument is informal and will not be used in our formal derivations.
Let ψ be a (possibly biased) square-integrable estimator of θ∗, and, for m′>0, let ψ(m′) be the average of m′ independent copies of ψ. We can bound the expected excess risk of ψ by bounding separately each term of the standard bias-variance decomposition 2E[R(ψ)]=∣∣E[ψ]−θ∗∣∣Σ2+VarΣ(ψ). We refer to the first term as the squared bias of ψ and to the second as its variance. Since
2E[R(ψ(m′))]=∣∣E[ψ]−θ∗∣∣Σ2+m′VarΣ(ψ),(7)
this approach also provides a bound on the expected excess risk of ψ(m′).
2.1 Reproducing kernel Hilbert space
We assume in this subsection that H is a separable RKHS on R. Thus, the elements of H are functions from a set X to R, and there is a positive definite function K:X×X→R such that K(a,.)∈H and f(a)=⟨f,K(a,.)⟩ for f∈H and a∈X. Assume that K(a,a)≤R2 for a∈X, where R>0 is a constant, and that X is endowed with a σ-algebra such that z↦K(z,z) is a measurable function on X. Let (X,y) be a random pair taking values in X×R such that y is square-integrable. Assume there is f∗∈H with E[y∣X]=f∗(X) and
E[(y−f∗(X))2∣X]≤σ2,(8)
where σ≥0 is a constant. Finally, let x=K(X,.) be the random function induced by X. A standard calculation shows that (x,y) satisfies Assumption A1, with θ∗=f∗, and that L(f)=21E[(y−f(X))2] for f∈H. Thus approximately minimizing L amounts to approximating y by the random variable f(X), where f∈H. The assumption that θ∗∈H was made to avoid additional technicalities. Modeling frameworks that do not require θ∗∈H are common in the RKHS literature (e.g., Dieuleveut and Bach (2016)). The terms involving θ∗ in the bounds of Lemma 1, Theorem 1, Proposition 1, Theorem 2 and Theorem 4 are upper bounded by R(0), up to an absolute constant factor. These results, as well as Theorem 3, can be extended to the case where θ∗∈/H by adapting the approach of Dieuleveut and Bach (2016).
3 Bounding the expected excess risk
In this section, we first define a noiseless version wt of θt, t≥0, and establish three alternative bounds on the expected excess risk of wN. We then provide a bound on the expected excess risk of θˉ2m:3m.
3.1 The noiseless process
Define the sequence wt,t≥0, by the recursion
wt+1=(1−γλt)wt−γ⟨xt,wt−θ∗⟩xt,(9)
with initial condition w0=0. This recursion is obtained by replacing yt with ⟨xt,θ∗⟩ in (1). Hence wt=θt almost surely for t≥0 when σ=0. Lemma 1 provides a simple bound on the expected excess risk of wN.
Lemma 1. Suppose m≥3, Assumption A1 and (6) hold, and Λ≥log(m)/(γm). Then
E[R(wN)]≤8Λ2∣∣(Σ+Λ)−1θ∗∣∣Σ2.(10)
Replacing θΛ by its value shows that Λ2∣∣(Σ+Λ)−1θ∗∣∣Σ2=2R(θΛ). Thus, (10) implies that E[R(wN)]≤16R(θΛ). This is consistent with our informal argument in Section 2 that suggests that wm is “close” to θΛ. Indeed, we expect in this case that the excess risk at subsequent time steps not to be much larger than that of θΛ.
Set
Λ~=γm1tr[Σ2(Σ+4γm1)−2].
Because Σ2(Σ+(4γm)−1)−2≤I, we have Λ~≤d/(γm) if H has finite dimension d. More generally, as shown in Section 4, Λ~ tends to be “small” when μi decays “rapidly” as i increases. Quantities related to Λ~ such as the effective dimension often appear in the analysis of SGD
(e.g., Zou, Wu, Braverman, Gu and Kakade (2023)). Lemma 2 provides an alternative bound on E[R(wN)] that depends on Λ~.
Lemma 2. Under the assumptions of Lemma 1, we have
Up to a constant factor, the first term in the righthand side of (11) is equal to the excess risk of gradient descent at time step m, with initial state 0 (Bach 2024, Section 5.2.1). The bounds (10) and (11) are in general not directly comparable. Theorem 1 provides a third bound on E[R(wN)] that essentially combines (10) and (11).
Theorem 1. Under the assumptions of Lemma 1, we have
Using (6) and the inequality mz(1−z)m≤1 for 0≤z≤1, a standard diagonalization argument shows that, up to a constant factor, the righthand side of (12) is no larger than those of (10) and (11). On the other hand, by convexity of the excess risk,
E[R(wˉ2m:3m)]≤E[R(wN)].(13)
Thus, under the assumptions of Lemma 1, E[R(wˉ2m:3m)] is bounded above by each of the righthand sides of (10), (11), and (12).
3.2 Incorporating noise
To account for noise, set δt:=θt−wt and vt:=γ(yt−⟨xt,θ∗⟩)xt for t≥0. By (4), we have E[vt]=0 and, by (1) and (9),
δt+1=(I−γ(xt⊗xt+λtI))δt+vt.(14)
As xt and δt are independent, it follows by induction that E[δt]=0 for t≥0. Lemma 3 provides a bound on VarΣ(δˉ2m:3m).
Lemma 3. Suppose m≥3, Assumption A1 and (6) hold. Then VarΣ(δˉ2m:3m)≤8γσ2Λ~.
When the dimension of H is finite and equal to d, the bound is of order σ2d/m, that frequently appears in the analysis of SGD for least-squares problems (Bach and Moulines 2013, Jain, Kakade, Kidambi, Netrapalli and Sidford 2018b).
The preceding results lead to the following simple bound on E[R(θˉ2m:3m)].
Proposition 1. Under the assumptions of Lemma 1, we have
E[R(θˉ2m:3m)]≤16Λ2∣∣(Σ+Λ)−1θ∗∣∣Σ2+8γσ2Λ~.
Proof. As ∣∣u+v∣∣Σ2≤2∣∣u∣∣Σ2+2∣∣v∣∣Σ2 for u,v∈H, we have
where the second inequality follows from (10), (13), and Lemma 3.
Building on the proofs of Theorem 1 and Lemma 3, Theorem 2 yields bounds on the squared bias and variance of θˉ2m:3m, and consequently on the expected excess risk of θˉ2m:3m and of averages of its independent copies.
Theorem 2. Under the assumptions of Lemma 1, we have
The relation (17) is a special case of (7) and yields a bound on E[R(θˉ2m:3m)] when m′=1. Here again, a diagonalization argument shows that this bound is no worse than that of Proposition 1, up to a constant factor. When σ=0, this bound coincides with the righthand side of (12), up to a constant factor.
Remark 1. For any constant a>2, replacing θˉ2m:3m by θˉ2m:am preserves (15), while (16) continues to hold up to a constant factor that depends on a. Likewise, (10), (11), and (12) still hold, up to a constant factor that depends on a, if N is uniformly chosen in {2m,…,am−1}.
4 Convergence results
To establish convergence rates for the expected excess risk of SGDIR and compare them with the existing literature, we state capacity and source assumptions in Section 4.1. These assumptions, and related variants, are commonly used in the analysis of SGD and ridge or kernel regression for least-squares problems (Caponnetto and De Vito 2007, Dieuleveut and Bach 2016, Rudi and Rosasco 2017, Dieuleveut, Flammarion and Bach 2017, Mücke, Neu and Rosasco 2019, Berthier, Bach and Gaillard 2020, Varre, Pillaud-Vivien and Flammarion 2021). In Section 4.2, we use Theorems 1 and 2 to derive convergence results under these assumptions. In Section 4.3, we compare our results with previously established bounds. Throughout this section, we focus on the noiseless case. Convergence results can also be derived for θˉ2m,3m in the general setting but, up to a polylogarithmic factor, they match those of Dieuleveut and Bach (2016, Theorem 2) for r≤0 and those of Mücke, Neu and Rosasco (2019, Corollary 1) for r≥0.
4.1 Capacity and Source assumptions
For r≥0, we can define Σr as the unique linear operator such that Σrei=μirei for i∈J. By convention, for r<0 and v∈H, the equality θ∗=Σrv means that v=Σ−rθ∗.
Assumption Ac. We have μi≤ci−α for i∈J, where α≥1 and c≥0 are constants.
The parameter α quantifies the strength of Assumption Ac. The larger α is, the stronger the assumption. As tr(Σ)≥iμi for any i∈J, Assumption Ac always holds with α=1 and c=tr(Σ). When H has a finite dimension d, Assumption Ac holds for any α>1 and c=μ0dα. Intuitively, large values of α correspond to data distributions with low effective dimension, leading to faster convergence rates for SGD-like algorithms. The slightly stronger capacity condition tr(Σ1/α)<∞ is often used in the literature (Dieuleveut, Flammarion and Bach 2017, Jun, Cutkosky and Orabona 2019).
Assumption As. There is v∗∈H and a real number ρ∗ such that θ∗=Σrv∗, with r≥−1/2 and ∣∣v∗∣∣2≤ρ∗.
Assumption As always holds for r=−1/2 and ρ∗=2R(0). The parameter r measures the strength of Assumption As: the larger r is, the stronger the assumption. Indeed, suppose that θ∗=Σrv∗, with r≥−1/2 and ∣∣v∗∣∣2≤ρ∗, and let r′∈[−1/2,r]. Then θ∗=Σr′(Σr−r′v∗), and ∣∣Σr−r′v∗∣∣≤R2r−2r′∣∣v∗∣∣ by (5). Thus, Assumption As holds for (r′,R4r−4r′ρ∗). Intuitively, a large value of r indicates strong alignment of θ∗ with the important directions of Σ, making the distribution of (x,y) easier to fit. Assumptions Ac and As are also linked to the growth rate of the coordinates of θ∗ in the basis (ei)i∈J. Indeed, assume that J=N−{0}, and there are constants α≥1, c>c′>0, r≥−1/2, δ>1+2αr, and W>0 such that c′i−α≤μi≤ci−α and ⟨θ∗,ei⟩iδ/2≤W for i≥1. Then Assumption As holds for r and a suitable choice of ρ∗ (Dieuleveut and Bach 2016, Section 2.7). Further discussion of the capacity and source assumptions, as well as their connections to Sobolev spaces, can be found in (Bach 2024, Berthier, Bach and Gaillard 2020, Chatalic, Schreuder, De Vito and Rosasco 2025). Lemmas 4 and 5 provide bounds on the quantities appearing in Theorems 1 and 2 under Assumptions Ac and As, respectively.
Lemma 4. Under Assumption Ac, we have γmΛ~≤(4cγm)1/α.
Proof. Let λ>0. As λΣ2(Σ+λ)−2≼Σ, we have λtr[Σ2(Σ+λ)−2]≤tr[Σ]≤R2. Moreover, under Assumption Ac,
where the first equation follows by integration by parts, the second by a change of variables, and the third from the inequality u1/α+u1−1/α≤1+u for 0<u≤1. This yields tr[Σ2(Σ+λ)−2]≤(c/λ)1/α. Replacing λ with (4γm)−1 concludes the proof.
Lemma 5 and its proof are inspired by Dieuleveut, Flammarion and Bach (2017, Lemma 14).
Lemma 5. Suppose that Assumption As holds, and Λ=(logm)/(γm). Then
Proof. We have ∣∣(I−γΣ)mθ∗∣∣Σ2=⟨v∗,Bv∗⟩, where B=(I−γΣ)2mΣ2r+1. As ei is an eigenvalue of B with corresponding eigenvalue (1−γμi)2mμi2r+1, and γμi≤γR2≤1 for i∈J by (5) and (6), and since (1−z)2mz2r+1≤((2r+1)/(2m))2r+1 for 0≤z≤1, we have
Proof. If −1/2≤r≤1/2 then applying Theorem 1 together with (18) and (19) implies (21). Likewise, if Assumption Ac holds and 1/2≤r≤1 then using Theorem 1, (18), (20) and Lemma 4 implies (22).
Theorem 3 implies immediately the following. Note that (6) holds under the conditions stated in Corollary 1 because 2log(m)≤m for m≥3.
Corollary 1. Suppose that Assumptions A1 and As hold, and γ is a constant with 0<2γR2≤1. Set Λ=log(m)/(γm).
If −1/2≤r≤1/2, then there exists a constant κ1, depending only on ρ∗ and γ, such that for m≥3,
E[R(wN)]≤κ1(mlogm)2r+1.(23)
If 1/2≤r≤1 and Assumption Ac holds, then there exists a constant κ2, depending only on c, ρ∗ and γ, such that for m≥3,
E[R(wN)]≤κ2(logm)2mα2r−1−2r−1.(24)
An immediate consequence of Corollary 1 is that E[R(wN)]=O(m−2log2m) when r=1/2, while E[R(wN)] converges strictly faster than m−2 when r>1/2 and α>1. Moreover, E[R(wN)]=O(m−3+ϵ) for any ϵ>α−1 when r=1. However, values of r>1 do not lead to improved bounds in Corollary 1. Such saturation in the source parameter is common in the SGD literature (Dieuleveut and Bach 2016, Dieuleveut, Flammarion and Bach 2017).
4.3 Relation with previous work
We assume throughout this subsection that σ=0. Under assumptions similar to ours, Dieuleveut and Bach (2016, Theorem 2) implies a bound on the expected excess risk of averaged SGD with m time steps of order m−2r−1 for −1/2≤r≤0 and m−2r−1+2r/α for 0≤r≤1/2, with a saturation effect for r≥1/2. The bounds on E[R(wˉ2m:3m)] implied by Corollary 1 match their bounds, up to a log2m factor, when −1/2≤r≤0, and are strictly sharper when r>0. Likewise, for 0≤r≤1/2, Dieuleveut, Flammarion and Bach (2017, Theorem 2 and Lemma 14) together with the bound tr[Σ(Σ+λ)−1]=O(λ−1/α) for α>1 (Bach 2024, Section 7.6.6), imply that the expected excess risk of regularized averaged SGD with a constant step size is O(λ2r+1+λ2r−1m−2(1+λ−1/α)), where λ is the regularization parameter and m is the number of time steps. Up to a constant factor, this bound is minimized for λ=m−2α/(2α+1), yielding a rate of order m−2α(2r+1)/(2α+1) which is strictly higher than the bound on E[R(wˉ2m:3m)] implied by (23). Finally, Jun, Cutkosky and Orabona (2019) study a variant of KRR in an RKHS setting, under capacity and source assumptions similar to ours and a boundedness assumption on the kernel and y. When 2αr<−1, their bounds on the expected excess risk strictly improve upon the preceding ones and ours, and are of order n−α(2r+1)/(1+2rα+α), where n is the number of training samples. Unlike Jun, Cutkosky and Orabona (2019), we do not assume that y is bounded.
Although we have focused above on their results for the noiseless case, the aforementioned papers mostly address the noisy case. In contrast, Berthier, Bach and Gaillard (2020) specifically study the noiseless setting. They assume that Assumption As holds with r≥0 and impose an additional regularity condition on x. They provide a tight bound of the form
t∈[0,m]minE[R(wt)]≤κ^m−2r−1,(25)
where κ^>0 is a constant (recall that (wt)0≤t≤m is a standard SGD sequence in a noiseless setting). Their regularity condition implies that Σ1−2r is trace-class, and thus 2r<1 when H is infinite-dimensional. Therefore, for suitable choices of γ and Λ, our bound (23) holds under their assumptions and matches the righthand side of (25) up to a log2m factor. However, since 2r<1, the rate in (25) decays strictly more slowly than m−2. Under related conditions, Varre, Pillaud-Vivien and Flammarion (2021) provide a bound of order m−2r−1 on E[R(wm)] for −1/2<r<1/2.
In summary, when 0<r<1/2, our bounds for both averaged and non-averaged SGDIR are either strictly sharper than existing ones or hold under weaker assumptions. Moreover, whereas the preceding bounds saturate for r≥1/2, ours saturate only for r≥1. However, we do not establish convergence properties for the last iterate of SGDIR; this is left for future work.
5 Comparison with ridge regression
In this section, we assume that (2) and the following conditional moments assumption hold.
Assumption Acm. There is a vector θ∗∈H and a constant σ≥0 with E[y−⟨x,θ∗⟩∣x]=0 and E[(y−⟨x,θ∗⟩)2∣x]≥σ2.
Note that Assumption Acm implies (4), and hence θ∗ minimizes L. Conversely, if there exists θ∗∈H such that y−⟨x,θ∗⟩ is mean-zero and independent of x, then Assumption Acm and (3) hold with σ2=σ2=E[(y−⟨x,θ∗⟩)2]. If both Assumption Acm and (3) hold and Σ is non-zero, then σ≤σ.
Let θ^λ=θ^λ,n be the estimator of θ∗ obtained from a ridge regression using regularization parameter λ>0 and n independent copies (xi,yi) of (x,y), 1≤i≤n. Thus,
θ^λ=argθ∈Hmini=1∑n(yi−⟨xi,θ⟩)2+λ∣∣θ∣∣2.
Let Σ^:=n−1∑i=1nxi⊗xi be the empirical covariance operator. As E[x⊗x]=Σ, we have E[Σ^]=Σ. Moreover,
E[(x⊗x−Σ)2]=E[∣∣x∣∣2x⊗x]−Σ2≼R2Σ.
By a standard calculation, it follows that E[(Σ^−Σ)2]≼(R2/n)Σ. Hence
E[Σ^]=ΣandE[Σ^2]≼Σ2+nR2Σ.(26)
Furthermore, a straightforward adaptation of Bach (2024, Section 7.6.2) yields
We now derive lower bounds on each term on the righthand side of (27).
5.1 First term
We apply the equality E[Σ^]=Σ to derive a lower bound on the first term. When H is one-dimensional, such a lower bound follows immediately from Jensen's inequality together with the convexity of z↦(z+λ)−2 on R+. In contrast, convexity on R+ does not, in general, imply the corresponding operator inequality (Bhatia 2013, Example V.1.4). Lemma 6 circumvents this issue by establishing a Jensen-type inequality for the function z↦(z+1)−2 in the operator setting.
Lemma 6. Let U be a self-adjoint, positive semidefinite, square-integrable operator on H, and let V=E[U]. Then V(V+I)−2≼4E[(U+I)−1V(U+I)−1].
Applying Lemma 6 with U=λ−1Σ^ and noting that V=λ−1Σ yields
Σ(Σ+λ)−2≼4E[(Σ^+λ)−1Σ(Σ^+λ)−1].
Consequently,
∣∣(Σ+λ)−1θ∗∣∣Σ2≤4E[∣∣(Σ^+λ)−1θ∗∣∣Σ2].(28)
5.2 Second term
We now obtain a lower bound on the second term by exploiting (26). Consider first the case where H is one-dimensional, and assume for simplicity that λ=1. The second term is proportional to E[f(Σ^)], where f(z)=z(z+1)−2 for z≥0. Inspired by Bertsimas and Popescu (2002), we first bound f from below on [0,∞) by a quadratic function that matches f at the origin and is tangent to f at a second point. Specifically, for a,s≥0, the equality
(s+1)3−(a+1)2(3s+1−2a)=(a−s)2(2a+s+3)
implies that
f(a)≥(s+1)−3[(3s+1)a−2a2].(29)
Note that f coincides at 0 with the quadratic function of a defined by the righthand side, and is tangent to it at s. Replacing a by Σ^, taking expectations and using (26) yields
E[f(Σ^)]≥(s+1)−3Σ[(3s+1)−2(Σ+nR2)].(30)
The righthand side is maximized when s=Σ+R2/n, implying that
E[f(Σ^)]≥(Σ+nR2+1)−2Σ.
To generalize this approach to arbitrary dimensions, we seek an operator analogue of (29) in which a is replaced by Σ^ and s by Σ+R2/n, up to an appropriate scaling by λ. This is achieved via Lemma 7 below, which lifts certain scalar inequalities to trace inequalities for operators under suitable conditions. Let A be a self-adjoint positive semidefinite operator on H that is diagonalizable in an orthonormal eigenbasis (ui)i∈J of H. Let ai denote the eigenvalue of A associated with ui, so that Aui=aiui for i∈J. As 0≼A, we have 0≤ai≤∣∣A∣∣ for i∈J. We say that a rational function ϕ is well defined on [0,∣∣A∣∣] if it admits a representation ϕ=P/Q, where P and Q are real polynomials and Q(z)>0 for z∈[0,∣∣A∣∣]. In this case, we define the operator ϕ(A):=P(A)Q(A)−1 on H. As ϕ(A)ui=ϕ(ai)ui for i∈J, the operator ϕ(A) does not depend on the choice of P and Q.
Lemma 7. Let A and B be self-adjoint positive semidefinite operators on H, each diagonalizable in an orthonormal eigenbasis. Let k be a positive integer, and for 1≤j≤k, let ϕj and νj be rational functions that are well defined on [0,∥A∥] and [0,∥B∥], respectively. Assume that g(a,b)≥0 for a∈[0,∥A∥] and b∈[0,∥B∥], where g(a,b):=∑j=1kϕj(a)νj(b), and that the operator g(A,B):=∑j=1kϕj(A)νj(B) is trace-class. Then tr[g(A,B)]≥0.
Proof. Define ui and ai for i∈J as above, and let v be an eigenvector of B with eigenvalue b. Thus ϕj(A)ui=ϕj(ai)ui and νj(B)v=νj(b)v for i∈J and 1≤j≤k. Moreover,
where g(A,b):=∑j=1kνj(b)ϕj(A) by convention. Because g(A,b)ui=g(ai,b)ui for i∈J and g(ai,b)≥0, the operator g(A,b) is self-adjoint and positive semidefinite. Thus, ⟨v,g(A,B)v⟩≥0. As g(A,B) is trace-class, we have tr[g(A,B)]=∑i∈J⟨vi,g(A,B)vi⟩, where (vi)i∈J is an orthonormal eigenbasis of H for B, which yields tr[g(A,B)]≥0.
Lemma 8. For λ>0,
E[tr((Σ^+λ)−2Σ^Σ)]≥tr[Σ2(Σ+nR2+λ)−2].(31)
Proof. As x⊗x is a trace-class self-adjoint positive semidefinite operator, so is Σ^. Hence, Σ^ is diagonalizable in an orthonormal eigenbasis. For a,b≥0, replacing a with λ−1a and s with λ−1(b+R2/n) in (29) yields
(a+λ)2ab≥(b+R2/n+λ)3(3a(b+R2/n)+λa−2a2)b.
Applying Lemma 7 with A=Σ^ and B=Σ then shows that
Proof. A standard diagonalization argument shows that, for Λ>0,
∣∣(Σ+Λ)−1θ∗∣∣Σ2≤(1+Λ2λ2)∣∣(Σ+λ)−1θ∗∣∣Σ,(34)
and, for λ′,λ′′>0,
tr[Σ2(Σ+λ′)−2]≤(1+λ′2λ′′2)tr[Σ2(Σ+λ′′)−2].(35)
If σ=σ=0, then (32) follows from Proposition 1, Theorem 4, and (34). Now suppose that σ>0. Combining Proposition 1, Theorem 4, and (34) with (35) applied with λ′=(4γm)−1 and λ′′=λ+R2/n, yields (33) after some calculations.
Proposition 2 implies that, if λ is of order 1/n or larger, then E[R(θˉ2m:3m)] is bounded above by E[R(θ^λ)] up to a log2n factor, both when σ=σ=0 and when σ>0, for a suitable choice of γ. In the former case, the gap reduces to a constant factor when λ is of order (logn)/n or larger. In the latter case, it reduces to a logn factor when λ is of order logn/n or larger.
6 Lower bound
Let H be an infinite-dimensional separable Hilbert space over R, and let Σ be a positive semidefinite trace-class operator on H, with eigenvalues μi,i≥1, sorted in nonincreasing order. Assume that there exists ρ∈(0,1) such that ρμi≤μi+1 for i≥1. Let θ∗∈H and let (x,y) be a square-integrable random vector in H×R that satisfy Assumptions A1 and As, with E[x⊗x]=Σ and σ=0. Fix r≥−1/2, and let n≥2 be an integer such that nμ1>tr[Σ].
We consider the problem of finding an estimator θ^=θ^((x1,y1),…,(xn,yn)) that approximately minimizes L based on n copies (x1,y1),…,(xn,yn) of (x,y). Theorem 5 below provides a minimax lower bound on the expected excess risk of θ^. The intuition behind our approach is to construct two pairs (x,y(0)) and (x,y(1)) that satisfy the above assumptions and generate identical training samples of size n with constant probability. This makes it difficult for any learning algorithm to distinguish between the two distributions. Minimax lower bounds are often established in a noisy setting (e.g., Bach (2024, Section 15.1)).
We use a one-hot distribution for x. Such distributions have previously been considered in the SGD literature (Jain, Kakade, Kidambi, Netrapalli and Sidford 2018a, Zou, Wu, Braverman, Gu, Foster and Kakade 2021), and our lower bound approach is inspired by Jain, Kakade, Kidambi, Netrapalli and Sidford (2018a).
Theorem 5. For any measurable function θ^:(H×R)n→H, there is θ∗∈H satisfying Assumption As with parameter r and ρ∗=1, and a random pair (x,y) with E[x⊗x]=Σ satisfying Assumption A1, with R2=tr[Σ] and σ=0, such that
where (xt,yt), 1≤t≤n, are independent copies of (x,y).
Proof. We first build two noiseless pairs (x,y(0)) and (x,y(1)) that satisfy Assumptions A1 and As, with E[x⊗x]=Σ. Consider an orthonormal eigenbasis (ei)i≥1 of H with Σei=μiei for i≥1. Let x be a random vector such that Pr[x=tr[Σ]ei]=pi for i≥1, where pi=μi/tr[Σ]. Thus
E[x⊗x]=i=1∑∞pitr[Σ]ei⊗ei=i=1∑∞μiei⊗ei=Σ.
Let j=min{i≥1:npi≤1}. Since nμ1>tr[Σ], we have j>1. We choose θ∗ among two possible values, θ∗(0) and θ∗(1), where θ∗(l)=(−1)lμjrej for l∈{0,1}, and set y(l)=⟨θ∗(l),x⟩. As ∣∣x∣∣2=tr[Σ] almost surely, Assumption A1 holds for both (x,y(0)) and (x,y(1)), with R2=tr[Σ] and σ=0. Moreover, for l∈{0,1}, Assumption As holds for θ∗(l) with v∗(l)=(−1)lej and ρ∗=1.
For l∈{0,1}, let (xt,yt(l)), 0≤t≤n−1, be n independent copies of (x,y(l)), and let θ^(l)=θ^((x1,y1(l)),…,(xn,yn(l))). Consider the event
A={⟨xt,ej⟩=0for0≤t≤n−1}.
Since yt(l)=⟨θ∗(l),xt⟩, on the event A, we have yt(l)=0 for 0≤t≤n−1 and l∈{0,1}, which implies that θ^(0)=θ^(1). Since ∣∣θ∣∣Σ2≥μj⟨θ,ej⟩2 for θ∈H, it follows that, on the event A,
where the second equation follows from the inequality (z′−z)2+(z′+z)2≥2z2 applied with z′=⟨θ^(0),ej⟩ and z=μjr. Moreover, it follows from the definition of j that ρ≤ρnpj−1≤npj, where the second equation follows from the inequality ρμj−1≤μj. Moreover, as npj≤1,
Pr[A]=(1−pj)n≥(1−n1)n≥41,
where the last equation is valid for all n≥2. Hence,
where the last equation follows from the inequality ρ≤npj. Thus, (36) is satisfied either for θ∗=θ∗(0) and (x,y)=(x,y(0)), or for θ∗=θ∗(1) and (x,y)=(x,y(1)).
In a noisy setting, for α≥1 and r>−1/2, the expected excess risk of any algorithm based on n training samples admits an information-theoretic lower bound of order n−α(2r+1)/(1+2αr+α) (e.g., Caponnetto and De Vito (2007) and (Bach 2024, Section 15.1.5)). When 2αr<−1, this lower bound is asymptotically smaller than the lower bound in Theorem 5.
Note that y(0) and y(1) are not bounded in the proof of Theorem 5 when r<0. Therefore, in settings where a boundedness condition on y is imposed, the lower bound in Theorem 5 may not apply. In particular, for α≥1 and −1/2<r≤0, Jun, Cutkosky and Orabona (2019) obtain, in a noisy setting, an upper bound of order n−α(2r+1)/(1+2rα+α) on the expected excess risk. When 2αr<−1, this upper bound is asymptotically smaller than the lower bound in Theorem 5. A similar observation applies to Pillaud-Vivien, Rudi and Bach (2018). Finally, the lower bound in Theorem 5 matches the upper bound of order n−2r−1 shown in a noisy setting by Dieuleveut and Bach (2016, Corollary 2) when 2αr<−1, and, up to a polylogarithmic factor, the upper bound in (23) when −1/2≤r≤1/2.
7 Numerical experiments
The numerical experiments were conducted on a laptop with a 1 GHz Intel processor and 8 GB of RAM. The code was written in Python. We implemented the following estimators, each evaluated over 5×105/n independent runs, with each run using n random training samples.
(a) μi=i−1.25,θi∗=i−1
(b) μi=i−1.25,θi∗=i−2
(c) μi=i−2,θi∗=i−2
Last-iterate SGD
Last-iterate SGDIR
Tail-averaged SGD
Tail-averaged SGDIR
Ridge regression
Figure 1: Test error versus n for in a noiseless setting.
Standard tail-averaged SGD averages the last n/2 iterates of standard SGD, while tail-averaged SGDIR computes θˉn/2:n+1 with m=n/4. In the noiseless setting of Section 7.1, we additionally implemented last-iterate SGD, last-iterate SGDIR given by θn+1 with m=n/2, and ridge regression. For all SGDIR estimators, we set Λ=log(m)/(2γm). In Section 7.2, we also implemented KRR. For both ridge regression and KRR, the regularization parameter was selected by 5-fold cross-validation using the n training samples. The test error of a model is defined as E[(y^−y)2], where y^ is the response value predicted by the model on input x.
7.1 Synthetic experiments
We assume that d=2000, that x is a centered d-dimensional Gaussian vector with covariance matrix Σ=diag(i−α), 1≤i≤d, where α>0, and that y=xTθ∗, where θ∗∈Rd is deterministic. Similar distributions have been used in both noiseless (Varre, Pillaud-Vivien and Flammarion 2021) and noisy settings (Dieuleveut, Flammarion and Bach 2017, Jain, Kakade, Kidambi, Netrapalli and Sidford 2018b, Zou, Wu, Braverman, Gu and Kakade 2023). A standard calculation shows that (2) holds with R2=2μ1+tr(Σ). We use the step size γ=1/R2 for both SGD and SGDIR. Fig. 1 reports the average test errors of several estimators as functions of n. The ridge regression test error is not reported for n≥d, since it is essentially 0 when λ=0. For n≤d, ridge regression outperforms SGDIR and the optimal λ is of order 10−6 or smaller, consistent with the fact that the bound (32) becomes loose for such small values of λ. The slopes obtained by regressing the logarithm of the test error of tail-averaged SGDIR on log(n) in panels a), b) and c) in Fig. 1 are respectively −1.75, −1.98 and −2.33. The corresponding slopes implied by Corollary 1 and the discussion at the beginning of Section 4.1 are −1.8, −2.28 and −2.25.
7.2 Real data
We use the datasets “house_8L”, “elevators” and “year_prediction_msd” (MSD) downloaded from OpenML. Each dataset is divided into a training and a testing dataset, and the training dataset is normalized. We apply the exponential kernel, with bandwidth selected by the median heuristic based on 104 randomly chosen training pairs. We implemented both SGD and SGDIR using an adaptation of the algorithm described in (Bach 2024, Section 7.4.5), with step size γ=1. For KRR, we used the standard algorithm described in (Bach 2024, Eq. 7.7). For each run of each algorithm, the test error is estimated by averaging the squared difference between y and its fitted value over 103 randomly chosen test samples. Table 1 reports the running times of tail-averaged SGD and Ridge regression, together with the quantity λn, where λ is the average regularization parameter for KRR. The running time of SGDIR differs from that of tail-averaged SGD by at most 20% and is therefore omitted for readability. Because of vectorization, the running times of SGD and KRR increase little with the number of attributes d′. Moreover, KRR is faster than SGD for small values of n, but slower for large values. However, for the MSD dataset with n=3×104, tail-averaged SGDIR achieves an average test error of 84.07 over 100 independent runs and takes 260 seconds per run, whereas KRR results in a memory overflow due to its O(n2) space requirement. Fig. 2 provides the average test error in terms of
n
house_8L (d′=8)
elevators (d′=18)
MSD (d′=90)
SGD
KRR
λn
SGD
KRR
λn
SGD
KRR
λn
150
0.0016
0.00086
0.09
0.0014
0.00079
3.5×10−5
0.0019
0.00081
2.1
300
0.0039
0.0042
0.12
0.0034
0.0034
1×10−6
0.0044
0.0034
0.12
600
0.015
0.019
0.16
0.014
0.018
1×10−6
0.016
0.019
0.11
1200
0.048
0.084
0.19
0.046
0.092
1×10−6
0.053
0.083
0.17
2400
0.19
0.42
0.23
0.20
0.42
1×10−6
0.17
0.41
0.23
Table 1: Running time (in seconds) of a single run of tail-averaged SGD (representative of both SGD-like methods) and KRR, together with the corresponding values of λn. The reported running times exclude cross-validation and test error evaluation.
n. Fig. 3 provides an estimate of
Figure 2: Average test error versus n for the house_8L, elevators and MSD datasets, from left to right.
where n ranges over the values used in Fig. 2, λ∗ is an optimal regularization parameter for KRR, and θSGD,n~ is the tail-averaged estimator based on n~=14000 training samples. We estimate E[L(θSGD,n~)] using 100 independent runs. Since E[L(θSGD,n~)]≥L(θ∗) and provided that R(n,n~)≥1 and the denominator in the definition of R(n,n~) is positive, conditions that we verify numerically, a simple calculation shows that E[R(θˉn/2:n+1)]≤R(n,n~)E[R(θ^λ∗,n)]. All values of R(n,n~) reported in Fig. 3 are at most 3, consistent with the O(log2n) upper bound implied by Proposition 2 under suitable conditions. However, Table 1 suggests that, for the elevators dataset, the requirement in the discussion following Proposition 2 that λ∗ be of order 1/n or larger is not satisfied in practice.
Figure 3: Upper bound on E[R(θˉn/2:n+1)]/E[R(θ^λ,n)], with n~=14000.
8 Conclusion
We have derived upper bounds on the expected excess risk of SGDIR. We first summarize our results in the noiseless case. When 0<r<1/2, our bounds for both averaged and non-averaged SGDIR are either strictly sharper than existing ones or hold under weaker assumptions. Moreover, whereas previous bounds saturate for r≥1/2, ours saturate only for r≥1. In particular, when r=1/2, we obtain bounds of order m−2log2m, while, when r=1, we obtain bounds of order m−3+ϵ for any ϵ>α−1. To the best of our knowledge, no existing algorithm has been shown to achieve such convergence rates under comparable assumptions. We also derive a lower bound of order m−2r−1 on the expected excess risk of any algorithm based on m training samples, which matches our upper bound, up to a log2m factor, when −1/2≤r≤1/2. Closing the gap between the upper and lower bounds for r>1/2, using SGD-like algorithms or other algorithms such as ridge regression, is an open question. Noiseless SGD also arises in areas beyond machine learning, such as the averaging process on a graph (Berthier, Bach and Gaillard 2020). Exploring applications of SGDIR to such areas is a question that deserves further research.
We also provide an instance-based comparison of SGDIR and ridge regression in the noisy case under general assumptions. When the regularization parameter is of order 1/n or larger, we show that the expected excess risk of SGDIR is no larger than that of ridge regression, up to a log2n factor, where n is the number of training samples. Whether a similar comparison holds for SGD is an open question. Numerical experiments on synthetic and real data are consistent with our theoretical findings. Extending our analysis beyond the squared loss is an interesting direction for future research.
A Preliminary inequalities
This section gives preliminary results for use in subsequent proofs. Our analysis often uses the fact that if A, A′, B and B′ are self-adjoint operators and have a common orthonormal eigenbasis, with 0≼A≼A′ and 0≼B≼B′, then AB and A′B′ are self-adjoint with 0≼AB≼A′B′.
The recursion (9) can be equivalently written as
wt+1−θ∗=Pt(wt−θ∗)−γλtθ∗,(37)
where Pt:=I−γ(xt⊗xt+λtI). For t≥0, we have E[Pt]=At, where At:=I−γ(Σ+λt). Lemma 9 provides operator inequalities involving Pt and At.
Lemma 9. For t≥0, we have At≽0 and
E[Pt2]≼(1−γλt)At≼(1−γλt)2I.(38)
Moreover, for any self-adjoint operator M on H satisfying M≼ξI and M≼ξ′Σ, where ξ and ξ′ are nonnegative constants, we have, for t≥0,
E[PtMPt]≼(1−γλt)((1−γλt)ξ′+γξ)Σ.(39)
Proof. The second inequality in (38) holds because γλt≤1 by (6). For t≥0,
where, by convention, the left-hand side is zero when k = 0.
Proof. We prove by induction on k≥0 that (41) holds for all j≥m. The base case k=0 is immediate. Assume now that (41) holds for k and any j≥m. Replacing j by j+1 shows that, for j≥m,
where the second equation follows from Am=I−γΣ. Thus (41) holds for k+1 and j.
Lemma 11 provides general operator inequalities.
Lemma 11. For n≥1 and any self-adjoint operator M satisfying 0≼M≼I and diagonalizable in an orthonormal basis, we have
I−(I−M)n≼2M(M+n1)−1,(42)
and
I−(I−M)n≼nM.(43)
Proof. As z↦(1−z)n is convex on the interval [0,1], we have 1−nz≤(1−z)n for 0≤z≤1. Thus, when nz≤1,
1−(1−z)n≤1+nz2nz.(44)
When nz≥1, (44) remains valid because the righthand side is lower bounded by 1. Consider now an orthonormal eigenbasis (ui)i∈J of H for the operator M, and let ai be the eigenvalue of
M associated with ui, i.e., Mui=aiui for i∈J. Let B be the difference between the righthand side and lefthand side of (42). For i∈J,
Bui=(1+nai2nai−(1−(1−ai)n))ui.
By (44), the eigenvalues of B are nonnegative, which implies (42). A similar diagonalization argument implies (43).
Lemma 12 shows how to combine two upper bounds on an operator into a single bound.
Lemma 12. Let B, C and D be self-adjoint operators on H such that 0≼B≼C and 0≼B≼D. Assume further that C+D is invertible that C and D commute. Then CD(C+D)−1 is self-adjoint and B≼2CD(C+D)−1.
Proof. As C and D commute, (C+D)−1 commutes with both C and D, which implies that CD(C+D)−1 is self-adjoint. Assume first that B is invertible. Then C is invertible and C−1≼B−1, since 0≼B≼C. Similarly, D is invertible and D−1≼B−1. Thus, C−1+D−1≼2B−1. Inverting both sides yields
B≼2(C−1+D−1)−1=2CD(C+D)−1.
where the last equation follows from the fact that C and D. In the general case, applying the preceding inequality to B+ϵI, C+ϵI and D+ϵI for ϵ>0, and letting ϵ go to 0, yields the desired bound.
B Proof of Lemma 1
We first analyze the bias of wt using Lemma 13 and its variance using Lemma 14. Both lemmas suppose that the assumptions of Lemma 1 hold.
Proof. Taking expectations in (37) and using the independence of Pt and wt implies (45). Because θΛ=Σ(Σ+Λ)−1θ∗, it follows by induction that, for 0≤t≤m,
E[wt]=θΛ−A0tθΛ.(48)
As 0≼A0≼(1−γΛ)I by Lemma 9, this yields ∣∣E[wt]−θΛ∣∣≤(1−γΛ)t∣∣θΛ∣∣ for 0≤t≤m. Using the inequality ∣∣u+v∣∣2≤2∣∣u∣∣2+2∣∣v∣∣2 for u,v∈H, this shows that (46) holds for
0≤t≤m. Moreover, as 0≼Am≼I by Lemma 9, it follows from (45) and an induction argument that ∣∣E[wt]−θ∗∣∣≤∣∣E[wm]−θ∗∣∣ for t≥m. Hence (46) holds for t≥m as well.
Replacing θΛ by Σ(Σ+Λ)−1θ∗ in (48) shows that
E[wm]=θ∗−Λ(I+Λ−1A0mΣ)(Σ+Λ)−1θ∗.
Using (45) and an induction argument, it follows that, for t≥m,
E[wt]=θ∗−Λ(I+Λ−1A0mΣ)Amt−m(Σ+Λ)−1θ∗.(49)
As 0≼A0≼(1−γΛ)I by Lemma 9 and A0 and Σ have a common orthonormal eigenbasis, we have
0≼Λ−1A0mΣ≼Λ−1R2(I−γΛ)mI≼γR2I,
where the second inequality follows from (5), and the third from 1+z≤ez for z∈R together with Λ≥log(m)/(γm). Using (6), it follows that 0≼Λ−1A0mΣ≼I which, combined with (49), yields (47).
Set ϵt=wt−E[wt] for t≥0. Combining (37) and (45) shows that, for t≥0,
ϵt+1=Ptϵt+(Pt−At)(E[wt]−θ∗).(50)
Lemma 14. For t≥m, we have E[∣∣ϵt∣∣2]≤4γ2R2Λ2∣∣(Σ+Λ)−1θ∗∣∣Σ2t.
Proof. Because E[ϵt]=0 and ϵt is independent of Pt for t≥0,
where the first equation follows from (50) and the equality E[∣∣U+V∣∣2]=E[∣∣U∣∣2]+E[∣∣V∣∣2] for square-integrable random vectors U and V with E[⟨U,V⟩]=0, the second from the definition of Pt and At, and the last from (38), (2), and (40). Using (46), it follows that, for t≥0,
where the second equation follows from (5), and the last from (6) and the inequality Λ≥log(m)/(γm). Furthermore, because 1+z≤ez for z∈R, we have (1−γΛ)m≤m−1. As
The second equation is a standard bias-variance decomposition, while the third follows from (47) together with the inequality I−Am2m≼2γmΣ, which is a special case of (43). We have ∣∣Amm(Σ+Λ)−1θ∗∣∣Σ≤∣∣(Σ+Λ)−1θ∗∣∣Σ since 0≼Am≼I. Moreover, Lemma 14 together with (6) yields
E[∣∣ϵ2m∣∣2]≤8γΛ2m∣∣(Σ+Λ)−1θ∗∣∣Σ2.
Combining the preceding inequalities implies (10).
C Proof of Lemma 2
We first prove the following bound on the covariance of ϵt.
Lemma 15. For t≥m,
E[ϵt⊗ϵt]≼8γR2Λ2∣∣(Σ+Λ)−1θ∗∣∣2Σ(Σ+2γt1)−1.
Proof. For t≥0, define Ct=E[ϵt⊗ϵt], and let Ut=Ptϵt and Vt=(Pt−At)(E[wt]−θ∗) be the components of the righthand side of (50). Because E[ϵt]=0 and ϵt and Pt are independent for t≥0, we have E[Ut⊗Vt]=0. Consequently, E[(Ut+Vt)⊗(Ut+Vt)]=E[Ut⊗Ut+Vt⊗Vt]. Thus, for t≥0,
where the second equation follows from the relations (Mu)⊗(Mu)=M(u⊗u)M for u∈H and self-adjoint operator M, and (E[wt]−θ∗)⊗(E[wt]−θ∗)≼∣∣E[wt]−θ∗∣∣2I, the third from the independence of ϵt and Pt, and the last from (2) and (40). Using (46), it follows that
Ct+1≼E[PtCtPt]+γξtΣ,
(54) where
ξt=2γR2(∣∣θΛ−θ∗∣∣2+(1−γΛ)2min(m−1,t)∣∣θΛ∣∣2).
We now prove by induction that Ct≼ξt(1−γλt)−1I and Ct≼2γξtt(1−γλt)−2Σ for t≥0. The base case t=0 clearly holds. Assume the induction hypothesis holds for t. Then
where the first equation follows from (54) and the induction hypothesis, the second from (38), and the last from the inequality (1−γλt)(1−γλt+1)ξt≤ξt+1 for t≥0. Similarly, it follows from the induction hypothesis, (54), and (39) applied to Ct with ξ=ξt(1−γλt)−1 and ξ′=2γξtt(1−γλt)−2, that
Ct+1≼2γξt(t+1)Σ≼(1−γλt+1)22γξt+1(t+1)Σ,
where the second equation follows from the inequality (1−γλt+1)2ξt≤ξt+1 for t≥0. Thus, the induction hypothesis holds for t+1. By Lemma 12, it follows that Ct≼2ξmΣ(Σ+(2γt)−1)−1 for t≥m. Moreover, a calculation similar to that leading to (52) shows that ξm≤4γR2Λ2∣∣(Σ+Λ)−1θ∗∣∣2, thereby completing the proof.
Lemma 16 provides a uniform bound on E[∣∣ϵk∣∣I−Am2m] over a range of values of k.
Lemma 16. For m≤k≤3m, we have
E[∣∣ϵk∣∣I−Am2m2]≤16γ2R2Λ2Λ~∣∣(Σ+Λ)−1θ∗∣∣2m.
Proof. Using the identity tr[u⊗v]=⟨u,v⟩ for u,v∈H and Lemma 15, we have
Combining (53) with the inequality ∣∣Amm(Σ+Λ)−1θ∗∣∣Σ≤Λ−1∣∣Ammθ∗∣∣Σ and Lemma 16 yields (11).
D Proof of Theorem 1
Lemmas 14 and 16 provide two alternative bound on E[∣∣ϵ2m∣∣I−Am2m2]. We combine these bounds using Lemma 12. Using (9), it can be shown by induction that, for t≥0, there is a random operator Mt on H that does not depend on θ∗ such that the operator E[Mt⊗Mt] is well-defined and wt=Mtθ∗. Fix now t∈[2m,3m−1]. As ϵt=(Mt−E[Mt])θ∗, we have E[∣∣ϵt∣∣I−Am2m2]=⟨θ∗,Bθ∗⟩, where B is a positive semidefinite self-adjoint operator that does not depend on θ∗. It follows from Lemma 14 that ⟨θ∗,Bθ∗⟩≤⟨θ∗,Cθ∗⟩, where C=16γ2R2Λ2m(Σ+Λ)−2Σ. Since this inequality holds for any θ∗∈H, we conclude that B≼C. Similarly, Lemma 16 implies that B≼D, where D=16γ2R2Λ2Λ~m(Σ+Λ)−2. By Lemma 12, it follows that
Together with (53) and the inequality ∣∣Amm(Σ+Λ)−1θ∗∣∣Σ≤Λ−1∣∣Ammθ∗∣∣Σ, this concludes the proof.
E Proof of Lemma 3
The proof of Lemma 3 builds on ideas developed in (Zou, Wu, Braverman, Gu and Kakade 2023), who provide tight bounds on SGD in a context without regularization. In particular, Lemma 17 provides a bound on E[δt⊗δt] similar in spirit to (Zou, Wu, Braverman, Gu and Kakade 2023, Lemma B.5), and some calculations in the proof of Lemma 18 resemble those in (Zou, Wu, Braverman, Gu and Kakade 2023, Lemma B.6). However, the proof of Lemma 17 is based on Lemmas 9 and 12, whereas the proof of their Lemma B.5 relies on operators acting on symmetric matrices.
Lemma 17. For 0≤t≤3m, we have
E[δt⊗δt]≼2γσ2Σ(Σ+6γm1)−1.
Proof. We show by induction on t≥0 that Ct≼γσ2I and Ct≼2γ2σ2tΣ, where Ct=E[δt⊗δt]. The base case t=0 is trivial. Assume the induction hypothesis holds for t. Equation (14) can be rewritten as
δt+1=Ptδt+vt.(56)
As δt is independent of (Pt,vt) and E[δt]=0, we have E[(Ptδt)⊗vt]=0. Consequently,
where the second equality follows from the facts Pt and δt are independent, conditional on δj, and vt is independent of δj and has zero mean. Because Pt and δj are independent, we have E[Pt∣δj]=E[Pt]=Am. Thus, E[δt+1∣δj]=AmE[δt∣δj]. It follows by induction that E[δt∣δj]=Amt−jδj for 2m≤j≤t, which implies that
where the first equation follows from the identity ∑t=j3m−1ΣAmt−j=γ−1(I−Am3m−j), and the second from the inequality Amm≼Am3m−j, which is a consequence of (38).
We now prove Lemma 3. Let j∈[2m,3m−1]. Because tr[u⊗v]=⟨u,v⟩ for u,v∈H,
where the second equation follows from the inequality (z+1)(z+1/6)≥(z+1/4)2 for z≥0. Using Lemma 18 completes the proof.
F Proof of Theorem 2
Using (47) and (Σ+Λ)−1≼Λ−1I implies that ∣∣E[wt]−θ∗∣∣Σ≤2∣∣Amt−mθ∗∣∣Σ for t≥m. As 0≼Am≼I, it follows that ∣∣E[wt]−θ∗∣∣Σ≤2∣∣Ammθ∗∣∣Σ for t≥2m. By the convexity of the function ∣∣.∣∣Σ2, this implies (15). Moreover, a calculation similar to that in the proof of Lemma 18, using (50) in place of (56), shows that
Lemma 19. Let A and B be self-adjoint operators on H such that 0≼B and 0≼I−B≼A≼I. Then ABA≼4B.
Proof. Since 0≼B, we have 0≼(2I−A)B(2I−A). As
2B+2(I−A)B(I−A)−ABA=(2I−A)B(2I−A),
this yields
ABA≼2B+2(I−A)B(I−A).
Moreover,
(I−A)B(I−A)≼(I−A)2≼I−A≼B,
where the first inequality follows from B≼I and the second from 0≼A≼I. This completes the proof.
We now prove Lemma 6. Set P=E[(U+I)−1]. Since the map X↦(X+I)−1 is operator convex on self-adjoint positive semidefinite operators (see, e.g. (Mourtada and Rosasco 2022, Lemma 8)), by Jensen's operator inequality,
(V+I)−1=(E[U+I])−1≼E[(U+I)−1]=P.
Since 0≼U, we have 0≼(U+I)−1≼I and therefore (V+I)−1≼P≼I. This implies that 0≼B and 0≼I−B≼A≼I, where B=I−(V+I)−1 and A=(V+I)−1/2P−1(V+I)−1/2. By Lemma 19, it follows that B≼4A−1BA−1. After some simplifications, we conclude that V(V+I)−2≼4PVP. Moreover, because 0≼V,
0≼((U+I)−1−P)V((U+I)−1−P).
Taking expectations implies that
PVP≼E[(U+I)−1V(U+I)−1],
which completes the proof.
References
Attia, A., Schliserman, M., Sherman, U. and Koren, T. (2026). Fast last-iterate convergence of SGD in the smooth interpolation regime, Advances in Neural Information Processing Systems 38: 104951–104987.
Bach, F. (2024). Learning theory from first principles, MIT press.
Bach, F. and Moulines, E. (2013). Non-strongly-convex smooth stochastic approximation with convergence rate O(1/n), Advances in Neural Information Processing Systems, pp. 773–781.
Bartlett, P. L., Long, P. M., Lugosi, G. and Tsigler, A. (2020). Benign overfitting in linear regression, Proceedings of the National Academy of Sciences 117(48): 30063–30070.
Berthier, R., Bach, F. and Gaillard, P. (2020). Tight nonparametric convergence rates for stochastic gradient descent under the noiseless linear model, Advances in Neural Information Processing Systems 33: 2576–2586.
Bertsimas, D. and Koduri, N. (2022). Data-driven optimization: A reproducing kernel Hilbert space approach, Operations Research 70(1): 454–471.
Bertsimas, D. and Popescu, I. (2002). On the relation between option and stock prices: a convex optimization approach, Operations Research 50(2): 358–374.
Bhatia, R. (2013). Matrix analysis, Springer Science & Business Media.
Caponnetto, A. and De Vito, E. (2007). Optimal rates for the regularized least-squares algorithm, Foundations of Computational Mathematics 7(3): 331–368.
Carratino, L., Rudi, A. and Rosasco, L. (2018). Learning with SGD and random features, Advances in neural information processing systems 31.
Chatalic, A., Schreuder, N., De Vito, E. and Rosasco, L. (2025). Efficient numerical integration in reproducing kernel Hilbert spaces via leverage scores sampling, Journal of Machine Learning Research 26(101): 1–55.
Dieuleveut, A. and Bach, F. (2016). Nonparametric stochastic approximation with large step-sizes, The Annals of Statistics 44(4): 1363–1399.
Dieuleveut, A., Flammarion, N. and Bach, F. (2017). Harder, better, faster, stronger convergence rates for least-squares regression, The Journal of Machine Learning Research 18(101): 1–51.
Hastie, T., Montanari, A., Rosset, S. and Tibshirani, R. J. (2022). Surprises in high-dimensional ridgeless least squares interpolation, Annals of statistics 50(2): 949.
Jain, P., Kakade, S. M., Kidambi, R., Netrapalli, P. and Sidford, A. (2018a). Accelerating stochastic gradient descent for least squares regression, Conference On Learning Theory, PMLR, pp. 545–604.
Jain, P., Kakade, S. M., Kidambi, R., Netrapalli, P. and Sidford, A. (2018b). Parallelizing stochastic gradient descent for least squares regression: Mini-batching, averaging, and model misspecification, Journal of Machine Learning Research 18(223): 1–42.
Jun, K.-S., Cutkosky, A. and Orabona, F. (2019). Kernel truncated randomized ridge regression: Optimal rates and low noise acceleration, Advances in neural information processing systems 32.
Kahalé, N. (2017). Superreplication of financial derivatives via convex programming, Management Science 63(7): 2323–2339.
Kahalé, N. (2026). Unbiased least squares regression via averaged stochastic gradient descent, Mathematics of Operations Research 51(3): 2619–2642.
Lin, L., Wu, J., Kakade, S. M., Bartlett, P. L. and Lee, J. D. (2024). Scaling laws in linear regression: Compute, parameters, and data, Advances in Neural Information Processing Systems 37: 60556–60606.
Ma, S., Bassily, R. and Belkin, M. (2018). The power of interpolation: Understanding the effectiveness of SGD in modern over-parametrized learning, International Conference on Machine Learning, PMLR, pp. 3325–3334.
Mourtada, J. and Rosasco, L. (2022). An elementary analysis of ridge regression with random design, Comptes Rendus. Mathématique 360(G9): 1055–1063.
Mücke, N., Neu, G. and Rosasco, L. (2019). Beating SGD saturation with tail-averaging and minibatching, Advances in Neural Information Processing Systems 32.
Pillaud-Vivien, L., Rudi, A. and Bach, F. (2018). Statistical optimality of stochastic gradient descent on hard learning problems through multiple passes, Advances in Neural Information Processing Systems, pp. 8114–8124.
Polyak, B. T. and Juditsky, A. B. (1992). Acceleration of stochastic approximation by averaging, SIAM journal on control and optimization 30(4): 838–855.
Rudi, A. and Rosasco, L. (2017). Generalization properties of learning with random features, Advances in neural information processing systems 30.
Ruppert, D. (1988). Efficient estimations from a slowly convergent Robbins-Monro process, Technical report, Cornell University Operations Research and Industrial Engineering.
Tsigler, A. and Bartlett, P. L. (2023). Benign overfitting in ridge regression, Journal of Machine Learning Research 24(123): 1–76.
Varre, A. V., Pillaud-Vivien, L. and Flammarion, N. (2021). Last iterate convergence of SGD for least-squares in the interpolation regime., Advances in Neural Information Processing Systems 34: 21581–21591.
Wu, J., Bartlett, P. L., Kakade, S. M., Lee, J. D. and Yu, B. (2025). Risk comparisons in linear regression: Implicit regularization dominates explicit regularization, arXiv preprint arXiv:2509.17251.
Zdeborova, L. (2022). Generalization error rates in kernel regression: the crossover from the noiseless to noisy regime.
Zou, D., Wu, J., Braverman, V., Gu, Q., Foster, D. P. and Kakade, S. (2021). The benefits of implicit regularization from SGD in least squares problems, Advances in neural information processing systems 34: 5456–5468.
Zou, D., Wu, J., Braverman, V., Gu, Q. and Kakade, S. M. (2023). Benign overfitting of constant-stepsize SGD for linear regression, Journal of Machine Learning Research 24(326): 1–58.