Manuscript Offprint
arXiv:2610.42048Exact Theory and Optimal Stepsizes for Stochastic Gradient Descent in Smooth Convex Minimization
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 , 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 stepsizes in . 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 , 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
in dimension . Throughout, we assume the objective is -smooth (i.e., has an -Lipschitz gradient), that this minimum value is attained at some , and that an initialization is provided with bounded distance .
For any such problem instance, we study Stochastic Gradient Descent (SGD) with a fixed iteration budget of steps. At each iteration , the algorithm is provided a stochastic estimate of the objective's gradient, denoted
with sampled from a conditional distribution , conditioned on the history . We assume this noise is conditionally zero-mean and has variance at most , conditioned on the history. That is, almost surely,
SGD then uses this stochastic oracle and a fixed sequence of stepsizes to iterate for with
*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 . 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 is defined by the initialization , objective function with minimizer , and sequence of distributions from which noise is drawn, . We denote these collectively by some
We denote the set of all problem instances by , constrained by -smoothness, initial distance, and conditional variance.
An -step stochastic gradient descent method is defined once one specifies its vector of stepsizes . For a fixed vector of stepsizes, we measure the performance of SGD by the expected final objective gap, . Notice the only source of randomness considered is the noise at each iteration, so this expectation is only over all .
Our main goal is to characterize the exact worst-case last-iterate performance of SGD, for fixed vectors of stepsizes , over this problem class, for fixed . This is known as the algorithm's "Performance Estimation Problem" (PEP). Formally, we denote this by
Here we consider a fixed iteration budget and problem dimension , 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., -smooth convex minimization), provided 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 in the short step regime , provided . In short, we find that
where denotes the total remaining stepsize length at iteration with . Specializing to , 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 analysis of [9]. The second term above then captures the effect of the noise at each iteration 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 , stepsizes , and problem parameters , the SGD method (1.2) applied to any problem instance has
Moreover, for any stepsizes , if , there exists a problem instance with
Note that the high-dimensionality assumption 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 on our constructed worst-case problem instance attains the above equality.
where we continue to suppress the dependence on the fixed values . The above value denotes the best-possible final guarantee any fixed schedule can provide. Stepsize schedules that attain the above minimum are called minimax optimal.
The nonnegative restriction of our main theorem's lower bounding statement is for ease in stating the result. If , Section 3.2 shows that the worst-case performance of any schedule (allowing negative stepsizes) is at least the right-hand-side of (1.4) evaluated at . Hence, one has
This minimization problem can be solved by observing that the stated objective is strictly convex in and possesses a unique stationary point in the interior of . In particular, the minimizing stepsize schedule is given by a system of equations setting the gradient equal to zero,
To solve this system, consider the recurrence for , setting as the unique positive solution to the equation
We claim the following stepsize schedule solves the necessary and sufficient optimality condition (1.7)
Appendix A.1 verifies this zero gradient condition. Plugging these optimized stepsizes in provides a lower bound on the performance of SGD with any stepsize schedule. Namely, for any ,
Often these optimized stepsizes lie in the range where our matching upper bound theory applies. In particular, whenever the variance bound is not too small, , one has that . Appendix A.2 verifies this claimed bound.
Thus, given the preceding sufficient variance condition, the above minimization of our lower bound is attained at a short step schedule where the lower bound is tight. Hence, in this regime, is the minimax optimal schedule. That is, no alternative fixed schedule of stepsizes h can provide a stronger worst-case guarantee. The fact that is the unique solution to (1.7) and is strictly positive establishes it as the unique minimax optimal stepsize schedule.
The following result formally states this corollary.
Corollary 1.2. Provided and , the stepsize schedule in (1.8) is exactly minimax optimal, i.e., solves (1.5), and uniquely so. In particular, SGD with stepsizes has
No other fixed schedule of stepsizes has the same or smaller worst-case final objective gap.
Figure 1 shows the optimal stepsize schedules for and steps with variance bounds , fixing . One can see the optimal stepsizes decay almost linearly. Indeed, one can approximate the optimal schedule, given , by the simpler formula
Plugging these simplified stepsizes into Theorem 1.1 gives a sharp convergence rate of the same order as (1.10). For fixed , as , the resulting guarantee differs from the minimax optimal rate only in the little-o term.
1.2 Related Work
The worst-case performance of stochastic gradient descent methods has been studied widely [12, 15, 16, 19]. Optimal last-iterate guarantees and linearly decaying stepsizes in the related setting of bounded stochastic subgradient methods were previously observed in [8]. That work built upon the exactly optimal, linearly decaying stepsizes for the deterministic subgradient method of [24].
Within the bounded-variance stochastic gradient descent model we consider, the results [15, Theorem 3.4 and Lemma 4.2] provided last-iterate guarantees when with . They showed a convergence guarantee of

Figure 1: The exactly minimax optimal stepsize schedule from (1.8) for varied budgets N and variances , fixing L = D = 1. Asymptotically, this schedule behaves like the affine function (1.11).
Note that this bound is not tight, as applying Theorem 1.1 provides a constant factor improvement in this rate for all such . Provided , their bound above is minimized by setting , where their optimized guarantee equals . In contrast, our minimax optimal convergence guarantee (1.10) improves this leading constant factor from 4 to 1 if the minimax optimal schedule above is used.
In deterministic smooth convex optimization, the series of works [2, 7, 10] identified faster worst-case convergence guarantees from nonmonotone stepsize schedules with long steps, including fractal schedules. Building on the recursive gluing technique of [2], the concurrently developed composition theories of [11,25] provided equivalent constructions of schedules—called the Optimized Basic f-composable Schedules (OBS-F) in [11]—conjectured to be exactly minimax optimal when . Our results here establish optimality and uniqueness for a simpler monotonic schedule when and . Thus, nonmonotone fractal stepsizes offer no improvement in worst-case guarantees once variance bounds are moderate. Complementing this, [23] studied the sensitivity of long-step schedules to relative gradient errors and proposed robust variants.
Exact analyses of stochastic first-order methods have been facilitated by the PEP techniques, first developed by [9,21,22]. For settings of finite sum minimization, where stochasticity arises from sampling indices, these tools can be applied by enumerating possible sampling outcomes. The works of [5,20] provided guarantees for stochastic gradient descent through computer-assisted potential and Lyapunov analyses based on such an approach. A more general approach to stochastic PEP modeling with relaxations based on expected interpolation conditions and noise moments was proposed by [18]. Our results were informed first by numerical and then analytic solutions to their stochastic PEPs. Interpreting our upper-bound certificate and worst-case construction as matching dual and primal PEP solutions, respectively, establishes tightness of the associated PEP relaxation, whenever and .
Recent works [3,4] have addressed the setting of SGD for stochastic smooth strongly convex minimization. Given an unbiased oracle with bounded variance and independent sampling, the work [4] characterized the expected squared distance to the minimizer after two steps of a proposed schedule generalizing the silver steps of [1], finding improvement in the low noise regime.
Finally, we note that further improved guarantees are possible if one allows more general stochastic first-order methods. That is, one may allow averaging, extrapolation, and momentum dynamics beyond just designing algorithms via the selection of stepsizes. We refer readers to [14], where such methods are designed, recovering classic accelerated rates as tends to zero.
2 Proof of Upper Bound for any
We prove the claimed upper bound on final expected suboptimality by showing that SGD maintains the nonnegativity of a certain inductive hypothesis at each iteration. As a shorthand, denote the first-order values and for any . Since the point is a minimizer, .
For notational ease, we define the following quantities based on any given schedule of stepsizes
for . Throughout our upper bounding proof, we assume but make no assumption on the dimension of the given problem instance. As an edge case, we set when and . Empty sums and products are zero and one, respectively.
The -smoothness and convexity of ensure that for any pair of indices the following is nonnegative
This corresponds to the smooth convex interpolation condition [22, Theorem 4] between points and . Taking an expectation over realizations of the noise vectors , the expected value of this quantity is also guaranteed to be nonnegative. We denote this quantity by
Our convergence proof will make use of these inequalities with associated weights of
While SGD runs, we define our inductive hypothesis in terms of the auxiliary vector
Equivalently, this auxiliary sequence can be recursively defined by with . For each , we define our inductive hypothesis by the quantity
(2.2)
The main work in our proof (Lemma 2.2) will establish nonnegativity of each successive by writing it as a nonnegative combination of and quantities assumed to be nonnegative.
Observing that the second line of (2.2) subtracts a squared term, the inequality implies an upper bound on a nonnegative weighted sum of objective gap-like terms . Namely, one can directly read this induction as ensuring
Section 2.1 provides a more insightful interpretation of the hypothesis . There we show that it provides a bound on suboptimality for an associated Moreau envelope at each iteration.
At , the claimed sharp upper bound for SGD follows from this hypothesis and the identity
(2.3)
Since each term of the right-hand-side is nonnegative, so is the left-hand-side, providing the claimed rate. All that remains is to prove that SGD in fact maintains the inductive hypothesis . This is done in the following pair of lemmas showing the base case and inductive step.
Lemma 2.1. The initial hypothesis satisfies
Proof. Equation (2.1) gives . Both sums in (2.2) are empty at , giving the stated formula. Nonnegativity follows from the assumed .
Lemma 2.2. For every , the following identity holds
Since every added term above is nonnegative when , implies .
Proof. The definition of and the SGD update give
Noting that the descent lemma ensures a deterministic gradient descent step would find an objective value at most , these terms are each nonnegative, expressing bounds on the objective gap one deterministic step ahead.
The first two terms are measurable before is drawn. Conditional zero mean therefore gives
(2.6)
Since , expanding the interpolation terms using (2.1) yields, for every ,
(2.7)
When subtracting (2.2) at successive indices, every old weight acquires a factor . Using (2.6) and (2.7) with k = n - 1, the claimed increment thus reduces to the single quadratic identity
(2.8)
Expanding the two sides above proves this identity, using that and . This proves the inductive identity (2.4).
Finally, note that and . These range bounds ensure the nonnegativity of . All the other added terms are nonnegative by assumption, altogether establishing that the nonnegativity of is inductively maintained.
2.1 Moreau Envelope Interpretation of Inductive Hypothesis
As a final remark on this convergence proof, we note that one can interpret the inductive hypothesis in terms of Moreau envelopes. Namely, for any , denote the associated Moreau envelope by
with the convention .
Suppose and consider the values , setting . Note that the weights in (2.1) for are nonnegative and sum to one. Applying the smooth convex interpolation condition between an arbitrary point and each of , taking the corresponding weighted sum, and completing the square gives
Dropping the final nonpositive term provides a quadratic upper bound on . Taking the Moreau envelope of this upper bound with parameter therefore gives
This inequality also holds when by the stated convention.
With these values, the assumed nonnegativity of ensures that
Hence the inductive hypothesis maintains an upper bound on the expected suboptimality of the associated Moreau envelope at the current iterate.
Notice that as grows, the parameter decreases to zero, making the Moreau envelope approach the original objective . At iteration , one has , making these actually equal. As a result, this induction ultimately gives the claimed upper bound for SGD as
3 Proof of Lower Bound for any
We construct our adversarial problem instance in dimension as follows: Denote the L-smooth Huber function parameterized by a scalar by
Note the degenerate case of has . Let denote a collection of orthogonal unit vectors (which exist by the assumption that ). Define our constructed problem instance's initialization . Define our noise distributions at each iteration by the mutually independent Rademacher distributions
Define our objective function by
with and for . The following lemma verifies this construction is indeed feasible for any choice of the parameters .
Lemma 3.1. The problem instance p defined by , f as in (3.2), and distributions as in (3.1) is feasible, i.e., .
Proof. First, observe that the function is minimized at the origin , having . Then, one can verify the needed initial condition as . The needed conditions for each noise distribution of zero-mean and -bounded variance follow directly from its definition.
All that remains is to verify that is convex and -smooth. A simple calculation can verify that the Huber function is convex and -smooth for any . Since is a sum of these Huber functions, it inherits their convexity. Moreover, applying the chain rule, the gradient of is given by
Then L-smoothness of f follows from L-smoothness of each Huber function as
□
3.1 Proof of Lower Bound Half of Theorem 1.1
We show that, for any realization of SGD applied to our constructed problem instance, the final objective gap equals the claimed bound. Taking expectations then proves the result.
Consider any sequence of signs for , providing a realization of errors from of . The key observation here is that the objective is separable over the coordinate directions . So the progression of gradient descent in direction only depends on (and no other directions). Thus we can analyze each direction separately.
First consider the direction . Each error is orthogonal to this direction, so SGD amounts to applying gradient descent deterministically to minimize . This is a standard example in the worst-case analysis of deterministic gradient descent [9,11,22]. We claim inductively that every iteration has . At , this is immediate as . Inductively, this follows at some as all prior iterations have derivative in direction of . So
by noting from our choices of and .
In particular, the above calculation shows . Hence, the final objective value on this first Huber function component is
The same calculations can be repeated on each component . There, iterations have no effect on the th component as . Then iteration will set . Thereafter, each iteration will perform deterministic gradient descent in this coordinate direction. Just as calculated above, gradient descent will always remain on the same (positive or negative) facet of the Huber function , in particular having . Continuing with the same calculation, this ensures the final iterate has
regardless of the sampled sign . Summing over each coordinate shows the claimed lower bound is attained for every realization of the signs.
3.2 Extension to Allow Negative Stepsizes in Lower Bound
Finally, for any signed schedule , consider the modified nonnegative schedule and run both schedules with the same noise realization. Each nonconstant Huber component has the same initial or noise displacement. Thereafter, negative steps move away from zero, while positive steps translate both trajectories equally. Inductively, the iterates under remain on the same facet and at least as far from zero as under . Noise at negative steps affects only components with . Thus, is at least the right-hand-side of (1.4) evaluated at .
Acknowledgments. This work was supported in part by the Air Force Office of Scientific Research under grant FA9550261B093. Benjamin Grimmer was additionally supported as a fellow of the Alfred P. Sloan Foundation.
References
[1] J. M. Altschuler and P. A. Parrilo. Acceleration by stepsize hedging: multi-step descent and the Silver Stepsize Schedule. J. ACM, 72(2):12:1–12:38, 2025.
[2] J. M. Altschuler and P. A. Parrilo. Acceleration by stepsize hedging: Silver Stepsize Schedule for smooth convex optimization. Math. Program., 213(1–2):1105–1118, 2025.
[3] L. Bai, Y. Zeng, and B. Zhou. Generalization of Silver Stepsize Schedule to stochastic optimization. arXiv:2511.21917, 2025.
[4] L. Bai and B. Zhou. Optimal two-step stepsize schedule for stochastic gradient methods. arXiv:2608.15035, 2026.
[5] D. Cortild, L. Ketels, J. Peypouquet, and G. Garrigos. Bias-optimal bounds for SGD: A computer-aided Lyapunov analysis. arXiv:2505.17965, 2026. Version 2.
[6] A. Daccache. Performance estimation of the gradient method with fixed arbitrary step sizes. Master’s thesis, Université Catholique de Louvain, 2019.
[7] S. Das Gupta, B. P. G. Van Parys, and E. K. Ryu. Branch-and-bound performance estimation programming: a unified methodology for constructing optimal optimization methods. Math. Program., 204:567–639, 2024.
[8] A. Defazio, A. Cutkosky, H. Mehta, and K. Mishchenko. Optimal linear decay learning rate schedules and further refinements. arXiv:2310.07831, 2024. Version 2.
[9] Y. Drori and M. Teboulle. Performance of first-order methods for smooth convex minimization: a novel approach. Math. Program., 145(1–2):451–482, 2014.
[10] B. Grimmer. Provably faster gradient descent via long steps. SIAM J. Optim., 34(3):2588–2608, 2024.
[11] B. Grimmer, K. Shu, and A. L. Wang. Composing optimized stepsize schedules for gradient descent. Math. Oper. Res., 2025.
[12] P. Jain, D. Nagaraj, and P. Netrapalli. Making the last iterate of SGD information theoretically optimal. In Proceedings of the Thirty-Second Conference on Learning Theory, volume 99 of Proceedings of Machine Learning Research, pages 1752–1755, 2019.
[13] H. Kim, E. K. Ryu, and S. Das Gupta. A domain-specific harness for end-to-end automation of optimization research. arXiv:2608.07407, 2026.
[14] G. Lan. An optimal method for stochastic composite optimization. Math. Program., 133(1-2):365–397, 2012.
[15] Z. Liu and Z. Zhou. Revisiting the last-iterate convergence of stochastic gradient methods. arXiv:2312.08531, 2026. Version 4. Preliminary version appeared at ICLR 2024.
[16] E. Moulines and F. Bach. Non-asymptotic analysis of stochastic approximation algorithms for machine learning. In Advances in Neural Information Processing Systems, volume 24, 2011.
[17] A. Nemirovsky and D. Yudin. Problem Complexity and Method Efficiency in Optimization. Wiley-Interscience Series in Discrete Mathematics. Wiley, Chichester and New York, 1983.
[18] A. Rubbens, S. Colla, and J. M. Hendrickx. Computer-aided analyses of stochastic first-order methods, via interpolation conditions for stochastic optimization. arXiv:2507.05466, 2026.
[19] O. Shamir and T. Zhang. Stochastic gradient descent for non-smooth optimization: Convergence results and optimal averaging schemes. In Proceedings of the 30th International Conference on Machine Learning, volume 28 of Proceedings of Machine Learning Research, pages 71–79, 2013.
[20] A. Taylor and F. Bach. Stochastic first-order methods: non-asymptotic and computer-aided analyses via potential functions. In Proceedings of the Thirty-Second Conference on Learning Theory, volume 99 of Proceedings of Machine Learning Research, pages 2934–2992, 2019.
[21] A. B. Taylor, J. M. Hendrickx, and F. Glineur. Exact worst-case performance of first-order methods for composite convex optimization. SIAM J. Optim., 27(3):1283–1313, 2017.
[22] A. B. Taylor, J. M. Hendrickx, and F. Glineur. Smooth strongly convex interpolation and exact worst-case performance of first-order methods. Math. Program., 161(1-2):307–345, 2017.
[23] P. Vernimmen and F. Glineur. Empirical and computer-aided robustness analysis of long-step and accelerated methods in smooth convex optimization. In Modelling, Computation and Optimization in Information Systems and Management Sciences, volume 1688 of Lecture Notes in Networks and Systems, pages 354–366, Cham, 2026. Springer.
[24] M. Zamani and F. Glineur. Exact convergence rate of the last iterate in subgradient methods. SIAM J. Optim., 35(3):2182–2201, 2025.
[25] Z. Zhang and R. Jiang. Accelerated gradient descent by concatenation of stepsize schedules. SIAM J. Optim., 36(2):1182–1210, 2026.
A Optimal Stepsize Schedule Verifications
A.1 Uniqueness and Optimality of Stepsize Schedule (1.8)
We verify that the stepsizes in (1.8) uniquely minimize the lower bound (1.6) and attain (1.9).
First, observe that the objective differentiated in (1.7) is convex: its first term is the reciprocal of a positive affine function, and each remaining term is a quadratic-over-linear function with positive denominator. In fact, the sum of the remaining terms is strictly convex. Equality in its convexity inequality forces the final stepsizes to agree, since its last summand is . Working backwards, the denominator of each preceding summand is then fixed, forcing the corresponding stepsizes to agree as well. Thus any stationary point is the unique minimizer.
By the recurrence , the expression is continuous and strictly increasing in , starting at zero and tending to infinity. Hence the prescribed choice of exists and is unique, and all of the stepsizes in (1.8) are positive.
For the proposed schedule , summing (1.8) gives
Consequently, at , one has , and the defining equation for gives . Differentiating the lower bound in each coordinate and evaluating at therefore gives
where the last equality follows by summing . This verifies (1.7) and establishes the claimed unique minimizer.
To compute its value, the same recurrence and give
Hence, using the defining equation for once more, we arrive at the claimed rate as
A.2 Short Optimal Stepsizes Under Sufficient Variance Bound Condition
We now verify that whenever . First, observe that these stepsizes are decreasing. Indeed, for ,
Thus it suffices to bound .
Since , the defining equation for gives
Applying this bound to the first stepsize, we find
where the last inequality is precisely the assumed lower bound on . Since every subsequent stepsize in the optimized schedule is positive and no larger than , this proves the claimed range.
When , Theorem 1.1 then ensures that attains the lower bound in (1.9). Every alternative schedule has a strictly larger lower bound by the uniqueness proved above. Hence is also the unique minimax optimal schedule.
B Computer and AI Assistance
The authors used numerical optimization and modern AI tools in preparing this manuscript. The presented worst-case instance and best-possible proof certificate were first identified numerically and then analytically by considering PEP solutions based on the framework of [18]. In this first stage, ChatGPT was a useful assistant in verifying algebra and proposing analytic solutions. Once we identified a PEP proof of our main result, the second stage of our work again involved ChatGPT's assistance in producing the (equivalent) inductive proof presented in Section 2. An explicit workflow of using LLMs to assist both in extracting analytic PEP solutions and in deriving associated inductive proofs was recently demonstrated by [13]. All mathematical statements, proofs, references, and final editorial decisions in this manuscript are the responsibility of the authors.