potentialpaper

SGD at the Edge of Stability: The Stochastic Sharpness Gap

Fangshuo Liao, Afroditi Kolomvaki, Anastasios Kyrillidis

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Edge of Stability (EoS) refers to the phenomenon where full-batch gradient descent (GD) training of neural networks with step size η\eta pushes the largest eigenvalue of the Hessian, i.e. the sharpness, to 2/η2/\eta and hovers there. \citet{damian2023selfstab} explains the hovering behavior of the sharpness by self-stabilization, a mechanism driven by third-order structure of the loss, and shows that GD implicitly follows projected gradient descent (PGD) on the set where the sharpness is below 2/η2/\eta. For mini-batch stochastic gradient descent (SGD), the sharpness stabilizes below 2/η2/\eta, with the gap widening as the batch size decreases. However, no theoretical explanation exists for this suppression. In this paper, we introduce stochastic self-stabilization that extends the self-stabilization framework to SGD. Our key insight is that gradient noise injects variance into the oscillatory dynamics along the top Hessian eigenvector, strengthening the sharpness-reducing force and shifting the equilibrium below 2/η2/\eta. Following the approach of \citet{damian2023selfstab}, we define stochastic predicted dynamics that tracks the deviation of SGD from the PGD trajectory, and prove a stochastic coupling theorem that relates the SGD sharpness and loss to those of PGD. Based on our predicted dynamic, we derive a closed-form equilibrium sharpness gap that scales with the variance of the gradient noise projected onto the top eigenvector of the Hessian. This formula predicts that smaller batch sizes yield flatter solutions, and recovers GD when the batch equals the full dataset.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
1 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:47 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Summary: This paper extends the self-stabilization account of full-batch gradient descent at the edge of stability to mini-batch SGD. The central claim is that stochastic gradient noise projected onto the top Hessian eigendirection increases the variance of the unstable oscillation and thereby strengthens the sharpness-reducing force. The analysis gives a stochastic coupling result and a closed-form equilibrium sharpness gap, predicting that smaller batches lead to lower sharpness and recovering the full-batch case as a limit.

Strengths:

  • Understanding edge-of-stability behavior for SGD is important, and the proposed stochastic self-stabilization mechanism provides an intuitive explanation for an observed batch-size effect.
  • The paper is generally well written. It first presents the mechanism in a simplified setting and then gives the rigorous analysis.
  • The sharpness-gap formula is concrete and interpretable, and the experiments support the predicted inverse dependence on batch size.

Weaknesses:

  • The theory applies in a small-noise regime and inherits several strong assumptions from the full-batch analysis while adding eigengap, noise, scaling, decorrelation, and locally fixed-geometry conditions. Their simultaneous validity in realistic training is not established.
  • The full closed-form prediction is not directly validated; the experiments mainly verify scaling.
  • The analysis and proof strategy closely follow the deterministic framework of Damian et al, and the technical novelty is unclear.

Overall, this paper is borderline, and an author response addressing the reviewer's concerns is important. In particular, it would be essential to address the following.

Required Changes and Clarifications:

  • Clarify the novelty relative to Damian et al. and recent work on stochastic edge-of-stability behavior. In particular, state which technical steps are new beyond tracking the additional mini-batch noise (Rev. b7Vs, Rev. S4UU, Rev. TmBv).
  • Reconcile the different fitted batch-size exponents reported for the same or similar experimental settings (Rev. b7Vs)
  • Explain the scope of the positive coupling assumption and reconcile it with the observed negative values (Rev. TmBv).
Final justification

The authors have addressed the main concerns by clearly identifying the technical novelty with respect to the previous work, narrowing the claims to the small-noise self-stabilization regime, clarifying that the positive coupling condition is imposed on the reference trajectory, and correcting the interpretation of the empirical scaling results.

The reviewers' final opinions are unanimously positive, and I recommend acceptance.

Area Chair Tg2Y · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Summary: This paper extends the self-stabilization account of full-batch gradient descent at the edge of stability to mini-batch SGD. The central claim is that stochastic gradient noise projected onto the top Hessian eigendirection increases the variance of the unstable oscillation and thereby strengthens the sharpness-reducing force. The analysis gives a stochastic coupling result and a closed-form equilibrium sharpness gap, predicting that smaller batches lead to lower sharpness and recovering the full-batch case as a limit.

Strengths:

  • Understanding edge-of-stability behavior for SGD is important, and the proposed stochastic self-stabilization mechanism provides an intuitive explanation for an observed batch-size effect.
  • The paper is generally well written. It first presents the mechanism in a simplified setting and then gives the rigorous analysis.
  • The sharpness-gap formula is concrete and interpretable, and the experiments support the predicted inverse dependence on batch size.

Weaknesses:

  • The theory applies in a small-noise regime and inherits several strong assumptions from the full-batch analysis while adding eigengap, noise, scaling, decorrelation, and locally fixed-geometry conditions. Their simultaneous validity in realistic training is not established.
  • The full closed-form prediction is not directly validated; the experiments mainly verify scaling.
  • The analysis and proof strategy closely follow the deterministic framework of Damian et al, and the technical novelty is unclear.

Overall, this paper is borderline, and an author response addressing the reviewer's concerns is important. In particular, it would be essential to address the following.

Required Changes and Clarifications:

  • Clarify the novelty relative to Damian et al. and recent work on stochastic edge-of-stability behavior. In particular, state which technical steps are new beyond tracking the additional mini-batch noise (Rev. b7Vs, Rev. S4UU, Rev. TmBv).
  • Reconcile the different fitted batch-size exponents reported for the same or similar experimental settings (Rev. b7Vs)
  • Explain the scope of the positive coupling assumption and reconcile it with the observed negative values (Rev. TmBv).
Final justification

The authors have addressed the main concerns by clearly identifying the technical novelty with respect to the previous work, narrowing the claims to the small-noise self-stabilization regime, clarifying that the positive coupling condition is imposed on the reference trajectory, and correcting the interpretation of the empirical scaling results.

The reviewers' final opinions are unanimously positive, and I recommend acceptance.

1 comment
Authors · CommentOpenReview ↗

Thank you for the meta-review. We respond to the required changes and clarification below. We also responded to these points individually to the reviewers who has raised them.

Technical Novelty. While our work relies on a similar third-order Taylor expansion and the four stage dynamics, our paper resolves specific technical points that are not present in Damian et al. (2023). First, showing that SGD tracks the reference trajectory under noise is inherently a more difficult task than GD. The coupling theorem (Thm 1). becomes a mean-square, high-probability statement, proved via supermartingale constructions and Doob's maximal inequality (Lemmas E.2--E.5) in place of the deterministic trajectory bound. To enable this analysis, we deviate from the two-step analysis (Damian et al. (2023), Lemma 15), and instead utilized a step-wise Lipschitzness analysis (Lemma E4 of our paper). This resulted in difference in the predicted dynamic (Lemma 4) that needs to be analyzed specifically in the sharpness gap theorem. Second, our sharpness gap theorem (Thm 2) is completely independent of Damian et al. (2023). Starting from our specific form of predicted dynamic, we utilized second-order stationary condition to derive E[x^t2]\mathbb{E}[\hat{x}_t^2] and E[y^t]\mathbb{E}[\hat{y}_t] in equilibrium that showcase how the noise variance influence E[y^t]\mathbb{E}[\hat{y}_t] instead of simply upper bounding the noise magnitude. From a high-level perspective, we argue that a carefully chosen predicted dynamic in Definition 4.4 is especially important in the SGD setting as it need to provide a close-enough tracking of the SGD trajectory and at the same time give rise to effective analysis of the sharpness at equilibrium. We will make these discussions explicit in the revised version of the paper instead of merging them implicitly in the recap of the deterministic mechanism.

Different fitted batch-size exponents. We agree with the current writing's ambiguity on explanation of inconsistent the fitted exponent in the log-log plot. Indeed we believe that the deviation of Figure 2 is due to the significant contribution of the inaccurate small ΔS\Delta S and large batch size point in the log-log plot (the relationship between batch size and the gradient variance has been widely agreed by previous literature). For the −1.27-1.27 slope in Figure 1, we conducted a more comprehensive of the discrepancy in Appendix H.9.3, where Figure 13 refits over all 11 batch sizes with a robust seed-median, time-averaged protocol, giving −1.51-1.51. Appendix H.9.3 provides an accounting of the deviation from −1-1: −1-1 is only the frozen-coefficient leading order; propagating the measured batch dependence of the landscape quantities through Eq.(48) predicts a slope of −1.460-1.460 versus the measured −1.510-1.510 (residual −0.05-0.05. The defensible claim, which we will make explicitly, is that the theory matches once the bb-dependence of its own coefficients is accounted for, while the leading-order slope alone under-predicts the steepness. We do agree that −1.51-1.51 is not close to −1-1, and we will remove the ``good agreement with the theoretical prediction slope of −1-1'' framing from Section~5.1.

Positive coupling assumption. The theory requires αt>0\alpha_t>0 along the PGD reference trajectory θt†\theta_t^\dagger (Assumption 3, with all quantities defined at θt†\theta_t^\dagger per Defs. 4.1--4.2), not at the SGD iterate. The frequently negative instantaneous α\alpha (Fig.7D) is measured at the oscillating iterate (SGD trajectory), which overshoots 2/η2/\eta during EoS oscillation; the sign flips are therefore a signature of the oscillation the reference trajectory is constructed to factor out, and we interpret them as a measurement-location artifact rather than a failure mode of the mechanism. We consider the measurement of αt\alpha_t along the SGD trajectory as a complementary observation for αt\alpha_t along the reference trajectory, which is provided in Damian et al. (2023), Appendix E. We note again that the reference trajectory in our paper is the same as Damian et al. (2023), so their experimental result directly verifies our condition.

Reviewer TmBvOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This work studies the Edge of Stability phenomenon for mini-batch stochastic gradient descent, following the methodology of Damian et al. [2023]. The paper introduces a stochastic self-stabilization mechanism and argues that gradient noise projected onto the top Hessian eigenvector suppresses the equilibrium sharpness below 2/η2/\eta. Under assumptions on eigengap, regularity, progressive sharpening, noise non-degeneracy, and suitable scaling, the authors derive an explicit sharpness-gap formula depending on the variance of the projected SGD noise. The paper also conducts neural-network experiments, including experiments on CIFAR, and the empirical results appear broadly consistent with the theoretical prediction.

Strengths and weaknesses

Strengths

The notation and assumptions are clearly defined, with useful explanations and interpretations. The experiments are organized and presented in a meaningful way. The proposed mechanism gives a plausible explanation for why the sharpness under mini-batch SGD stabilizes below 2/η2/\eta, and the sharpness-gap formula provides a concrete prediction relating batch size, projected noise variance, and equilibrium sharpness.

Weakness

This work is very closely tied to Damian et al. [2023], both technically and in presentation. The paper repeatedly invokes Damian et al. [2023] to frame the methodology, notation, proof strategy, and interpretation. While this helps clarify which parts are inherited and which parts are new, the amount of reliance is substantial. As a result, the present paper often reads more like a stochastic extension of Damian et al. [2023] than as a fully standalone contribution. This concern is reinforced by the similarity in paragraph structure and organization. The main new contribution appears to be the stochastic correction to the self-stabilization mechanism and the resulting batch-size-dependent sharpness gap, but the exposition spends so much effort following and explaining the framework of Damian et al. [2023] that the novelty of the present work feels somewhat diluted.

A more substantial technical concern is the strength and empirical validity of the assumptions. The assumptions in Damian et al. [2023] are already quite strong, and the present work introduces additional assumptions for the stochastic setting, including conditions on eigengap, regularity, progressive sharpening, noise non-degeneracy, and scaling. It is unclear how realistic it is for all these assumptions to hold simultaneously in practical neural-network training. Moreover, moving from GD to SGD may make some assumptions less stable, since gradient noise can perturb the top eigendirection, the eigengap, the projected dynamics, and the third-order coefficient α\alpha.

In particular, the theory requires α>0\alpha>0, but the appendix reportedly observes that α\alpha is frequently negative. This raises a serious question about the scope of the main theorem. If α<0\alpha<0, then the proposed sharpness-gap formula changes sign if applied naively, and it no longer directly supports the claim that SGD suppresses sharpness below 2/η2/\eta. This case may simply fall outside the theory, but since negative α\alpha appears to occur in experiments, the paper should explain how often this happens and how such regimes should be interpreted.

Questions
  1. Can the authors empirically evaluate whether the main assumptions, or at least the key quantities appearing in them, are satisfied in the reported experiments?
  2. Which assumptions become harder or easier to satisfy when moving from GD to SGD? In particular, how does gradient noise affect the eigengap, the top Hessian eigendirection, and the coefficient α\alpha?
  3. Assumption 5 only imposes conditions on the noise projected onto the top Hessian eigenvector, and the main results depend only on this projected component. Does the orthogonal noise component affect the trajectory, Hessian evolution, eigengap, or top eigendirection? If so, what control on the orthogonal component is needed?
  4. Since the theory requires α>0\alpha>0, but the appendix reports that α\alpha is frequently negative, how should one interpret regimes with α<0\alpha<0? If the sharpness-gap formula were applied naively, the sign of the gap would change and could suggest sharpness above 2/η2/\eta. Is such behavior observed in practice, or are these regimes outside the scope of the theory?
Limitations

yes

Final justification

My questions are mostly addressed. I will keep the original score because I think the scope of this work is limited, though the results are non-trivial.

Formatting concerns

No formatting concerns.

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the careful reading and the concrete questions. We address the weaknesses and questions you raised first below.

Technical novelty beyond Damian et al. (2023) (W1). We thank the reviewer for the advice to better highlight our technical contributions beyond Damian et al. (2023). We agree that our paper's structure resembles Damian et al. (2023), and this is because we believe the understanding of the four-stage dynamic of Damian et al. (2023) is essential to understand our work. However, we should note that although the organization is similar, our Section 3 highlights the effect of noise in the dynamic, and our Section 4.1 provides the predicted dynamic in a different form from Damian et al. (2023). Therefore, although looking similar, these two parts carries different essence from Damian et al. (2023). Moreover, our paper resolves specific technical points that are not present in Damian et al. (2023). First, showing that SGD tracks the reference trajectory under noise is inherently a more difficult task than GD. The coupling theorem (Thm 1). becomes a mean-square, high-probability statement, proved via supermartingale constructions and Doob's maximal inequality (Lemmas E.2--E.5) in place of the deterministic trajectory bound. To enable this analysis, we deviate from the two-step analysis (Damian et al. (2023), Lemma 15), and instead utilized a step-wise Lipschitzness analysis (Lemma E4 of our paper). This resulted in difference in the predicted dynamic (Lemma 4) that needs to be analyzed specifically in the sharpness gap theorem. Second, our sharpness gap theorem (Thm 2) is completely independent of Damian et al. (2023). Starting from our specific form of predicted dynamic, we utilized second-order stationary condition to derive E[x^t2]\mathbb{E}[\hat{x}_t^2] and E[y^t]\mathbb{E}[\hat{y}_t] in equilibrium that showcase how the noise variance influence E[y^t]\mathbb{E}[\hat{y}_t] instead of simply upper bounding the noise magnitude. From a high-level perspective, we argue that a carefully chosen predicted dynamic in Definition 4.4 is especially important in the SGD setting as it need to provide a close-enough tracking of the SGD trajectory and at the same time give rise to effective analysis of the sharpness at equilibrium. We will make these discussions explicit in the revised version of the paper instead of merging them implicitly in the recap of the deterministic mechanism.

Plausibility of the assumption stack (W2 and Q1). It should be noticed that Assumption 1-4 and the condition that T≤cT/ε\mathcal{T} \leq c_{\mathcal{T}} / \varepsilon and ρ4≤O(ηρ32)\rho_4 \leq O(\eta\rho_3^2) in our paper are the same condition as in Damian et al. (2023), Assumptions 1-5. Although we study the SGD trajectory, these conditions are defined over the reference trajectory which is deterministic and the same as Damian et al. (2023). Therefore, the conditions above are no stronger than Damian et al. (2023). The additional assumptions we use for our main result Theorem 1 are that σu>0\sigma_{\mathbf{u}} > 0 and that the noise variance are bounded. There has been prior work showing that the noise covariance aligns with the Hessian during training [1]. Therefore, it is a plausible assumption that the noise is non-degenerate along the top direction. For the upper bound on the noise variance, since the focus of the paper is the dynamic of λmax⁡\lambda_{\max}, we choose to limit the scale of the noise so that the eigengap can be roughly preserved.

Regarding Assumption 7 and 8, we first note that they are only required for Theorem 2. In particular, the condition of Assumption 7 is verified in Appendix H7. Assumption 8 is made so that the dynamic can be well understood. From a practical stand-point, the dynamic of E[x^t2]\mathbb{E}[\hat{x}_t^2], as indicated by our theory, depends heavily on the magnitue of δs\delta_s for s≤ts\leq t. Without the assumption on δs\delta_s, one could not possibly obtain meaningful predictions on E[x^t2]\mathbb{E}[\hat{x}_t^2] and consequently the sharpness gap. We choose to assume the conditions of frozen α,β\alpha, \beta, and H\mathbf{H} to make the statement of the result meaningful. Regarding the condition that κ\kappa is upper bounded and ∇S⊥∈ker(H∣u⊥)\nabla S^\perp \in \text{ker}(\mathbf{H}\mid_{\mathbf{u}^\perp}), we verify the condition in Appendix H9 that the cosine angle between ∇S\nabla S and u\mathbf{u} is small, and that the alignment between ∇S⊥\nabla S^\perp and the dominating direction of H\mathbf{H} where the eigenvalues are large is small.

Scope of α>0\alpha>0 vs. observed negative values (W3 and Q4). The theory requires αt>0\alpha_t>0 along the PGD reference trajectory θt†\theta_t^\dagger, not at the SGD iterate. The frequently negative instantaneous α\alpha (Fig.~7D) is measured at the oscillating iterate (SGD trajectory), which overshoots 2/η2/\eta during EoS oscillation; the sign flips are therefore a signature of the oscillation the reference trajectory is constructed to factor out, and we interpret them as a measurement-location artifact rather than a failure mode of the mechanism. We consider the measurement of αt\alpha_t along the SGD trajectory as a complementary observation for αt\alpha_t along the reference trajectory, which is provided in Damian et al. (2023), Appendix E. We note again that the reference trajectory in our paper is the same as Damian et al. (2023), so their experimental result directly verifies our condition.

*Which assumptions become harder or easier under SGD (Q2). Since Assumption 1-4 and the condition that T≤cT/ε\mathcal{T} \leq c_{\mathcal{T}} / \varepsilon and ρ4≤O(ηρ32)\rho_4 \leq O(\eta\rho_3^2) are defined over the PGD reference trajectory, they are not influenced by the gradient noise, so the strength stays the same across SGD and GD. Assumption 5,7 and the rest of the conditions in Assumption 6 are specific to SGD (for the noise variance upper bound, GD trivially obtains an upper bound of 0, so it is harder for SGD in the sense that additional noise are added). Assumption 8 might be harder to hold for the SGD case, as the gradient noise introduces additional instability. However, we should clarify that (as in the answer to W2 and Q1) these conditions are assumed to make the result more interpretable and meaningful.

Role of the orthogonal noise component (Q3). We indeed require an upper bound on the overall noise variance as in Assumption 6 (so in some sense the orthogonal components enters the analysis in this condition). With this upper bound and the eigengap condition, intuitively the orthogonal noise component does not affect the evolution of the top eigenvalue of the Hessian. However, we should notice that the story might be different if one choose to study eigenvalues beyond the top one, as illustrated in [2]. We believe that this might be an interesting future work.

[1] Zhanxing Zhu, Jingfeng Wu, Bing Yu, Lei Wu, and Jinwen Ma. The Anisotropic Noise in Stochastic Gradient Descent: Its Behavior of Escaping from Sharp Minima and Regularization Effects. ICML 2019.

[2] Jeremy M. Cohen, Alex Damian, Ameet Talwalkar, J. Zico Kolter, Jason D. Lee. Understanding Optimization in Deep Learning with Central Flows. ICLR 2025.

Reviewer TmBv · CommentOpenReview ↗

Thank you for addressing my questions. Here are some comments.

  1. I am aware that your work is motivated but different from Damian et al. (2023), which I also read to better understand your paper. What I would suggest is to have a clear separation of sections, so it is clear that one part is the previous work and one is your own work, instead of entangled up constantly throughout the paper.

  2. Since your assumptions involve bounding αt\alpha_t and βt\beta_t, which defines δt\delta_t, would it be possible to derive some reasonable bound on δt\delta_t (maybe with some additional assumption)? It might not be a bad idea to utilized those assumptions more.

  3. I agree that work on the eigenvalues beyond the top one would be interesting. Do you have some intuition what might happen in that case?

Authors · CommentOpenReview ↗

We are glad that our answer resolves your questions. Regarding the new comments:

  1. We thank the reviewer for the advice and for taking the effort to read the previous work to better understand our work. We agree that having a structure that better separates the previous work and our contribution will improve the paper. In the updated version, we plan to improve Section 3 by using a dedicated subsection to review Damian et al. (2023)'s result and a dedicated subsection to outline the difference in our analysis. We also plan to add clarifications in Section 4 to show which part is inherited from previous work and which part is new.

  2. We believe that bounding δt\delta_t by analyzing αt\alpha_t and βt\beta_t can be an interesting step, but our current understanding is that this cannot be done in a meaningful way without assumption on the specific neural network structure and the data distribution. In particular, the defining quantity ∇S\nabla S is the determining quantity of the progressive sharpening phenomena. There has been work that observed that the top eigenvalues and eigenvectors of the Hessian are correlated with the top eigenvectors and eigenvalues of the NTK. Therefore, the progressive sharpening phase often relates to the feature learning of the neural network [1] and the top eigenvectors contains class-specific information [2]. Thus, it seems that a good understanding of ∇S\nabla S and how it aligns with ∇L\nabla L would rely on a theoretical characterization of the feature learning capability of the neural network, which is beyond the pure optimization lens we take. Nevertheless, we believe that this is an interesting connection, and we will add the discussion to the paper.

  3. In the case where the noise has a scale larger than the eigengap, multiple eigenvector directions would have the chance to be the leading eigenvector and dominates the sharpness. Thus, the sharpness gradient ∇S\nabla S no longer takes the simple form as we have in the paper. Cohen et al. 2025 cited in our answer above uses the solution of a semidefinite complementarity problem to characterize the directions that influences the sharpness. However, it seems that there is no closed form solution that allows us to conduct a clean analysis.

[1] Elan Rosenfeld, Andrej Risteski. Outliers with Opposing Signals Have an Outsized Effect on Neural Network Optimization. ICLR 2024.

[2] Vardan Papyan. Traces of Class/Cross-Class Structure Pervade Deep Learning Spectra. JMLR 2020.

Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you again for the constructive discussion. As the discussion phase is ending, we wanted to gently follow up on our previous response to your latest questions. Please let us know if our answers addressed your concerns, or if there's anything further we can clarify. We're happy to answer any questions you might have about the paper.

Thank you again for your time and thoughtful feedback throughout the review process.

Authors

Reviewer S4UUOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This work studies the mechanism for the edge of stability (EoS) of SGD (specifically, why for SGD, the sharpness stabilizes at a lower value than for full-batch GD with step-size η\eta, where it’s 2/η2/\eta). For full-batch GD, prior work has shown a self-stabilization mechanism, where the third-order structure in the loss introduces a sharpness-reducing component in the gradient that helps stabilize sharpness. Extending this framework to SGD, this paper shows that the gradient noise along the top Hessian eigenvector inflates the variance of the unstable-direction oscillation, amplifying the sharpness-reducing force and shifting the equilibrium sharpness to a lower value. Since mini-batch noise variance grows as batch size shrinks, this predicts a batch-size-dependent flattening, consistent with the observation that smaller-batch SGD finds flatter minima.

Strengths and weaknesses

Strengths:

Overall, the paper is well written and easy to follow. It discusses relevant related work on EoS, gives appropriate background for the self-stabilization mechanism from prior work (Damian et al., 2023), presents their analysis under simplified assumptions first to help the reader understand the mechanism (Section 3), followed by the rigorous proofs (Section 4).

The assumptions for Section 4 mostly seem reasonable and are justified, other than perhaps Assumption 6. Specifically, Theorem 1 (the stochastic coupling mechanism) uses Assumptions 1-6. The first four are inherited from prior work: curvature gap between the top direction and the rest, the loss being smooth enough (four derivatives) and well-behaved, and sharpness progressively increasing during training. Assumption 5 requires that the noise has a nonzero component along the top direction (which is reasonable; otherwise, it reduces to full-batch GD). Assumption 6 requires bounded noise variance to prevent the dynamics from entering a chaotic regime, but this seems to restrict the batch size from being very small. Theorem 2 (attaining a closed-form for the sharpness stability) additionally requires Assumptions 7-8: the system reaches a steady state, the oscillation along the top Hessian eigenvector and the projection onto the sharpness-gradient direction are approximately decorrelated, and the local loss landscape geometry is fixed. The authors present experimental evidence to support these two assumptions.

The authors present experimental results to verify the theoretical predictions. What they show: the theory makes two quantitative predictions: both the sharpness gap and the noise along the top direction should scale as (batch-size)−1^{-1}. They measure the exponents to be -1.27 and -1.21, respectively. The authors attribute the gap to a mild batch-size-dependence in some quantities that they treated as constant in the analyses, which seems reasonable.

Weaknesses:

In terms of novelty, while the paper identifies an interesting mechanism for how the projection of mini-batch noise on the top Hessian eigenvector further reduces sharpness, the actual analysis and proof techniques don’t seem very novel. The paper uses the framing of Damian et al., 2023, while additionally tracking the gradient noise from mini-batching.

The paper can be strengthened by adding some more experiments or discussing the ones in the appendix in more detail. Specifically, the paper includes results on one network (two-layer tanh, MSE loss), with other architectures and cross-entropy loss in the appendix. The limitations section states that these dynamics don't always appear, depending on loss and architecture. Can the authors clarify and explain why they think this is the case?

Other than this, I did not find any major weaknesses, but there are some suggestions related to the presentation.

  • The notation for expectation is non-standard with boldface E[⋅]\mathbf{E[\cdot]} and should be updated to E[⋅]\mathbb{E}[\cdot].
  • In line 161, the assumptions that vtv_t is small and gradients for θt\theta_t and θ∗\theta_* are similar should be stated properly.
  • In line 297, the authors should include references to the relevant parts of the appendix.
  • The space after Fig. 3 is too little.
  • In the final version with more space, it would be good to include some discussion on the additional experiments in App. H.
Questions

Please see the above section.

Limitations

Yes.

Final justification

The rebuttal addressed my concerns and I maintain my positive score.

Formatting concerns

N/A

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the supportive and constructive review. We respond to the weaknesses you raised below.

Technical novelty beyond Damian et al. (2023) (W1). We thank the reviewer for the advice to better highlight our technical contributions beyond Damian et al. (2023). While our work relies on a similar third-order Taylor expansion and the four stage dynamics, our paper resolves specific technical points that are not present in Damian et al. (2023). First, showing that SGD tracks the reference trajectory under noise is inherently a more difficult task than GD. The coupling theorem (Thm 1). becomes a mean-square, high-probability statement, proved via supermartingale constructions and Doob's maximal inequality (Lemmas E.2--E.5) in place of the deterministic trajectory bound. To enable this analysis, we deviate from the two-step analysis (Damian et al. (2023), Lemma 15), and instead utilized a step-wise Lipschitzness analysis (Lemma E4 of our paper). This resulted in difference in the predicted dynamic (Lemma 4) that needs to be analyzed specifically in the sharpness gap theorem. Second, our sharpness gap theorem (Thm 2) is completely independent of Damian et al. (2023). Starting from our specific form of predicted dynamic, we utilized second-order stationary condition to derive E[x^t2]\mathbb{E}[\hat{x}_t^2] and E[y^t]\mathbb{E}[\hat{y}_t] in equilibrium that showcase how the noise variance influence E[y^t]\mathbb{E}[\hat{y}_t] instead of simply upper bounding the noise magnitude. From a high-level perspective, we argue that a carefully chosen predicted dynamic in Definition 4.4 is especially important in the SGD setting as it need to provide a close-enough tracking of the SGD trajectory and at the same time give rise to effective analysis of the sharpness at equilibrium. We will make these discussions explicit in the revised version of the paper instead of merging them implicitly in the recap of the deterministic mechanism.

Adding experiments to the main text (W2). We thank the reviewer's suggestion of moving some experimental results and discussion from the appendix to the main text. In the updated version we plan to move Section H.9.3 to the main text to account better for the deviation of the fitted exponent −1.27-1.27 from −1-1 in Figure 1.

Presentation Issue (W3). We thank the reviewer for the suggestion. We will make sure to revise the expectation notation, and add more clarification for the step in line 161 and 297. We will also add more space to Figure 3 in the updated version of the paper.

Reviewer S4UU · CommentOpenReview ↗

Thank you for the response, especially for the clarification about the proof techniques and technical novelty. The rebuttal did not include a complete response to W2 from my original review, can the authors address that?

Authors · CommentOpenReview ↗

Thanks for raising the question again and sorry for missing the last question in W2. By "the EoS behavior does not always exist" we mean that for CNN and cross-entropy training, the sharpness decays at the end of training to near zero even under GD, and in this case the sharpness of the SGD converges to the GD sharpness (as expected). We would like to note that we are not the first to discover the behavior, and the result is first reported in [1], Appendix C. In particular [1] attributes this behavior to the decay in spectral norm of the Hessian of cross-entropy due to the probability converging to 1, in the Gauss-Newton decomposition of the Hessian. This phenomenon effectively changes the behavior of the progressive sharpening coefficient, which will become negative at the end of training. We believe that the SGD behavior under this setup would be an interesting open problem.

[1] Jeremy Cohen, Simran Kaur, Yuanzhi Li, J. Zico Kolter, and Ameet Talwalkar. Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability. ICLR 2021.

Reviewer b7VsOpenReview ↗
Rating
4/6
Confidence
5/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper generalizes the previous self-stabilization analysis of GD at the edge-of-stability to the SGD regime, where stochastic noise influences the cubic dynamics and makes the critical learning rate in the full-batch setting 2/λmax⁡2/\lambda_{\max} shift to some threshold below it, which is correlated with the batch size under a small-noise regime (though the paper does not explicitly mention this, Assumption 6 for ξt\xi_t implies this regime). This paper stands out for its theoretical value in generalizing EoS to the more practical regime: stochastic training, as it provides a solvable example and mechanism analysis for the critical-learning-rate threshold for SGD.

Strengths and weaknesses

strength

  • Writing is clear, the definitions in the theory are clearly introduced sequentially, and Section 3 gives a clear physical picture for this training dynamics, so the theory parts are not heavy to understand.
  • The mechanism is clean, and the central result is sound. It is worked through both the heuristic (Stages 1–4) and the rigorous derivation (Theorem 2 / Appendix F). The two routes agree on Seq=2/η−ηβσu2/(4α)S_{\mathrm{eq}} = 2/\eta - \eta\beta\sigma_u^2/(4\alpha), the b=nb = n limit correctly recovers GD, and the second-moment balance E[x^2]=δ2=2α/β\mathbb{E}[\hat{x}^2] = \delta^2 = 2\alpha/\beta is consistent throughout. This is a genuinely interpretable closed form for a phenomenon (smaller batch → flatter solution) that has mostly been discussed qualitatively.

weakness

  • Technically, the dynamics analyzed in the paper may be naive or narrow for a thorough understanding of EoS under stochasticity. The derived critical learning rate for EoS is only correlated with the maximal eigenvalue of the Hessian in the paper's analysis. This stems from Assumption 6 that E[∥ξt∥2]≤ϵδ2/η\mathbb{E}[\|\xi_t\|^2] \le \epsilon\delta^2/\eta. Since the SGD update involves the multiplicative random operator (I−ηH+ηξ)(I - \eta H + \eta\xi), whose mean-square stability is governed by ∥E[(I−ηH+ηξ)⊗2]∥\|\mathbb{E}[(I - \eta H + \eta\xi)^{\otimes 2}]\| and is in general not determined by λmax⁡\lambda_{\max} alone — the noise covariance shifts the threshold across the whole spectrum, as made explicit in exact SGD stability analyses [1,2]. The present work avoids this by linearizing the dynamics into a deterministic multiplier (1+ηyt)(1 + \eta y_t) plus an additive scalar noise −ηζt-\eta\zeta_t (Lemma D.1), pushing the multiplicative/cross terms η2ζζ⊤\eta^2\zeta\zeta^\top and ζ\zeta–HH couplings into the O(Et)O(E_t) remainder. This is legitimate only under Assumption 6's bound η2E∥ξ∥2≤O(ϵδ2)\eta^2\mathbb{E}\|\xi\|^2 \le O(\epsilon\delta^2), i.e., per-step injected noise energy ≪\ll the oscillation scale δ2\delta^2.
  • I appreciate this paper for its theoretical attempt at generalizing the definition of EoS from full-batch GD to SGD. I also appreciate the idea of deriving the closed form for a critical learning rate, but the title "SGD at the Edge of Stability" might be an overclaim for the current submission and a little bit beyond the scope of this paper, since the discussion of the rigorous definition of EoS in stochastic training or large-scale observation of the EoS phenomenon is heavily lacking in this paper, which makes the paper less self-consistent and self-supportive. However, I value it as a good theoretical justification for the EoS phenomenon in stochastic training. Actually, concurrent work [1] has established a clear definition of EoS in large-scale training for SGD or other adaptive optimizers, and they introduce detection methods for EoS and observe EoS in LLM pretraining under their definition. It would be interesting and more consistent to see a discussion of this paper in relation to it. Also, as I said above, this paper considers a small-noise regime, while [1] reported that when the training batch is smaller than some threshold, EoS would not happen at all.
  • The closed-form gap can't really be verified quantitatively, because α\alpha isn't measurable at the right point. The authors acknowledge (H.6, Table 2) that at the oscillating SGD iterate α=−⟨∇L,∇S⟩\alpha = -\langle\nabla L, \nabla S\rangle is frequently negative (Fig. 7D, CoV ≈1.5\approx 1.5), whereas the theory needs α>0\alpha > 0 on the PGD reference trajectory. So the denominator of ΔS=ηβσu2/(4α)\Delta S = \eta\beta\sigma_u^2/(4\alpha) is neither "frozen" nor cleanly measurable in practice, and the authors sensibly retreat to verifying scaling only. That's a reasonable fallback, but it means the quantitative prediction is essentially untested. The honesty is appreciated; the limitation is real and should be foregrounded rather than left in the appendix.
  • Also, empirically, the exponents reported for the same setup are inconsistent and never reconciled. For the same FC-Tanh + MSE, η=0.01\eta = 0.01 setting, ΔS∝b−1.27\Delta S \propto b^{-1.27} (Fig. 1, R2=0.98R^2 = 0.98), Fig. 6A caption says −1.24-1.24, and H.9.3 / Table 3 / Fig. 13 report −1.51-1.51. These differ substantially — likely because the batch range and number of points differ, since the tiny ΔS\Delta S at large bb steepens the fit, but the paper never explains it. This directly undercuts the "good agreement with −1-1" framing: if the fuller 11-point fit is −1.51-1.51, that is not close to −1-1. Please unify the reported number and explain the discrepancy.

minor errors

  • Appendix F, L607–608: the y^t+1\hat{y}_{t+1} update is written with "(δ−E[x^t2])(\delta - \mathbb{E}[\hat{x}_t^2])"; per Lemma 4.6 Eq. (17) and Eq. (34) it should be "(δ2−E[x^t2])(\delta^2 - \mathbb{E}[\hat{x}_t^2])". The missing square doesn't affect the final result but is wrong as written.
  • Appendix F, L608: "E[x^t+1]=E[((1+ηy^t)x^t−(η/2)κx^t2−ηζt)2]\mathbb{E}[\hat{x}_{t+1}] = \mathbb{E}[((1 + \eta\hat{y}_t)\hat{x}_t - (\eta/2)\kappa\hat{x}_t^2 - \eta\zeta_t)^2]" — the x^\hat{x} update (Eq. 16) carries no outer square; the squaring looks like a typo.
  • Appendix E, L567: "E[G0(1)]\mathbb{E}[G^{(1)}_0]" appears twice; the second should be G0(2)G^{(2)}_0.
  • Appendix C, L463: "=Put+1∏Atv^0⊥= P_{u_{t+1}} \prod A_t \hat{v}^\perp_0" is missing the orthogonal-projection superscript P⊥P^\perp, and AtA_t should be AkA_k.
  • L571–572: the exponent of MM in the C3C_3 term is inconsistent between lines (M3ϵδ2M^3\epsilon\delta^2 vs. Mϵδ2M\epsilon\delta^2).

[1] https://openreview.net/pdf?id=QSb05IuPsy

[2] https://arxiv.org/abs/2306.07850

Questions

typos

  • L155–156: "here we use a fixed reference θ⋆\theta^\star and ignores" → subject is we, should be ignore.
  • L245: "an oscillation cased by the instability term" → caused.
  • L250: "we need make certain simplification" → "need to make certain simplifications".
  • L284: "The sharpness gap in Theorem 2 can shown to scale as 1/b1/b" → "can be shown".
  • L339 and Fig. 3 caption: "a difference σu2\sigma_u^2 value" / "for difference choice of σu\sigma_u" → different choices.
Limitations
  • A thorough theoretical understanding of EoS is still lacking, for example, how to rigorously track the trajectory for both the progressive-sharpening phase and the EoS phase; how to explain that when using a small batch size, the typical EoS phenomenon would not appear as reported in [1], and the neural network training might be in a stable regime.
  • The current analysis might be hard to generalize to adaptive gradient methods with momentum such as Adam, which is more practically used in current LLM training.
Formatting concerns

N/A

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the detailed and technically precise review. We respond to each point you raised below.

Small noise regime (W1). We agree with the reviewer that the mean-square stability of SGD is governed by how the noise perturbs the whole eigenvalue spectrum of the Hessian. While there has been several works that studies the more broad stability condition of SGD, we treat our work as a zoomed-in study of why SGD somehow suppressed the sharpness at EoS in a training dynamic perspective. We admit that our analysis is confined to the behavior of λmax⁡\lambda_{\max} and thus requires the assumption that the noise is small enough to maintain the eigengap. Yet it should be noted that the dynamic of the eigenvalues will get significantly more complicated once different eigenvalues are mixed together, and we respectfully leave this analysis as a future step. We will make sure to state the limitation, discuss the our work's relationship with the paper that the reviewer point to, and clarify that our work does not explain all behaviors of SGD at EoS (see next paragraph).

Scope of the paper and the title (W2). We thank the reviewer for pointing out the naming problem of our paper. We agree that our analysis does not capture all the behaviors of SGD, but rather focus specifically on the training dynamic perspective of how SGD suppress the sharpness at EoS. While our analysis is restricted to the regime where the noise is small enough to roughly preserve the eigengap, it is actually compatible with the argument that when the noise is large, the EoS dynamic will be disturbed and does not occur. We will narrow the title and claims to the small-noise / self-stabilization regime and add a discussion of the papers studying the more general behaviors of SGD.

Measurability of α\alpha and quantitative testability of the closed form (W3). We agree the instantaneous α\alpha at the SGD iterate is not the theory's α\alpha, and we will move this caveat from Appendix H.6 and footnote 2 into the main text. However, we would like to note that the landscape quantities in Theorems 1-4 are defined along the PGD reference trajectory (including the condition that αt>0\alpha_t > 0), so these quantities should be independent of the batch size. Moreover, in Appendix H.9.1 we tests the closed form directly in a setting where the reference trajectory is full-batch GD, explicitly free of the oscillation-induced sign flips, and we inject controlled noise ζt u(θt)\zeta_t\,u(\theta_t) into full-batch GD. We observe that the predicted and measured gaps agree with ratio. We will promote H.9.1 to the main text as the quantitative validation and present the batch-size sweep as validating scaling only. Of course, directly measuring the causal relationship between a group of coupled quantities is hard. However, we believe that the combination of this additional experiment and the fitted scaling curve helps to support better the quantitative prediction given by our theory.

Unifying the fitted exponents (W4). We agree with the current writing's ambiguity on explanation of inconsistent the fitted exponent in the log-log plot. Indeed we believe that the deviation of Figure 2 is due to the significant contribution of the inaccurate small ΔS\Delta S and large batch size point in the log-log plot (the relationship between batch size and the gradient variance has been widely agreed by previous literature). For the −1.27-1.27 slope in Figure 1, we conducted a more comprehensive of the discrepancy in Appendix H.9.3, where Figure 13 refits over all 11 batch sizes with a robust seed-median, time-averaged protocol, giving −1.51-1.51. Appendix H.9.3 provides an accounting of the deviation from −1-1: −1-1 is only the frozen-coefficient leading order; propagating the measured batch dependence of the landscape quantities through Eq.(48) predicts a slope of −1.460-1.460 versus the measured −1.510-1.510 (residual −0.05-0.05. The defensible claim, which we will make explicitly, is that the theory matches once the bb-dependence of its own coefficients is accounted for, while the leading-order slope alone under-predicts the steepness. We do agree that −1.51-1.51 is not close to −1-1, and we will remove the "good agreement with the theoretical prediction slope of −1-1" framing from Section 5.1.

Corrections and revisions. We thank the reviewer for pointing out the typos. We will make sure to have these fixed in the updated version.

Reviewer b7Vs · CommentOpenReview ↗

Thank you for your rebuttal. I choose to maintain a bottleline accept score considering the theoretical contribution of this paper. In general, I recommend more discussion of the limitations of this paper and of the papers studying the more general behaviors of SGD.

Authors · CommentOpenReview ↗

Thank you for your suggestion to discuss more about the limitation of the paper and how it relates to the general SGD behaviors. We will include the discussion in the updated version. Thank you for recommending the paper towards acceptance.

Comments on the paper

2 comments
Authors · CommentOpenReview ↗

Engaging in discussion

Dear Reviewers,

We have now replied to each review in detail. Since the discussion window closes on August 3 — after which we can no longer see or respond to comments — we are writing to invite discussion while there is still time for us to act on it.

We would genuinely value hearing from you, even briefly. In particular:

  • If our response did not convince you, saying so is the most useful thing you can tell us. It shows us exactly what the paper still fails to communicate.
  • If a specific experiment, control, or analysis would change your assessment, please name it. There is still some time to run it, and we would rather spend the remaining days on what matters to you than on what we guessed matters.
  • If we misunderstood your concern, we would much rather learn that now than leave the misunderstanding standing.

We are equally glad to discuss points where we disagree with a review. We have tried to answer directly rather than defensively, and we are open to being shown wrong.

Thank you for the work you have already put in. Reviewing takes real time, and we are grateful for it.

Authors

Authors · CommentOpenReview ↗

Closing Note on the Discussion

Dear Reviewers and Area Chair,

As the discussion window closes, we wanted to send a brief note to say that we have heard the reviewers, and we believe our responses address the concerns raised — in most cases by changing the paper rather than by defending it.

Three themes ran across the reviews, and we agree with all three. We will restructure Sections 3 and 4 to separate cleanly what is inherited from Damian et al. (2023) from what is new, and state our technical contribution explicitly rather than leaving it implicit. We will narrow the title and claims to the small-noise self-stabilization regime the analysis actually covers, add discussion of the broader work on stochastic stability, and expand the limitations. And we will move the α-measurability caveat and the direct quantitative validation (Appendix H.9.1) into the main text, present the batch-size sweep as validating scaling only, and remove the “good agreement with the theoretical prediction slope of −1” framing from Section 5.1; that claim was not defensible, and the corrected accounting appears in Appendix H.9.3.

Thank you for the care you put into these reviews.

The Authors

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…