betaFeedback

WorksComputer Science

Asymptotic Risk of Learning-Rate Schedules for Least-Squares Regression with Discretely Distributed Features

Abstract

We study the last iterate of stochastic gradient descent (SGD) on streaming least squares with discretely distributed features (Slock's model), which decouples the dynamics across eigendirections. Under power-law source and capacity conditions, we derive the exact finite-time risk and asymptotic equivalents of constant and Warmup-Stable-Decay (WSD) schedules. With a tuned base learning-rate, the resulting scaling law decays as Θ(T−q)Θ(T^{-q}), where TT is the horizon, and qq is independent of the cooldown length c∈(0,1]c \in (0,1] but is strictly smaller for the constant schedule: any cooldown of fixed relative length c>0c > 0, however short, improves the risk by a polynomial factor, while its length only affects the constant, which is minimized by linear decay (c=1c = 1). Finally, we show that the optimal risk depends on the batch size bb and horizon TT only through bTbT, up to a critical batch size.

Introduction

While classical stochastic approximation theory relies heavily on iterate averaging to achieve optimal convergence rates, modern practice almost exclusively uses the final iterate. In particular, the Warmup-Stable-Decay (WSD) schedule (Hu et al. (2024); Hägele et al. [9]; Zhai et al. [20]) has emerged as a paradigm for large-scale model training, departing from the cosine and polynomial decays that were previously standard. Recent theoretical efforts have begun to bridge the gap between these practical schedules and the exact dynamics of the last iterate. Strong convergence guarantees for the final iterate have been established in the interpolation regime (Varre et al. [19]), and the necessity of geometrically tailored decay phases was formally captured by Ge et al. (2019). Building on this intuition, Schaipp et al. [17] recently demonstrated that worst-case convex optimization bounds already capture the shape of the loss curves for schedules used in practice, and even predict how the optimal base learning-rate transfers between them.

Such bounds are, however, agnostic to the quantities that ultimately govern the convergence rate, most notably the label noise and the spectrum of the data covariance. They therefore constrain the shape of a good schedule without expressing the resulting risk in terms of the difficulty of the problem, which is needed to quantify how much a decay phase actually buys.

By restricting our focus to the streaming least-squares problem, we trade generality for exactness. Since this setting explicitly accounts for the data spectrum and the noise, it admits an exact bias-variance decomposition of the final iterate’s risk. Exactness comes at a price: computing the risk in closed form requires a covariance model that decouples the coordinates (Slock [18]), and we assume power-law decay of both the spectrum and the initial distance. Under these assumptions, we obtain the exact finite-time risk of every schedule considered, and asymptotic equivalents that allow a precise comparison between them.

Summary and contributions. In this paper, we study the WSD family, parameterized by a relative cooldown length c∈(0,1]c \in(0,1], together with the constant schedule, which we treat separately. Under Slock’s model and power-law source and capacity conditions, we obtain the exact finite-time risk of the last iterate (Theorem 3.1) and its asymptotic equivalent for each schedule (Theorems 4.2 and 4.3), from which we derive the asymptotically optimal base learning rate γ~T∗\widetilde{\gamma}^{*}_{T} and the resulting risk. For a horizon TT, the optimal risk is Θ(T−q)\Theta(T^{-q}) with an exponent qq that does not depend on cc on the whole interval (0,1](0,1], yet is strictly smaller for the constant schedule. These exponents agree with those of Li et al. (2025), derived up to constants: any cooldown of fixed relative length improves the risk polynomially in the horizon. Our exact equivalents also resolve the constant, minimized at c∗=1c^* = 1 (pure linear decay), and make learning-rate transfer across cooldown lengths explicit. Moreover, when the capacity and source exponents of Assumption 3.2 satisfy α<2\alpha< 2 and β<α+1\beta< \alpha+ 1, the optimal rate of WSD coincides with that of averaged SGD with a constant step size: a cooldown thus recovers, for the last iterate, the rate of averaging (which is unimprovable), up to a constant (§ 5.1). Finally, we extend the analysis to a batch size bb and show that the optimal risk depends on bb and TT only through bTbT, up to a critical batch size that we can characterize.

Setup. Let xx and yy be random variables taking values in Rd\mathbb{R}^d and R\mathbb{R}, respectively. We consider the least-squares problem:

min⁡θ∈Rdf(θ),f(θ):=12E[(x⊤θ−y)2],(1)\min_{\theta\in\mathbb{R}^d} f(\theta),\qquad f(\theta) := \frac{1}{2}\mathbb{E}\left[(x^\top\theta-y)^2\right], \tag*{(1)}

where the expectation is over the joint distribution of (x,y)(x,y) on Rd×R\mathbb{R}^d \times\mathbb{R}.

Let θ∗\theta_* be a solution to Eq. (1), and f∗:=f(θ∗)f_* := f(\theta_*). We denote ε:=y−x⊤θ∗\varepsilon:= y - x^\top\theta_* the label noise, and D\mathcal{D} the joint distribution of (x,ε)(x,\varepsilon).

Assume H:=E[xx⊤]H := \mathbb{E}[xx^\top] exists and E[y2]<∞\mathbb{E}[y^2] < \infty. Then ff is differentiable with ∇f(θ)=H(θ−θ∗)−E[εx]\nabla f(\theta) = H(\theta-\theta_*) - \mathbb{E}[\varepsilon x] (see Appendix § 17.§ 1 for the proof). Since θ∗\theta_* is a minimizer of ff over Rd\mathbb{R}^d, ∇f(θ∗)=0\nabla f(\theta_*) = 0, so E[εx]=0\mathbb{E}[\varepsilon x] = 0, and

∇f(θ)=H(θ−θ∗).(2)\nabla f(\theta) = H(\theta-\theta_*). \tag*{(2)}

HH is a symmetric positive semi-definite matrix, so it admits an orthogonal eigendecomposition H=QΛQ⊤H = Q\Lambda Q^\top. Here, Q∈Rd×dQ \in\mathbb{R}^{d\times d} is an orthogonal matrix and Λ\Lambda is a diagonal matrix containing the eigenvalues λ=(λ1,…,λd)∈Rd\lambda= (\lambda_1,\ldots,\lambda_d) \in\mathbb{R}^d such that λ1≥λ2≥⋯≥λd≥0\lambda_1 \ge\lambda_2 \ge\cdots\ge\lambda_d \ge0. For any i∈{1,…,d}i \in\{1,\ldots,d\}, we denote the ii-th eigenvector by qi=Qeiq_i = Qe_i, where eie_i is the ii-th vector of the canonical basis of Rd\mathbb{R}^d.

Stochastic gradient descent (SGD). Let θ0∈Rd\theta_0 \in\mathbb{R}^d. We study SGD with a learning-rate schedule, where the update rule is given by:

θt+1=θt−γηtgt,E[gt∣Ft]=∇f(θt),(3)\theta_{t+1} = \theta_t - \gamma\eta_t g_t,\qquad\mathbb{E}[g_t \mid\mathcal{F}_t] = \nabla f(\theta_t), \tag*{(3)}

denoting by (Ft)t≥0(\mathcal{F}_t)_{t\ge0} the filtration generated by (θ0,θ1,…,θt)(\theta_0,\theta_1,\ldots,\theta_t), so that Ft\mathcal{F}_t contains the information available up to time tt. In least-mean-squares, the unbiased gradient gtg_t is obtained as follows.

We draw i.i.d. (xt,εt)t≥0(x_t,\varepsilon_t)_{t\ge0} from D\mathcal{D}. Then yt:=xt⊤θ∗+εt=dyy_t := x_t^\top\theta_* + \varepsilon_t \overset{d}{=} y. Set gt=xt(xt⊤θt−yt)g_t = x_t(x_t^\top\theta_t-y_t). Here, E[gt∣Ft]=H(θt−θ∗)=∇f(θt)\mathbb{E}[g_t \mid\mathcal{F}_t] = H(\theta_t-\theta_*) = \nabla f(\theta_t) by Eq. (2). Hence gtg_t is an unbiased estimator of the gradient ∇f(θt)\nabla f(\theta_t), and SGD with a starting point θ0\theta_0 is given by θt+1=θt−γηtxt(xt⊤θt−yt)=(I−γηtxtxt⊤)θt+γηtxtyt\theta_{t+1} = \theta_t - \gamma\eta_t x_t(x_t^\top\theta_t-y_t) = (I-\gamma\eta_t x_tx_t^\top)\theta_t + \gamma\eta_t x_ty_t, which gives:

θt+1−θ∗=(I−γηtxtxt⊤)(θt−θ∗)+γηtεtxt.(4)\theta_{t+1}-\theta_* = (I-\gamma\eta_t x_tx_t^\top)(\theta_t-\theta_*)+\gamma\eta_t\varepsilon_tx_t. \tag*{(4)}

Learning-rate schedule. In our analysis, for a fixed horizon TT, we define a learning-rate schedule by two components: a base learning-rate γ∈R>0\gamma\in\mathbb{R}_{>0} scaling the overall step size, and a schedule sequence (ηt)t=0T−1∈R≥0T(\eta_t)_{t=0}^{T-1} \in\mathbb{R}_{\ge0}^T dictating the update rule over TT steps. The effective step size is then γηt\gamma\eta_t. We focus on the family of schedules known as Warmup-Stable-Decay (WSD), without warmup, defined as follows.

Let c∈(0,1]c \in(0,1]. We consider the WSD schedule (without warmup):

ηj=min⁡{1,T−jcT}={1if j≤(1−c)T,T−jcTif j>(1−c)T.\eta_j = \min\left\{1,\frac{T-j}{cT}\right\} = \begin{cases} 1 & \text{if } j \le(1-c)T,\\ \frac{T-j}{cT} & \text{if } j > (1-c)T. \end{cases}

Here, cc represents the relative cooldown length, following Zhai et al. [20]. With this definition, the schedule begins its linear decay at step ⌊(1−c)T⌋+1\lfloor(1-c)T\rfloor+ 1. Note the following boundary behaviors:

  • When c=1c = 1, the model recovers the pure linear decay schedule: ηj=T−jT\eta_j = \frac{T-j}{T}.

  • As c→0c \to0, the schedule approaches a constant rate: ηj=1\eta_j = 1. To ensure the decay update remains well-defined, the strict constant schedule (c=0c = 0) is excluded from the WSD family and treated independently.

Notations. We denote the trace of a matrix or a linear operator by Tr⁡(⋅)\operatorname{Tr}(\cdot). For a vector u∈Rdu \in\mathbb{R}^d (or a sequence (ui)i∈N∈RN(u_i)_{i\in\mathbb{N}} \in\mathbb{R}^{\mathbb{N}} in the infinite-dimensional setting) Diag⁡(u)\operatorname{Diag}(u) represents the diagonal matrix (resp. operator) whose main diagonal is given by uu. The norm ∥⋅∥\lVert\cdot\rVert will represent the Euclidean norm. Throughout the paper, II will denote the identity operator.

We define the Γ\Gamma (Gamma) function for any real number x>0x > 0 as Γ(x):=∫0∞tx−1e−t dt\Gamma(x) := \int_0^\infty t^{x-1}e^{-t}\,\mathrm{d}t and the ζ\zeta (zeta) function for s>1s > 1 as ζ(s):=∑n=1∞n−s\zeta(s) := \sum_{n=1}^\infty n^{-s}.

Throughout, a tilde marks a quantity attached to the asymptotic risk R~T\widetilde{\mathcal{R}}_T where T→∞T \to\infty rather than the exact one RT\mathcal{R}_T.

Slock's Model

To study least-squares problems, a common framework is to suppose Gaussian inputs x∼N(0,H)x \sim\mathcal{N}(0,H), in addition to σ2=Var⁡(ε)\sigma^2 = \operatorname{Var}(\varepsilon) (see Lin et al., [15], Assumption 1). However, the computation of the recurrence relation in Eq. (4) involves the fourth-order moment E[xtxt⊤θtθt⊤xtxt⊤]\mathbb{E}[x_t x_t^\top\theta_t \theta_t^\top x_t x_t^\top]. Under the standard Gaussian framework, this term couples the dynamics across all dimensions, making an exact coordinate-wise analysis intractable. We therefore seek an alternative distribution for xx that decouples these dimensions. One such approach relies on a discrete model (Slock, [18]).

References

  1. [1]Bach, Francis (2026). “On the Effectiveness of the z-Transform Method in Quadratic Optimization”. In: Journal of Machine Learning Research 27.180, pp. 1–43.arxiv.org/abs/2507.03404
  2. [2]Bach, Francis and Eric Moulines (2011). “Non-Asymptotic Analysis of Stochastic Approximation Algorithms for Machine Learning”. In: Advances in Neural Information Processing Systems.
  3. [3]Bordelon, Blake and Francesco Mori (2026). Theory of Optimal Learning Rate Schedules and Scaling Laws for a Random Feature Model. arXiv: 2602.04774.arxiv.org/abs/2602.04774
  4. [4]Caponnetto, Andrea and Ernesto De Vito (2007). “Optimal rates for the regularized least-squares algorithm”. In: Foundations of Computational Mathematics 7.3, pp. 331–368.DOI
  5. [5]Defazio, Aaron, Ashok Cutkosky, Harsh Mehta, and Konstantin Mishchenko (2023). Optimal Linear Decay Learning Rate Schedules and Further Refinements. arXiv: 2310.07831.arxiv.org/abs/2310.07831
  6. [7]Dieuleveut, Aymeric and Francis Bach (2016). “Nonparametric Stochastic Approximation with Large Step-Sizes”. In: The Annals of Statistics 44.4, pp. 1363–1399.DOI
  7. [9]Hägele, Alexander, Elie Bakouch, Atli Kosson, Loubna Ben Allal, Leandro Von Werra, and Martin Jaggi (2024). “Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations”. In: Advances in Neural Information Processing Systems.arxiv.org/abs/2405.18392
  8. [12]Kunstner, Frederik and Francis Bach (2025). “Scaling Laws for Gradient Descent and Sign Descent for Linear Bigram Models under Zipf’s Law”. In: Advances in Neural Information Processing Systems.arxiv.org/abs/2505.19227
  9. [15]Lin, Licong, Jingfeng Wu, Sham M. Kakade, Peter L. Bartlett, and Jason D. Lee (2024). “Scaling Laws in Linear Regression: Compute, Parameters, and Data”. In: Advances in Neural Information Processing Systems.arxiv.org/abs/2406.08466
  10. [16]Meterez, Alexandru, Pranav Ajit Nair, Depen Morwani, Cengiz Pehlevan, and Sham Kakade (2026). Anytime Pretraining: Horizon-Free Learning-Rate Schedules with Weight Averaging. arXiv: 2602.03702.arxiv.org/abs/2602.03702
  11. [17]Schaipp, Fabian, Alexander Hägele, Adrien Taylor, Umut Şimşekli, and Francis Bach (2025). “The Surprising Agreement Between Convex Optimization Theory and Learning-Rate Scheduling for Large Model Training”. In: International Conference on Machine Learning.arxiv.org/abs/2501.18965
  12. [18]Slock, Dirk T.M. (1993). “On the Convergence Behavior of the LMS and the Normalized LMS Algorithms”. In: IEEE Transactions on Signal Processing 41.9, pp. 2811–2825.DOI
  13. [19]Varre, Aditya, Loucas Pillaud-Vivien, and Nicolas Flammarion (2021). “Last iterate convergence of SGD for Least-Squares in the Interpolation regime”. In: Advances in Neural Information Processing Systems.arxiv.org/abs/2102.03183
  14. [20]Zhai, Xiaohua, Alexander Kolesnikov, Neil Houlsby, and Lucas Beyer (2022). “Scaling Vision Transformers”. In: Conference on Computer Vision and Pattern Recognition.arxiv.org/abs/2106.04560

Paper details

vlnc:W_n3as8cav
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents