arXiv:2610.42048math.OCOct 2026

Manuscript Offprint

arXiv:2610.42048

Exact Theory and Optimal Stepsizes for Stochastic Gradient Descent in Smooth Convex Minimization

Benjamin Grimmer, Qining Shen

Abstract

This work considers the design of stepsize schedules for stochastic gradient descent in smooth convex optimization. Throughout, we assume that gradient noise is conditionally zero-mean with bounded variance. Among problems with dimension d≥N+1d \geq N+1, we provide an exact worst-case analysis of the expected suboptimality of stochastic gradient descent's final iterate. Our analysis applies to any (potentially nonconstant) schedule of NN stepsizes in [0,1.5]N[0, 1.5]^N. Here, exact means that we provide a matching objective function and noise distributions where our guarantee is attained. Whenever the variance bound is at least Ω(1/N)\Omega(1/\sqrt{N}), our theory provides the minimax optimal stepsize schedule for stochastic gradient descent and proves its uniqueness. These optimal stepsizes monotonically decrease, ruling out any accelerations in expected final suboptimality from fixed fractal schedules observed in the deterministic case.

1 Introduction

We consider stochastic smooth convex minimization problems of the form

f⋆=min⁡x∈Rdf(x)(1.1)f_{\star}=\min_{x\in\mathbb{R}^d} f(x) \tag{1.1}

in dimension dd. Throughout, we assume the objective is LL-smooth (i.e., has an LL-Lipschitz gradient), that this minimum value is attained at some x⋆x_\star, and that an initialization x0x_0 is provided with bounded distance ∥x0−x⋆∥≤D\|x_0 - x_\star\| \leq D.

For any such problem instance, we study Stochastic Gradient Descent (SGD) with a fixed iteration budget of NN steps. At each iteration n=1,…,Nn=1,\ldots,N, the algorithm is provided a stochastic estimate of the objective's gradient, denoted

g~n−1=∇f(xn−1)+ϵn−1\widetilde{g}_{n-1}=\nabla f(x_{n-1})+\epsilon_{n-1}

with ϵn−1\epsilon_{n-1} sampled from a conditional distribution Pn−1(⋅∣Fn−1)P_{n-1}(\cdot \mid \mathcal{F}_{n-1}), conditioned on the history Fk=σ(ϵ0,…,ϵk−1)\mathcal{F}_k=\sigma(\epsilon_0,\ldots,\epsilon_{k-1}). We assume this noise is conditionally zero-mean and has variance at most σ2\sigma^2, conditioned on the history. That is, almost surely,

E[ϵn−1∣Fn−1]=0andE[∥ϵn−1∥2∣Fn−1]≤σ2.\mathbb{E}[\epsilon_{n-1} \mid \mathcal{F}_{n-1}]=0\quad \text{and} \quad \mathbb{E}[\|\epsilon_{n-1}\|^2 \mid \mathcal{F}_{n-1}]\leq \sigma^2.

SGD then uses this stochastic oracle and a fixed sequence of NN stepsizes h0,…,hN−1∈Rh_0,\ldots,h_{N-1}\in \mathbb{R} to iterate for n=1,…,Nn=1,\ldots,N with

xn=xn−1−hn−1Lg~n−1.(1.2)x_n=x_{n-1}-\frac{h_{n-1}}{L}\widetilde{g}_{n-1}. \tag{1.2}

*Johns Hopkins University, Department of Applied Mathematics and Statistics, grimmer@jhu.edu

†Johns Hopkins University, Department of Applied Mathematics and Statistics, qshen18@jh.edu

Afterwards, the algorithm outputs its final iterate xNx_N. Note that many variations of this method have been proposed, including various momentum, averaging, and extrapolation dynamics. Here we study the core method in this simplest, fundamental form.

A problem instance in dimension dd is defined by the initialization x0∈Rdx_0 \in \mathbb{R}^d, objective function f:Rd→Rf: \mathbb{R}^d \to \mathbb{R} with minimizer x⋆∈Rdx_\star \in \mathbb{R}^d, and sequence of distributions from which noise is drawn, P0,…,PN−1P_0, \ldots, P_{N-1}. We denote these collectively by some

p=(x0,f,P0,…,PN−1).\mathbf{p}=(x_0,f,P_0,\ldots,P_{N-1}).

We denote the set of all problem instances by P(L,D,σ2)\mathbf{P}(L,D,\sigma^2), constrained by LL-smoothness, DD initial distance, and conditional σ2\sigma^2 variance.

An NN-step stochastic gradient descent method is defined once one specifies its vector of stepsizes h∈RNh \in \mathbb{R}^N. For a fixed vector of stepsizes, we measure the performance of SGD by the expected final objective gap, Eϵ[f(xN)]−f⋆\mathbb{E}_\epsilon [f(x_N)] - f_\star. Notice the only source of randomness considered is the noise at each iteration, so this expectation is only over all ϵi\epsilon_i.

Our main goal is to characterize the exact worst-case last-iterate performance of SGD, for fixed vectors of stepsizes h∈RNh \in \mathbb{R}^N, over this problem class, for fixed L,D,σ2L,D,\sigma^2. This is known as the algorithm's "Performance Estimation Problem" (PEP). Formally, we denote this by

PEP(h,L,D,σ2)=max⁡p∈P(L,D,σ2){Eϵ[f(xN)]−f⋆}.(1.3)\mathrm{PEP}(h,L,D,\sigma^{2})=\max_{\mathbf{p}\in\mathrm{P}(L,D,\sigma^{2})}\left\{\mathbb{E}_{\epsilon}\left[f(x_{N})\right]-f_{\star}\right\}. \tag{1.3}

Here we consider a fixed iteration budget NN and problem dimension dd, which are suppressed in the above notation.

PEPs were first proposed and exactly analyzed by the works [9,21,22] in the context of deterministic optimization. For sufficiently structured deterministic problem classes (e.g., LL-smooth convex minimization), provided dd is large enough, the related PEP can often be described as a semidefinite program (SDP). From this, computer-assisted design techniques can then be applied.

The discovery of our results critically relied on such numerical and analytic insights to develop intuitions and formulate conjectures. In particular, the stochastic PEP approach of [18] applies to the considered setting and informed our preliminary study of SGD. We present the resulting arguments directly, so our main results can be read without familiarity with PEP formulations.

Our Contributions. Our main result exactly solves the above PEP for SGD with any schedule of stepsizes h∈RNh \in \mathbb{R}^N in the short step regime [0,1.5]N[0,1.5]^N, provided d≥N+1d \geq N+1. In short, we find that

PEP(h,L,D,σ2)=LD22(1+2R0)+σ22L∑j=0N−1hj21+2Rj+1(1.4)\mathrm{PEP}(h,L,D,\sigma^{2})=\frac{LD^{2}}{2\left(1+2R_{0}\right)}+\frac{\sigma^{2}}{2L}\sum_{j=0}^{N-1}\frac{h_{j}^{2}}{1+2R_{j+1}} \tag{1.4}

where Rn=∑i=nN−1hiR_n = \sum_{i=n}^{N-1} h_i denotes the total remaining stepsize length at iteration nn with RN=0R_N = 0. Specializing to σ=0\sigma = 0, the first term above provides the exact worst-case of deterministic gradient descent in the short step regime—matching the numerically supported conjecture of [6, Section 4.4.1]. For example, (1.4) recovers the deterministic constant stepsize h∈[0,1]h \in [0,1] analysis of [9]. The second term above then captures the effect of the noise at each iteration jj on the final iterate.

In particular, our convergence upper bound applies for problems in any dimension, only requiring the short step assumption, and our convergence lower bound applies for any nonnegative stepsizes, only requiring the large dimension assumption. When both hold, the two bounds agree, providing the above exact worst-case characterization. The following theorem formalizes this.

Theorem 1.1. For any iteration budget N≥1N \geq 1, stepsizes h∈[0,1.5]Nh \in [0,1.5]^N, and problem parameters L,D>0,σ2≥0L,D>0,\sigma^2\geq 0, the SGD method (1.2) applied to any problem instance (x0,f,P0,…,PN−1)∈P(L,D,σ2)(x_0,f,P_0,\ldots,P_{N-1})\in\mathrm{P}(L,D,\sigma^2) has

Eϵ[f(xN)]−f⋆≤LD22(1+2R0)+σ22L∑j=0N−1hj21+2Rj+1.\mathbb{E}_{\epsilon}\left[f(x_{N})\right]-f_{\star}\leq\frac{L D^{2}}{2\left(1+2R_{0}\right)}+\frac{\sigma^{2}}{2L}\sum_{j=0}^{N-1}\frac{h_{j}^{2}}{1+2R_{j+1}}.

Moreover, for any stepsizes h∈R+Nh \in \mathbb{R}_+^N, if d≥N+1d \geq N + 1, there exists a problem instance with

Eϵ[f(xN)]−f⋆=LD22(1+2R0)+σ22L∑j=0N−1hj21+2Rj+1.\mathbb{E}_{\epsilon}\left[f(x_{N})\right]-f_{\star}=\frac{L D^{2}}{2\left(1+2R_{0}\right)}+\frac{\sigma^{2}}{2L}\sum_{j=0}^{N-1}\frac{h_{j}^{2}}{1+2R_{j+1}}.

Note that the high-dimensionality assumption d≥N+1d \geq N + 1 is standard in the dimension-independent analysis of first-order methods [17]. As mentioned above, this assumption is also common within the PEP literature.

Section 2 proves the claimed upper bound on final expected suboptimality via a short inductive argument. There we provide an interpretation of this tight proof as iteratively building expected suboptimality guarantees on a sequence of Moreau envelopes. Section 3 proves the matching lower bound in our main theorem by constructing an attaining worst-case objective and collection of distributions. In fact, there we show a stronger result: every realization of the noise vectors ϵ0,…,ϵN−1\epsilon_0, \ldots, \epsilon_{N-1} on our constructed worst-case problem instance attains the above equality.

References (21)