betaFeedback

WorksComputer Science

SGD with Large Learning Rates: General Analysis & Improved Rates

Abstract

Stochastic Gradient Descent lies at the core of modern machine learning. However its classical analysis typically restricts the stepsize to be below a curvature-dependent stability threshold. Recent developments in deterministic optimization have challenged this paradigm, showing that suitably chosen large stepsizes can not only preserve convergence, but also accelerate Gradient Descent (GD). Whether this phenomenon persists in the presence of stochastic gradient noise has remained an open question (Wu et al., 2024). In this work, we answer this question affirmatively for the cross-entropy loss with linear predictors and two-layer neural networks, establishing an accelerated O(T−2)\mathcal{O}(T^{-2}) convergence rate. At the core of our analysis is a fine-grained characterization of the stochastic large-stepsize dynamics. This sharper control of the trajectory further yields tight convergence guarantees within the stable regime, improving existing bounds even in the deterministic setting. Taken together, our results show that the acceleration mechanism induced by large stepsizes survives stochasticity and extends beyond linear models. Numerical experiments demonstrate the benefits of large learning rates in practice.

Introduction

Stochastic Gradient Descent (SGD) and its variants constitute the workhorse of modern machine learning. From classical statistical learning problems to the training of large-scale neural networks, the basic recursion

wt+1=wt−ηgt,E[gt∣wt]=∇f(wt),w_{t+1} = w_t - \eta g_t,\qquad\mathbb{E}[g_t \mid w_t] = \nabla f(w_t),

lies at the core of essentially every first-order stochastic optimization method. Despite this ubiquity, the current theoretical understanding of SGD is built around a remarkably conservative principle: the stepsize must be chosen sufficiently small so that each update is locally stable. Indeed, when ff is LL-smooth and the stochastic gradient has conditional variance bounded by σ2>0\sigma^2 > 0, the standard descent lemma gives

Et[f(wt+1)]≤f(wt)−η(1−Lη2)∥∇f(wt)∥2+Lη22σ2.\mathbb{E}_t[f(w_{t+1})] \leq f(w_t) - \eta\left(1 - \frac{L\eta}{2}\right) \lVert\nabla f(w_t) \rVert^2 + \frac{L\eta^2}{2}\sigma^2.

© 2026 K. Emmanouilidis, Z. Xu, S. Tarmoun, L. MacDonald & R. Vidal.

Thus, the canonical restriction η≲1/L\eta\lesssim1/L emerges naturally: it guarantees that the dissipative contribution of the gradient dominates the curvature introduced by a single update. This simple principle, in one form or another, underlies much of the classical theory of stochastic approximation Nesterov [20].

However, empirical work has shown that neural networks are routinely trained in the so-called Edge of Stability (EoS) regime Cohen et al. [6], where the effective curvature approaches the stability threshold associated with the learning rate. In this regime, the loss does not decrease monotonically, the iterates exhibit persistent oscillations, and the classical descent picture no longer provides an adequate description of the dynamics. Despite that, training does not diverge. Quite the opposite: learning rates larger than those permissible by classical theory are frequently associated with markedly faster optimization than their conservative counterparts Damian et al. [9]; Cohen et al. [6].

These observations have prompted a sequence of theoretical works seeking to explain how optimization can remain effective beyond the classical stability threshold Wu et al. [22]; Cai et al. [5]. In the logistic regression setting, this phenomenon is already visible in its simplest form. For linearly separable data, Wu et al. [24] show that large-stepsize GD may traverse a non-monotone regime before eventually stabilizing, and despite this transient instability results in a provable acceleration of the optimization process. In particular, given a fixed step budget TT, an appropriately chosen large constant stepsize improves the convergence rate from O(log⁡TT)O\left(\frac{\log T}{T}\right) to O(log⁡TT2)O\left(\frac{\log T}{T^2}\right). Importantly, the acceleration is not achieved in spite of the unstable transient phase, but instead it is actually attributed to it.

This raises a natural question for stochastic optimization, since stochasticity changes the underlying dynamics in an essential way. More specifically, in the deterministic setting oscillations can be attributed directly to the interaction between the stepsize and the local curvature. In contrast, in SGD the trajectory is simultaneously affected by curvature-driven instability and gradient noise. Even when the learning rate lies within the classical stability range, individual stochastic updates need not decrease the objective, and even worse when the learning rate becomes large, separating stochastic fluctuations from genuine instability becomes considerably more delicate. As a result, the deterministic large-stepsize analysis does not transfer directly to the stochastic setting.

Recent works have taken a first step toward resolving this issue. Wu et al. [24] provide upper bounds on logistic regression, characterizing the EoS regime. Simultaneously, Emmanouilidis et al. [11] develop a stability framework for SGD with arbitrarily large stepsizes and characterize the dynamics by two qualitatively distinct regimes. Away from stability, the iterates exhibit an EoS phase characterized by non-monotone, curvature-driven behavior, while when the loss becomes sufficiently small, the dynamics are considered in the stable regime. Moreover, despite the persistent minibatch noise, the dynamics can return to the stable region and remain there with high probability. Hence, stochasticity does not preclude stabilization beyond the classical small-stepsize regime.

Stability, however, is only one aspect of the picture. The deterministic results reveal a considerably stronger phenomenon: the excursion beyond the classical stability threshold can lead to accelerated convergence. Whether this acceleration mechanism survives the introduction of stochastic gradients remains unresolved and has been highlighted as a fundamental open question in the recent large-stepsize literature Wu et al. [24]; Emmanouilidis et al. [11]. Standard SGD arguments offer little guidance in this regime because they are based precisely on the one-step descent inequality that large stepsizes invalidate. Conversely, deterministic EoS arguments rely on pathwise relations that are destroyed by the stochastic oracle. Establishing acceleration therefore requires a fundamentally different perspective: one that analyzes the stochastic trajectory globally, rather than attempting to enforce descent at each individual iteration.

The aforementioned discussion leads to the central question of this work:

Can large stepsizes accelerate SGD?

In this paper, we answer this question affirmatively for the cross-entropy loss setting. Our results show that the large-stepsize mechanism responsible for acceleration in deterministic cross-entropy optimization persists in the presence of stochastic gradients. More importantly, we identify the stochastic dynamics that make this possible: an initial large-learning-rate regime drives the process rapidly toward a region in which the same aggressive stepsize becomes stable, after which the trajectory admits substantially sharper convergence guarantees. In this sense, instability is not merely an artifact that SGD must overcome, it constitutes an essential ingredient of the route to acceleration.

Our contributions. Our contributions can be summarized as follows:

  1. A sharp characterization of the large-stepsize dynamics. We provide a fine-grained analysis of SGD for the multi-class cross-entropy loss under arbitrary stepsizes η>0\eta> 0. While previous work (Emmanouilidis et al., [11]) allows for repeated transitions between stable and unstable phases, we show that the dynamics admit a substantially sharper description: once the iterates enter a sufficiently low-loss region, they remain in the stable regime with high probability. The key ingredient is a new supermartingale argument built around a suitably discounted loss threshold, which allows us to control the effect of stochastic fluctuations that could otherwise drive the trajectory out of stability. This gives the tight O(1t)\mathcal{O}\left(\frac{1}{t}\right) convergence rate within the stable regime, matching the classical first-order rate for separable cross-entropy optimization (Nacson et al., [17]).

  1. Acceleration of SGD through large stepsizes. Building on the aforementioned stability analysis, we establish for a fixed step budget TT an accelerated O(1T2)\mathcal{O}\left(\frac{1}{T^2}\right) convergence rate for SGD with the cross-entropy loss on separable data. To the best of our knowledge, this is the first result showing that the large-stepsize acceleration mechanism survives in the presence of stochastic gradient noise. Moreover, in the full-batch limit, our bound removes the logarithmic factor appearing in prior deterministic guarantees and matches the canonical O(1T2)\mathcal{O}\left(\frac{1}{T^2}\right) accelerated rate associated with Nesterov’s method (Nesterov, [19]). Thus, acceleration can be obtained solely through an appropriate choice of the stepsize, without introducing momentum or modifying the underlying SGD iteration.

  1. Large-stepsize dynamics beyond linear predictors. We extend the theory to two-layer nearly homogeneous neural networks and provide a detailed description of their stochastic dynamics in the large-learning-rate regime. Despite the substantially more intricate geometry induced by the nonlinear parametrization, we recover the same qualitative phase structure as in the linear setting. In particular, we characterize the transition between the EoS and stable regimes and show that, once the loss becomes sufficiently small, the trajectory remains stable for all subsequent iterations with high probability.

  1. Acceleration for two-layer neural networks. We further show that the acceleration mechanism is not an artifact of linear models. For two-layer nearly homogeneous neural-network predictors, we prove that an appropriate large-stepsize choice yields the accelerated rate

O(1T2)\mathcal{O}\left(\frac{1}{T^2}\right). Hence, over a prescribed time horizon T>0T > 0, the same rate as the celebrated accelerated gradient methods Nesterov [19] can be attained by appropriately tuning the learning rate alone. No momentum term, extrapolation step, or modification of the SGD recursion is required. This demonstrates that stepsize-induced acceleration persists in a genuinely nonlinear stochastic setting.

5. Empirical validation. Finally, we complement the theoretical analysis with extensive numerical experiments. The experiments corroborate the predicted transition from the EoS to the stable regime and consistently demonstrate the optimization benefits of large stepsizes across the settings covered by our theory.

Problem Setup & Assumptions

We consider the multi-class classification problem (1) with KK classes, where xi∈Rdx_i \in\mathbb{R}^d is the input, yi∈[K]y_i \in[K] denotes the corresponding label, ff is the predictor parameterized by weights W=[w1,…,wK]∈Rd×KW = [w_1, \ldots, w_K] \in\mathbb{R}^{d \times K}, and the loss function is given by

L(W)=1n∑i=1nℓ(f(xi;W),yi),(1)L(W) = \frac{1}{n} \sum_{i=1}^{n} \ell(f(x_i; W), y_i), \tag*{(1)}

where ℓ(f,y)=log⁡(∑j=1Kefj)−fy\ell(f, y) = \log\left(\sum_{j=1}^{K} e^{f_j}\right) - f_y is the classical cross-entropy loss function for the model ff.

Our goal is to analyze the behavior of SGD in the large stepsize regime. For a mini-batch Bt\mathcal{B}_t of size b≥1b \ge1, consisting of bb indices sampled independently and uniformly from [n][n] (with replacement), the SGD update at time t≥0t \ge0 is given by

Wt+1=Wt−ηgt,(2)W_{t+1} = W_t - \eta g_t, \tag*{(2)}

where gt=1b∑i∈Bt∇ℓ(f(xi;Wt),yi)g_t = \frac{1}{b} \sum_{i \in\mathcal{B}_t} \nabla\ell(f(x_i; W_t), y_i) is the stochastic mini-batch gradient and η>0\eta> 0 is the stepsize of the algorithm.

Blanket Assumptions. We, next, introduce the assumptions required for our theoretical results. We assume without loss of generality that inputs satisfy ∥xi∥2≤1\lVert x_i \rVert_2 \le1, ∀i∈[n]\forall i \in[n]. This assumption can always be satisfied by simply normalizing the data. The next assumption concerns the separability of the dataset, which is common in the literature [22, 5] for this setting.

Assumption 2.1 (Separable data). There exists W∗∈Rd×KW_* \in\mathbb{R}^{d \times K} with ∥W∗∥F=1\lVert W_* \rVert_F = 1 and a margin γ>0\gamma> 0 such that for every i∈[n]i \in[n] and every class j≠yij \ne y_i, it holds that (W∗⊤xi)yi−(W∗⊤xi)j≥γ(W_*^\top x_i)_{y_i} - (W_*^\top x_i)_j \ge\gamma.

Assumption 2.1 uses the multiclass margin of Crammer and Singer [8]: for the largest admissible γ\gamma, it equals the value of the hard-margin multiclass SVM,

max⁡∥W∥F≤1min⁡i∈[n]min⁡j≠yi[(W⊤xi)yi−(W⊤xi)j].\max_{\lVert W \rVert_F \le1} \min_{i \in[n]} \min_{j \ne y_i} \left[(W^\top x_i)_{y_i} - (W^\top x_i)_j\right].

Prior State of the Art

We, first, review the existing results in the literature regarding the multi-class cross-entropy loss setting and then present our theoretical guarantees regarding acceleration. Recent work [11] establishes that SGD alternates between an initial unstable regime, where a O(ln⁡tt)\mathcal{O}\left(\frac{\ln t}{t}\right) rate for the best iterate for any stepsize η>0\eta> 0 is shown, and a stable regime, which is attained when the loss is smaller than a certain threshold. More specifically, the stable set is defined as

S:={W∈Rd×K:L(W)≤L~},(3)\mathcal{S} := \left\{W \in\mathbb{R}^{d \times K} : L(W) \le\widetilde{L}\right\}, \tag*{(3)}

where the stable threshold is given by

L~:=min⁡{116η(1+2nbγ02),12mn,1n}\widetilde{L} := \min\left\{\frac{1}{16\eta\left(1+\frac{2n}{b\gamma_0^2}\right)},\frac{1}{\sqrt{2mn}},\frac{1}{n}\right\}

with γ0:=min⁡{γ,1}\gamma_0 := \min\{\gamma,1\}.

When the iterates are inside the stable set, the loss is shown to attain a last-iterate rate at a O(ln⁡tt)\mathcal{O}\left(\frac{\ln t}{t}\right). However, the noise of the stochastic oracles may destabilize the dynamics, making the iterates exit momentarily the stable regime. For this reason, prior work [11] proves that the iterates will re-enter the stable set in a finite number of steps and will remain inside the stable regime with larger probability at every subsequent step as the loss steadily decreases.

Theorem 3.1 (Stabilization of SGD, [11]). Let Assumption 2.1 hold. The iterates of (SGD) with any stepsize η>0\eta> 0 and batch size b≥1b \ge1 satisfy the following.

  1. Staying stable with high probability. If Wt∈SW_t \in\mathcal{S}, then with probability at least 1−δ′1-\delta' it holds that Wt+1∈SW_{t+1} \in\mathcal{S}, where δ′=O(exp⁡(−bηL(Wt)3/2))\delta' = \mathcal{O}\left(\exp\left(-\frac{b}{\eta L(W_t)^{3/2}}\right)\right).

  1. Return to stability. Assume that the dynamics exit the stable regime at tout>0t_{\mathrm{out}} > 0, and fix δ∈(0,1)\delta\in(0,1). Then, with probability at least 1−δ1-\delta, the iterates of (SGD) return to the stable regime in at most tre=O~(ηb2γ2δ2L~)t_{\mathrm{re}} = \widetilde{\mathcal{O}}\left(\frac{\eta b^2}{\gamma^2\delta^2\widetilde{L}}\right) number of steps.

The aforementioned theorem is informative for the alternation between the stable and unstable regime. However, there is no guarantee that when the loss hits a certain threshold that the dynamics will remain forever in the stable regime. This potential alternation between stable and unstable regimes is the main obstacle preventing prior analyses from proving an accelerated rate for SGD, motivating the fine-grained analysis of the next section.

Convergence Guarantees

Our results begin by providing a refined analysis of the phase transition phenomenon that occurs in the stochastic dynamics. More precisely, Emmanouilidis et al. [11] show that the probability of remaining stable in the next iteration when the dynamics are already in the stable regime depends on the loss level and the distance of it from the stable level threshold L~\widetilde{L}. In this work, we prove the stronger statement that when the iterates attain a slightly lower loss threshold the dynamics remain stable for all subsequent iterations. The intuition behind the aforementioned result is that since the noise in the cross-entropy setting is upper bounded by the loss, when the difference of the current loss from the stable threshold is sufficiently large, then with high probability the dynamics will not become unstable even in the presence of noise.

We, next, provide formally the result. For any δ∈(0,1)\delta\in(0,1), define the lower-level set

Slow={W∈Rd×K:L(W)≤δ3L~}\mathcal{S}_{\mathrm{low}} = \left\{ W \in\mathbb{R}^{d \times K} : L(W) \le\frac{\delta}{3}\widetilde{L} \right\}

and the lower-level entrance time τδ:=inf⁡{t≥0:L(Wt)≤δ3L~}\tau_{\delta} := \inf\left\{t \ge0 : L(W_t) \le\frac{\delta}{3}\widetilde{L}\right\}.

References

  1. [1]Jason M Altschuler and Pablo A Parrilo. Acceleration by random stepsizes: Hedging, equalization, and the arcsine stepsize schedule. arXiv preprint arXiv:2412.05790, 2024.arxiv.org/abs/2412.05790
  2. [2]Jason M Altschuler and Pablo A Parrilo. Acceleration by stepsize hedging: Multi-step descent and the silver stepsize schedule. Journal of the ACM, 72(2):1–38, 2025.DOI
  3. [3]Jinho Bok and Jason M. Altschuler. Accelerating proximal gradient descent via silver stepsizes. In Proceedings of Thirty Eighth Conference on Learning Theory, pages 421–453, 2025.arxiv.org/abs/2412.05497
  4. [4]Alon Brutzkus, Amir Globerson, Eran Malach, and Shai Shalev-Shwartz. Sgd learns over-parameterized networks that provably generalize on linearly separable data. In International Conference on Learning Representations, 2018.arxiv.org/abs/1710.10174
  5. [5]Yuhang Cai, Jingfeng Wu, Song Mei, Michael Lindsey, and Peter Bartlett. Large stepsize gradient descent for non-homogeneous two-layer networks: Margin improvement and fast optimization. Advances in Neural Information Processing Systems, 37:71306–71351, 2024.arxiv.org/abs/2406.08654
  6. [6]Jeremy M. Cohen, Simran Kaur, Yuanzhi Li, J. Zico Kolter, and Ameet Talwalkar. Gradient descent on neural networks typically occurs at the edge of stability. In International Conference on Learning Representations, 2021.arxiv.org/abs/2103.00065
  7. [7]Jeremy M. Cohen, Alex Damian, Ameet Talwalkar, Zico Kolter, and Jason D. Lee. Understanding optimization in deep learning with central flows, 2024. URL https://arxiv.org/abs/2410.24206.
  8. [8]Koby Crammer and Yoram Singer. On the algorithmic implementation of multiclass kernel-based vector machines. Journal of Machine Learning Research, 2:265–292, 2001.
  9. [9]Alex Damian, Eshaan Nichani, and Jason D Lee. Self-stabilization: The implicit bias of gradient descent at the edge of stability. In International Conference on Learning Representations, 2023.arxiv.org/abs/2209.15594
  10. [10]Konstantinos Emmanouilidis, René Vidal, and Nicolas Loizou. Stochastic extragradient with random reshuffling: Improved convergence for variational inequalities. In International Conference on Artificial Intelligence and Statistics, pages 3682–3690. PMLR, 2024.arxiv.org/abs/2403.07148
  11. [11]Konstantinos Emmanouilidis, Lachlan MacDonald, Salma Tarmoun, and Rene Vidal. Sgd at the edge of stability: Stochastic stabilization with large learning rates. arXiv preprint arXiv:2606.30930, 2026.
  12. [12]Benjamin Grimmer. Probably faster gradient descent via long steps. SIAM Journal on Optimization, 34(3):2588–2608, 2024.arxiv.org/abs/2307.06324
  13. [13]Benjamin Grimmer, Kevin Shu, and Alex L Wang. Accelerated gradient descent via long steps. arXiv preprint arXiv:2309.09961, 2023.arxiv.org/abs/2309.09961
  14. [14]Ziwei Ji and Matus Telgarsky. The implicit bias of gradient descent on nonseparable data. In Conference on Learning Theory, pages 1772–1798. PMLR, 2019.
  15. [15]Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
  16. [16]Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, and Saining Xie. A convent for the 2020s. CoRR, abs/2201.03545, 2022. URL https://arxiv.org/abs/2201.03545.
  17. [17]Mor Shpigel Nacson, Nathan Srebro, and Daniel Soudry. Convergence of gradient descent on separable data. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 3420–3428. PMLR, 2019a.arxiv.org/abs/1803.01905
  18. [18]Mor Shpigel Nacson, Nathan Srebro, and Daniel Soudry. Stochastic gradient descent on separable data: Exact convergence with a fixed learning rate. In Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics, volume 89 of Proceedings of Machine Learning Research, pages 3051–3059. PMLR, 2019b.arxiv.org/abs/1806.01796
  19. [19]Yurii Nesterov. A method for solving the convex programming problem with convergence rate O(1/k²). Proceedings of the USSR Academy of Sciences, 269:543–547, 1983.
  20. [20]Yurii Nesterov. Lectures on Convex Optimization. Springer, 2nd edition, 2018. ISBN 978-3-319-91577-7. doi: 10.1007/978-3-319-91578-4.DOI
  21. [21]Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar, and Nathan Srebro. The implicit bias of gradient descent on separable data. Journal of Machine Learning Research, 19(70):1–57, 2018.arxiv.org/abs/1710.10345
  22. [22]Jingfeng Wu, Vladimir Braverman, and Jason D Lee. Implicit bias of gradient descent for logistic regression at the edge of stability. Advances in Neural Information Processing Systems, 36:74229–74256, 2023.arxiv.org/abs/2305.11788
  23. [24]Jingfeng Wu, Peter L Bartlett, Matus Telgarsky, and Bin Yu. Large stepsize gradient descent for logistic loss: Non-monotonicity of the loss improves optimization efficiency. In The Thirty Seventh Annual Conference on Learning Theory, pages 5019–5073. PMLR, 2024b.arxiv.org/abs/2402.15926
  24. [25]Jingfeng Wu, Pierre Marion, and Peter Bartlett. Large stepsizes accelerate gradient descent for regularized logistic regression. arXiv preprint arXiv:2506.02336, 2025.arxiv.org/abs/2506.02336
  25. [26]Zehao Zhang and Rujun Jiang. Accelerated gradient descent by concatenation of stepsize schedules. SIAM Journal on Optimization, 36(2):1182–1210, 2026.arxiv.org/abs/2410.12395

Paper details

vlnc:W_3c8rhwzp
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

Not recorded for this paper

View statement
Looking for related papers…
Contents