potentialpaper

Generalization at the Edge of Stability

Mario Tuci, Caner Korkmaz, Umut Simsekli, Tolga Birdal

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.

TL;DR. Deep networks trained at the edge of stability do not converge to a point but to a low-dimensional attractor. We introduce Sharpness Dimension (SD) as a complexity measure to bound its generalization error.

Abstract. Training modern neural networks often relies on large learning rates, operating at the edge of stability, where the optimization dynamics exhibit oscillatory and chaotic behaviour. Empirically, this regime often yields improved generalization performance, yet the underlying mechanism remains poorly understood. In this work, we represent stochastic optimizers as random dynamical systems, which often converge to a fractal attractor set (rather than a point) with a smaller intrinsic dimension. Building on this connection and inspired by Lyapunov dimension theory, we introduce a novel notion of dimension, coined the `sharpness dimension', and prove a generalization bound based on this dimension. Our results show that generalization in the chaotic regime depends on the complete Hessian spectrum and the structure of its partial determinants, highlighting a complexity that cannot be captured by the trace or spectral norm considered in prior work. Experiments across various MLPs and transformers validate our theory while also providing new insights into the recently observed phenomenon of grokking.

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
29 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

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

This paper studies the generalization of edge of stability under constant step-size SGD. It models it as a discrete-time random dynamical system that often converges to a fractal attractor set. The authors define sharpness dimension based on the generalization bound from algorithm stability.

The main strengths of this paper is to derive the generalization guarantees under EoS. The weakness includes 1) how tight is the proposed sharpness dimension (as mentioned by one reviewer); 2) more justifications are needed for assumptions; 3) more discussion with previous work.

I hope the authors can address them during the rebuttal.

Besides, SGD with small batch size will not incur EoS, which has been discussed recently. So this analysis or discussion under this framework is also needed.

Final justification

After the discussion between the reviewers and authors, most of the reviewers vote for acceptance except Reviewer tpP1 that even lower the score.

The authors exchanged their ideas/responses with Reviewer tpP1 in several rounds. There are two main issues the reviewer concerns:

  • whether the speration between GD and SGD should be considered into this paper. If this separation is not considered, what is the meaningful results left?

  • The existence of j∗<dj^*<d. This relates to whether the bound w.r.t. RSD is tight or not.

The AC also checked the rebuttal and read the paper again. I agree with the authors that deriving the full mechanism responsible for this crossing need not be a prerequisite for the present contribution. However, I do not think this fully resolves the main concern raised by the reviewer. The current theory establishes a conditional connection from an assumed RDS spectral structure to attractor complexity and generalization. In particular, the nontrivial dimensional reduction relies on the transition-index condition, together with the existence of a compact random attractor and additional regularity/bounded-distortion assumptions. The rebuttal does not establish that these conditions follow from, or are characteristic of, EoS/EoSS training.

In fact, I view the theoretical contribution as narrower than the paper’s central framing suggests: it shows that given an appropriate random attractor and spectral crossing, the full spectrum controls a meaningful complexity measure and corresponding generalization bound, rather than establishing that EoS/EoSS itself induces this structure. Some claims of the paper should be rewritten. For example, “Our results identify EoS as precisely the regime where generalization is controlled by a provably lower-dimensional attractor.” This can not be fully explained actually that requires the assumption.

Based on this, I recommend to accept this paper but strongly suggest the authors to carefully narrow the scope and contribution of this work.

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

This paper studies the generalization of edge of stability under constant step-size SGD. It models it as a discrete-time random dynamical system that often converges to a fractal attractor set. The authors define sharpness dimension based on the generalization bound from algorithm stability.

The main strengths of this paper is to derive the generalization guarantees under EoS. The weakness includes 1) how tight is the proposed sharpness dimension (as mentioned by one reviewer); 2) more justifications are needed for assumptions; 3) more discussion with previous work.

I hope the authors can address them during the rebuttal.

Besides, SGD with small batch size will not incur EoS, which has been discussed recently. So this analysis or discussion under this framework is also needed.

Final justification

After the discussion between the reviewers and authors, most of the reviewers vote for acceptance except Reviewer tpP1 that even lower the score.

The authors exchanged their ideas/responses with Reviewer tpP1 in several rounds. There are two main issues the reviewer concerns:

  • whether the speration between GD and SGD should be considered into this paper. If this separation is not considered, what is the meaningful results left?

  • The existence of j∗<dj^*<d. This relates to whether the bound w.r.t. RSD is tight or not.

The AC also checked the rebuttal and read the paper again. I agree with the authors that deriving the full mechanism responsible for this crossing need not be a prerequisite for the present contribution. However, I do not think this fully resolves the main concern raised by the reviewer. The current theory establishes a conditional connection from an assumed RDS spectral structure to attractor complexity and generalization. In particular, the nontrivial dimensional reduction relies on the transition-index condition, together with the existence of a compact random attractor and additional regularity/bounded-distortion assumptions. The rebuttal does not establish that these conditions follow from, or are characteristic of, EoS/EoSS training.

In fact, I view the theoretical contribution as narrower than the paper’s central framing suggests: it shows that given an appropriate random attractor and spectral crossing, the full spectrum controls a meaningful complexity measure and corresponding generalization bound, rather than establishing that EoS/EoSS itself induces this structure. Some claims of the paper should be rewritten. For example, “Our results identify EoS as precisely the regime where generalization is controlled by a provably lower-dimensional attractor.” This can not be fully explained actually that requires the assumption.

Based on this, I recommend to accept this paper but strongly suggest the authors to carefully narrow the scope and contribution of this work.

1 comment
Authors · CommentOpenReview ↗

We sincerely thank the Area Chair for the time and care devoted to evaluating our work. We would like to state that we have now addressed all the concerns raised in the reviews. Below, we describe the corresponding revisions. We welcome any further questions or suggestions.

Scope of the framework

We deliberately chose constant-step size SGD as a concrete example to introduce our RDS formulation. Indeed, any iterative optimizers can be represented within our framework by augmenting the state with momentum, adaptive statistics, or learning-rate variables. Our results therefore apply more broadly to locally unstable training dynamics.

Tigthness of our bounds

We agree with Reviewer cTqS that correlation alone does not establish the tightness or non-vacuity of our bound. Our response addresses this in two ways. First, an existing lower bound in terms of Minkowski dimension shows that a geometric-complexity term is unavoidable in the generalization bound, as we discuss below in our response to Reviewer cTqS. Second, in natural examples, SD is indeed tight to the Minkowski dimension. We also clearly distinguish this geometric tightness from the separate evaluation of the information-theoretic term. Please see our response to Reviewer cTqS for a more detailed discussion.

Justification of our assumptions

We thank Reviewers cTqS and tpP1 for raising these questions. We have clarified both the theoretical role and the empirical plausibility of each assumption. In particular, we provide a revised proof of Theorem C.4 showing that exact bounded distortion, which was a source of confusion, need not be assumed, at the cost of an explicit error term.

We also show that empirical observations at EoS lead to a small error term. Thus, exact bounded distortion yields the cleanest statement but is not required and was indeed reasonable in the regime where our bounds hold. Please see our detailed responses to Reviewers cTqS and tpP1.

Discussion of previous work

We thank Reviewer tpP1 for bringing these papers to our attention. Reference [D] is particularly relevant, and we have added a discussion of it to the related-work section of the revised version of the paper. Please see our response to Reviewer tpP1 for a detailed comparison. However, to our knowledge, neither paper provides official code for direct comparison, and they are not 1-1 comparable to our method: Wu & Su (ICML 2023) focuses on stable minima, whereas our framework addresses the locally unstable EoS regime, where convergence to a minimum is not assumed. Liang et al. (ICLR 2026) focus on the interaction between data geometry and the implicit regularization induced below the EoS, whereas our framework studies local unstable dynamics in the EoS regime and how generalization can be explained in this regime.

SGD with small batch size

We thank the Area Chair for highlighting this point. Indeed, EoS was originally formulated for full-batch gradient descent, which is the deterministic special case of our RDS framework obtained when the metric dynamical system is trivial (see Dfn. 3.1). For small batch sizes, however, sharpness measured using the full-batch Hessian may remain below the threshold 2/η2/\eta [1]. In the full-batch setting, RDS sharpness recovers the standard notion of local instability at EoS. Small-batch SGD requires a different characterization because its update map changes with each sampled minibatch:

ϕ(1,ω,w):=w−η 1b∑i∈Ω(jt)∇wℓ(w,Zi),\phi(1,\omega,w) := w-\eta\,\frac{1}{b} \sum_{i\in \Omega^{(j^t)}} \nabla_w\ell(w,Z_i),

where Ω(jt)\Omega^{(j^t)} is a minibatch of size bb (see Eqn. 3). The corresponding Jacobian is

Dφ(1,ω,w)=I−η 1b∑i∈Ω(jt)∇w2ℓ(w,Zi)D\varphi(1,\omega,w) = I-\eta\,\frac{1}{b} \sum_{i\in \Omega^{(j^t)}} \nabla_w^2\ell(w,Z_i)

and is therefore minibatch-dependent. Consequently, RDS sharpness (see Dfn. 4.1) is determined by the minibatch Hessian rather than by the largest eigenvalue of the full-batch Hessian. Thus, local instability λ1>0\lambda_1 > 0 is in our setting driven by the mini-batch Hessian. This is consistent with the stochastic EoS phenomenon identified by Andreyev and Beneventano [C], in which sharpness is defined using the minibatch Hessian.

Our RDS formulation therefore unifies the two regimes and extends the notion of local instability to different optimization dynamics. It reduces to the classical full-batch EoS criterion for gradient descent and characterizes local instability in small-batch SGD through the Jacobian of the stochastic minibatch update.

[C] Andreyev, Arseniy, and Pierfrancesco Beneventano. “Edge of Stochastic Stability: Revisiting the Edge of Stability for SGD.” arXiv:2412.20553 (2024).

[D] Liang, Tongtong, et al. "Generalization Below the Edge of Stability: The Role of Data Geometry." arXiv preprint arXiv:2510.18120 (2025).

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

This paper proposes a random dynamical systems (RDS) framework for studying generalization at the edge of stability. The optimizer is viewed as generating a random attractor in parameter space. The core part is to use a Lyapunov style dimension to estimate the metric entropy of the optimizer-accessible parameter set via a novel notion called Sharpness Dimension (SD). This gives a bridge between optimization dynamics and classical capacity control (uniform convergence).

Strengths and weaknesses

Strengths

  1. It tries to connect edge-of-stability dynamics, sharpness, attractor geometry, and uniform-convergence-style generalization. The cutting point itself is novel.

  2. The empirical section is broad and carefully executed. The experiments cover small MLPs, larger MLPs, grokking, and GPT-style models. The detailed theoretical argument looks well-organized in the appendix.

Weakness

  1. The main assumptions seem to hide much of the mechanism. Compactness of the attractor, bounded distortion, and the volume-contraction transition are exactly the properties that make the entropy bound meaningful. However, I do not get a clear intuition for when these properties should hold in neural networks at the edge of stability, or how they are affected by data, architecture, optimizer, learning rate, batch noise, or regularization.

  2. The discussion on related work is incomplete. For example, the paper does not discuss related works on the stability-based generalization analysis, such as Su & Wu, ICML 2023 and Liang et al, ICLR 2026. In particular, I was surprised that the related work does not discuss the paper Generalization Below the Edge of Stability, given the similar title and scope.

Reference:

Questions
  1. The original EoS phenomenon is about full-batch GD, while the main framework here is stochastic and RDS-based. In the current presentation, EoS seems to mainly enter through the observation that crossing the 2/η2/\eta threshold creates an expanding direction of the update map. Is it the only connection? Could the authors clarify the precise connection between the framework here and the original EoS phenomenon? In particular, what changes in the full-batch GD case, where there is no algorithmic randomness? Does the attractor framework reduce to a deterministic attractor, a limit cycle, or something else? The connection to the self-stabilization behavior usually associated with EoS (e.g Damian et al, ICLR 2022)?

  2. Could the authors give more intuition for the main dynamical assumptions? What concrete factors make the compact-attractor, bounded-distortion, and volume-contraction assumptions more or less plausible? I would also appreciate guidance on how one should use the proposed SD in practice, beyond computing it as a post-hoc spectral statistic.

  3. Could the authors instantiate the framework in a simple model, such as linear regression or two-layer ReLU networks near/below EoS? The linear model seems to lead to a “trivial-or-fail” outcome. A two-layer ReLU example would be especially useful, since related works by Su and Wu and by Liang et al study stability and generalization in this setting. If the framework can explain something new there, this would significantly strengthen the paper. Since the authors propose a theoretical framework, I expect some non-trivial examples exhibit so that people can understand how to think with the proposed mindset.

Reference:

Limitations

The paper contains a short limitations paragraph, but it mainly discusses computational cost of estimating the full Hessian spectrum and possible future extensions. It does not discuss the main conceptual limitations of the theory, such as the strength and interpretation of the attractor/regularity assumptions, the gap between stochastic RDS and full-batch EoS.

Final justification

After the rebuttal and discussion, I am lowering my score to Reject. My main concerns remain unresolved.

1, the theoretical interface between EoS/EoSS and the proposed RDS framework is still unclear (this issue was also highlighted by AC in the first meta review). Repeatedly noting that full-batch GD is a deterministic special case of RDS does not establish the connection between stochastic-EoS quantities such as Batch Sharpness and RDS sharpness/SD, nor does it show what this “special case” distinction actually yields within the theory.

2, my concern about the assumptions remains. The nontrivial capacity reduction still relies on some blackbox assumptions encoding the relevant structure. Some rebuttal statements about whether the transition condition is required also appear inconsistent with the submitted theorem. I also do not think the concerns raised by reviewer cTqs regarding attractor existence and the remaining regularity assumptions were fully resolved.

3, the discussion made the actual scope of the contribution substantially narrower than I initially understood. The authors now explicitly leave the formation of the relevant spectral structure to future work. Thus, the current contribution is mainly a downstream geometric connection from an assumed dynamical structure to complexity/generalization (modulo 1 and 2, the significance of this contribution is doubtful). The related-work discussion similarly emphasizes greater generality over more specific existing analyses, but no concrete analysis is provided to demonstrate what additional insight this general framework delivers.

For these reasons, the rebuttal did not resolve my concerns.

Formatting concerns

No

7 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their time invested in our submission. We believe we have addressed all the raised concerns. If the reviewer is satisfied with the answers, we kindly ask them to reconsider their score.

Assumptions

We thank the reviewer for this question; for a detailed treatment, we refer to our response to Reviewer cTqS. In brief, we (i) identify the mechanisms and standard assumptions under which compactness of the attractor is guaranteed, (ii) verify the volume-contraction condition empirically, and (iii) show that the bounded-distortion assumption is not required to obtain a generalization bound in terms of our Sharpness Dimension.

Dependence on the training configuration (effects of data, architecture, optimizer, learning rate, batch noise, or regularization)

These factors enter through the derivative cocycle and the random attractor: The data and architecture determine the loss geometry. The optimizer and learning rate determine the update Jacobian and its stability threshold. Minibatch sampling supplies the stochastic driving process. Regularization can change both confinement and the spectrum. Consequently, the attractor depends on the entire training configuration. Deriving a closed-form dependence for modern networks is notoriously hard and is beyond the scope of the present paper. Our experiments (see Figures 3, 4 and 5) measure this dependence through the resulting spectrum.

Related work

We thank the reviewer for highlighting these works, which we now discuss and add to the related-work section. Wu and Su (ICML 2023) relate the dynamical stability of SGD to the trace and Frobenius norm of the empirical Fisher matrix; in particular, Proposition 3.2 shows that a linearly stable interpolating minimum satisfies Tr⁡G(θ∗)≤2/η\operatorname{Tr}G(\theta^*)\leq 2/\eta. Their analysis focuses on stable minima, whereas our framework addresses the locally unstable EoS regime, where convergence to a minimum is not assumed. We instead study the attractor and relate its geometry to generalization. The two approaches are therefore complementary.

Liang et al. (ICLR 2026) investigate how data geometry affects generalization by considering concrete, structured data models. Their approach is complementary to ours: whereas Liang et al. focus on the interaction between data geometry and the implicit regularization induced, our work studies local unstable dynamics and how generalization can be explained in this regime. We have revised the manuscript to clarify both the relevance of their results and the distinction. Extending the two-layer experiments from these works to this EoS regime would be valuable as future work. However, a controlled comparison was not feasible during the rebuttal period since, to our knowledge, their official code is not publicly available.

Connection to EoS

The primary connection between EoS and our framework is indeed local instability, which occurs in full-batch GD when the leading Hessian eigenvalue crosses 2/η2/\eta. However, this is not the only connection, as explained in our response concerning self-stabilization.

Full-batch gradient descent

Full-batch GD is the deterministic special case of the RDS, obtained when the driving process is trivial. The random attractor then reduces to a classical deterministic attractor. Depending on the dynamics, this attractor may be a fixed point, a limit cycle, or a more complicated invariant set.

Self-stabilization

Self-stabilization supplies negative feedback: growth in the sharp direction changes the local geometry so that sharpness remains near the threshold 2/η2/\eta instead of increasing unboundedly. Thus it plays a direct role in the tightness of the bound, see our new result on bounded distortion and our response to Reviewer cTqS (Justifications of assumptions, Item 3).

Practical plausibility of the assumptions

We provided detailed information about our assumptions in our response to Reviewer cTqS. We kindly refer you to that response due to space constraints.

Practical use of SD

The immediate use of SD is diagnostic: it summarizes the effective dimension selected by a given training configuration and enables comparisons across configurations without access to test labels. More broadly, our theoretical objective is to provide a mathematically grounded understanding of generalization that can inform optimizer and training-procedure design. Potential applications include model and hyperparameter selection based only on training-only estimates (without validation data). Another promising direction is to penalize SD during training, analogously to regularization based on persistent-homology dimension [15]. We leave these for a future study.

A simple instantiation

Indeed, a linear model captures the stability threshold but not a non-trivial post-threshold EoS regime. Its Hessian is constant, so once ηλmax⁡>2\eta\lambda_{\max}>2, the corresponding component grows geometrically. There is no change in curvature that could return the iterate to a stable region. The trajectory therefore diverges rather than self-stabilizes, hence it would not serve as a good example for illustration.

As mentioned in our discussion of the assumptions, several classical conditions, known to hold for certain neural networks, are sufficient for our theory. However, explicitly computing our dimension for a particular neural-network setting is highly nontrivial because our bounds depend on the data. A rigorous analysis in a concrete setting would likely require a separate article. Nevertheless, we would be happy to provide further informal intuition if helpful.

We agree that a comparison with Wu and Su (ICML 2023) would be valuable. However, to our knowledge, public code is unavailable, and some training hyperparameters needed for exact reproducibility are not specified, making a direct comparison difficult.

Limitations discussion

We have expanded the limitations section to state the theoretical assumptions and their scope more clearly. We also emphasize that there is no conceptual gap between the RDS framework and full-batch gradient descent: full-batch GD is the deterministic special case obtained when the driving process is trivial. For minibatch SGD, the update map and its Jacobian depend on the sampled minibatch, giving a genuinely random dynamical system. Accordingly, RDS sharpness extends the classical full-batch sharpness criterion to stochastic optimization. This is consistent with stochastic EoS results for SGD [C], where the relevant sharpness is defined through the minibatch Hessian, i.e., the quantity captured directly by the Jacobian of our stochastic RDS update.

[C] Andreyev, Arseniy, and Pierfrancesco Beneventano. “Edge of Stochastic Stability: Revisiting the Edge of Stability for SGD.” arXiv:2412.20553 (2024)

Reviewer tpP1 · CommentOpenReview ↗

Thanks for the response. After reading both the rebuttal and the official comment, I do not think the authors resolve my concerns.

  1. The distinction between GD and SGD is still mostly formal.
    Saying that full-batch GD is a deterministic special case of an RDS is true, but it does not explain what stochasticity actually changes. If the RDS framework captures the effect of stochasticity on generalization, the authors should identify what changes when moving from GD to SGD. If it predicts no substantive difference, then it is unclear what the stochastic RDS formulation adds beyond a formal rewriting of the optimization algorithm.

    The stochastic-EoS reference does not close this gap. That work introduces a specific minibatch-dependent stability quantity, whereas this paper uses the full singular spectrum of a one-step stochastic Jacobian. The response does not derive a relation between these objects. More broadly, long-term stochastic stability depends on products of random Jacobians, including their noncommutativity and alignment across minibatches. It is unclear why averaging one-step singular spectra captures the relevant stochastic mechanism.

    If stochastic EoS is essential for connecting the framework to SGD, this distinction should be part of the main development rather than only a brief remark in related work. At least a detailed discussion should be presented to clarify the set-up.

  2. The assumptions still hide the main learning-theoretic mechanism.
    The assumptions already encode confinement, effective volume contraction, and sufficient uniformity of the dynamics to control the entropy of the attractor. The paper then translates this assumed low-complexity geometry into SD and applies an existing random-set generalization bound. In my opinion, the learning-specific mechanism remains entirely inside the assumptions.

A concrete example is the transition-index assumption. The authors assume that there exists j∗j^{*} such that ∑i=1j∗λi≥0\sum_{i=1}^{j^{*}}\lambda_i \ge 0 but ∑i=1j∗+1λi<0\sum_{i=1}^{j^{*}+1}\lambda_i < 0. This already assumes that volume growth becomes contractive beyond roughly j∗j^* dimensions. In other words, the key capacity-reducing phenomenon (i.e. the dynamics effectively occupying fewer than dd dimensions) is already built into the assumptions. Once compactness and sufficient uniformity over the attractor are also assumed, it is natural that the attractor has controlled metric entropy. The theorem then packages this crossing into SD and transfers it to a Minkowski-dimension bound. It does not explain what/why/how neural network training should produce this crossing. This is the mechanism I would expect the theory to reveal. The paper also gives no nontrivial concrete model in which this mechanism can be derived and interpreted. I therefore still view the theory as mapping one high-level black box to another. This is either a serious clarity issue or a significance issue.

This contrasts with Wu and Su, who show how GD and SGD induce different stability constraints and therefore different regularizers and complexity controls. Liang et al. show how input geometry changes stability-induced regularity and generalization. These theories expose a mechanism and make concrete predictions. Here, the relevant dependence on the learning problem remains implicit in the attractor assumptions.

  1. The response about unavailable code misses the point.
    My request was for a theoretical comparison with Wu and Su and Liang et al., not for an experimental reproduction. Public code is irrelevant to comparing the assumptions, stability notions, implicit regularization mechanisms, and generalization conclusions of the different theories.

For these reasons, the rebuttal has not improved my assessment of the paper’s theoretical significance or scientific clarity. On the contrary, it has made the gap between the formal RDS framework and an actual explanation of SGD generalization more apparent, and I am inclined to lower my score.

Authors · CommentOpenReview ↗

We thank the reviewer for the detailed feedback and for further clarifying the questions. In light of these, we hope that our responses address all the concerns raised.

1. The distinction between GD and SGD is still mostly formal.

We confirm that the RDS framework indeed captures the effect of stochasticity on generalization and let us further clarify this point. We emphasize that the distinction between GD and SGD is not merely that SGD is represented as an RDS. Depending on which optimization algorithm we choose (eg GD or SGD), the one-step Jacobian, the RDS-sharpness spectrum, the transition index, and consequently the Sharpness Dimension and the generalization bound all change.

Let us make this more precise for the case of GD and SGD. Recall that the RDS Sharpness of order kk is

λk:=Eω[sup⁡w∈AS(ω)log⁡σk(Dwϕ(1ω,w))],\lambda_k := \mathbb{E}_{\omega} \left[ \sup_{w\in\mathcal{A}_S(\omega)} \log \sigma_k \left( D_w\phi(1 \omega,w) \right) \right],

where σ1(J)≥⋯≥σd(J)\sigma_1(J)\geq\cdots\geq\sigma_d(J) are the ordered singular values of JJ. For full-batch GD, the one-step update is given by

ϕGD(1,w)=w−η∇R^S(w),\phi^{GD}(1,w) = w-\eta\nabla \hat{R}_S(w),

and its Jacobian is

DwϕkGD(1,w)=I−η∇2R^S(w).D_w\phi_{k}^{GD}(1,w) = I-\eta\nabla^2\widehat{R}_S(w).

Since GD is deterministic, the expectation can be dropped, and its RDS Sharpness of order k reduces to

λkGD=sup⁡w∈ASGDlog⁡σk(I−η∇2R^S(w)).\lambda_{k}^{GD} = \sup_{w\in\mathcal{A}_S^{\mathrm{GD}}}\log \sigma_k \left(I-\eta\nabla^2\widehat{R}_S(w) \right).

Note that in this case the main quantity of interest is the full-batch Hessian, which is again the main object in the deterministic EoS.

In the case of SGD, we need to deal with stochasticity. Let Ω(j)\Omega^{(j)} denote the minibatch indexed by jj, and define the minibatch empirical loss by

R^S,j(w):=1b∑i∈Ω(j)ℓ(w,Zi).\widehat{R}_{S,j}(w) := \frac{1}{b} \sum_{i\in\Omega^{(j)}} \ell(w,Z_i).

The one-step SGD map is given by

ϕ(1,ω,w)SGD=w−η∇R^S,j0(w),\phi(1,\omega,w)^{SGD} = w-\eta\nabla\hat{R}_{S,j_0}(w),

and its random Jacobian therefore defined by

Dwϕ(1,ω,w)SGD=I−η∇2R^S,j0(w).D_w\phi(1,\omega,w)^{SGD} = I-\eta\nabla^2\widehat{R}_{S,j_0}(w).

Therefore, the RDS Sharpness of order k is given by,

λkSGD=Eω[sup⁡w∈ASSGD(ω)log⁡σk(I−η∇2R^S,j0(w))].\lambda_k^{SGD} = \mathbb{E}_{\omega} \left[ \sup_{w\in\mathcal{A}_S^{\mathrm{SGD}}(\omega)} \log \sigma_k \left( I-\eta\nabla^2\widehat{R}_{S,j_0}(w)\right) \right].

Hence, the SGD spectrum depends on the minibatch distribution, the batch-dependent Hessians, and the random attractor generated by the minibatch sequence. Moreover, in general λkSGD≠λkGD\lambda_k^{SGD} \neq \lambda_k^{GD}, hence SD can be completely different for these two algorithms.

Coming back to the link between our theory for SGD and stochastic EoS. The definition of λkSGD\lambda_k^{SGD} makes it clear: as opposed to the GD case, now our main object of interest is the mini-batch Hessian, which is also the main object of stochastic EoS. Indeed, to be more precise, 'Batch Sharpness' implies λ1SGD>0\lambda_1^{SGD} >0 with positive probability and thus requires a learning theoretic framework that handles expanding directions. In other words, our framework naturally identifies the correct objects that pave the way for the appropriate notion of EoS once the algorithm update rule is specified. We owe this property to the use of the RDS framework, hence RDS is not just merely a notation, it is a flexible framework that can help identify all the important quantities automatically.

We thank the reviewer for bringing this up. We have now made this distinction very clear in the revision.

Regarding the comment It is unclear why averaging one-step singular spectra captures the relevant stochastic mechanism.:

The reviewer is completely right that the long-term behavior of a dynamical system is typically characterized by its Lyapunov exponents and, consequently, by products of random matrices. However, if we reconsider the definition of λk\lambda_k above, it is easy to notice that we are not only averaging one-step singular spectra, but we also first take supremum over the attractor set and subsequently average. The presence of the attractor set here ensures that the long term behavior of the system is incorporated in an implicit way, as the system will be in the attractor in the long term.

In summary, we are not taking the average of one step singular spectra arbitrarily. The average combined with the supremum compactly encapsulates the intricate properties of the RDS. Per the reviewer's suggestion, we have now made this point clear.

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

The paper bounds the generalization gap for neural-network training in the edge of stability regime (ie for large learning rates). To achieve this, the paper models stochastic optimization as random dynamical systems to facilitate understanding of the problem from the perspective of fractal attractor sets. From this, the paper introduces sharpness dimensions (related to the number of "unstable" eigenvalues) and then bounds the generalization gap in terms of the sharpness dimension. Experiments results are given on a range of networks to validate the theory.

Strengths and weaknesses

I find the underlying idea of the paper compelling. Given that network training typically occurs at the EoS, it makes perfect sense to characterize the performance of the network (in this case the generalization gap) using the tools of random dynamical systems and chaos theory. And as far as I understand them the results appear well-motivated and clear.

The main weakness with this paper is the sheer number of concepts required to approach the final result. I'm still not entirely clear what a pullback attractor is - I can read and understand definition 3.2 from a purely mathematical perspective (in fact the whole paper makes perfect mathematical sense), but the details of how this connects to actual neural networks is somewhat hazy (the general idea is ok, but the detail is hazy).

That said, at least to the extent that I can follow the argument, it appears compelling.

Questions

I'm sorry, I've got nothing.

Limitations

...

Final justification

I still do not feel confident in my judgement of this paper, but on balance, and based very much on the discussion between the author and other reviewers, I have chosen to leave my recommendation unchanged.

Formatting concerns

No issues.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their thoughtful and largely positive feedback. We would be happy to provide any further details or clarification if needed and remain available throughout the discussion period.

Accessibility of the final result

Indeed, the paper is mathematically dense due to the technical and theoretically rigorous nature of our work. We see this as a strength. We agree with the Reviewer that introducing more intuition can benefit the paper. We will use the additional space to provide more intuition, clarify the main assumptions, and make the presentation more accessible. We thank the reviewer for highlighting this point.

Connection between pullback attractors and neural networks

The pullback attractor describes the set of weight configurations that can remain after the effect of initialization/initial transient has faded. If deterministic training converges, this set may be a single fixed point. Near the edge of stability, it may instead be a cycle or a more complicated invariant set. With minibatch training, the asymptotic set can depend on the particular sequence of sampled minibatches, and thus different sequences may lead to different limiting sets of weights.

The word pullback refers to how the transient is removed: we fix a present training time, start trajectories progressively further in the past, and compare where they are at that same present time. The attractor's geometry therefore reflects the data, architecture, optimizer, and, in the stochastic case, the realized minibatch sequence. Its dimension measures the effective geometric complexity of the long-term training dynamics. For the existence of this object in neural networks, we refer to our response to Reviewer cTqS (Justification of the assumptions item 1).

Reviewer jDHE · CommentOpenReview ↗

Thank you for the response. On balance, and based very much on the discussion between the author and other reviewers, I have chosen to leave my recommendation unchanged.

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

This paper asks a different question from the usual EoS literature, that is, why generalization is still possible in the locally unstable, potentially chaotic regime where training operates. To this end, this paper formalizes a stochastic optimizer (e.g. constant-learning-rate SGD) as a discrete-time random dynamical system that often converges to a fractal attractor set. The authors then introduce the definition of Sharpness dimension, based on which the authors can derive a generalization bound. The main theoretical claim of this paper is that the generalization property of SGD at the edge of stability should considered with the full spectrum of Hessian instead of the trace or maximum eigenvalue alone.

Strengths and weaknesses

strength

  • The framing is genuinely new and well-motivated. Recasting late-stage SGD as an RDS and shifting the unit of analysis from a single solution to a random attractor is the right move once one accepts that the EoS regime does not converge to a point
  • The empirical effort is substantial and honest about its scope. SD is computable at GPT-2 scale, and across optimizers (SGD, momentum, AdamW) the SD variants are the most consistent predictors, while classical sharpness fails (even anti-correlating under AdamW). The grokking analysis, where SD tracks the phase transition without needing the trajectory, is a nice illustration.

weakness

  • There is a gap between what is proven and what is measured. The theory concerns box-counting dimension and a worst-case gap; the experiments report Kendall correlation between SD and the gap. Strong correlation supports "SD is a good predictor" but says nothing about whether the dim⁡S/n\sqrt{\dim_S/n} bound is tight or even informative. A demonstration that the bound is non-vacuous on at least one tractable setting would strengthen the paper considerably.
  • Some assumptions seem unverifiable to me . The dimension bound rests on Assumption B.3 / the conditions of Thm. C.4: non-singularity of the Jacobian on the attractor σd>0\sigma_d > 0 and, more importantly, a bounded-distortion condition requiring the spatial variation of jjvolume growth over the attractor to be subexponential in mm. This is what lets the proof squeeze sup⁡\sup against inf⁡\inf and identify the limit, yet it is a strong hypothesis that is essentially impossible to verify for a real network. The whole dim⁡M≤dim⁡S\dim_M \le \dim_S chain leans on it, so it should be stated and discussed far more prominently, ideally with a sufficient condition or a check on a small system where it can be inspected.
  • Also, the existence of the object is assumed, not earned, in the regime of interest. Prop. 4.3 requires a pullback-absorbing set (global dissipativity) for the attractor to exist, but the core EoS hallmark λ1>0\lambda_1 > 0 is local instability. Here Local instability and global dissipativity is asserted rather than established for general networks.
Questions

Does the pullback random attractor provably exist (pullback-absorbing set) for the networks used in the experiments, or only for the tanh case cited? How sensitive are the SD estimates to the choice of SLQ hyperparameters (bandwidth, number of probes, binning), given λj∗+1\lambda_{j^*+1} in the denominator?

Limitations

see weakness and question

Formatting concerns

N/A

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the time devoted to evaluating our paper and for the positive feedback. Below, we address each question in turn.

Justification of the assumptions We welcome any further questions about the remaining assumptions or details of our responses.

  1. Existence and compactness of the attractor (Assumption B.3)

Proposition 4.3 guarantees a compact random attractor whenever a bounded pullback-absorbing set exists. This is weaker than assuming that the dynamics are globally contractive. Several standard mechanisms provide a bounded absorbing set. Bounded activations are one sufficient condition, as shown in [45]. Global dissipativity is another sufficient condition and is assumed in prior work [19,75]. For a concrete ReLU example, Akiyama, S. et al. [A, Lemma E.3] verify a dissipativity inequality for their regularized two-layer teacher--student objective. This is evidence that the condition can be proved in a neural-network setting. Although several sufficient conditions for existence have been established in prior work, verifying them for the large-scale architectures used in our experiments remains theoretically challenging.

  1. Volume Contraction (Assumption B.3.3)

Volume contraction is equivalent to ∑i=1dλi<0\sum_{i=1}^{d}\lambda_i<0: contraction along the stable directions dominates expansion along the unstable directions, causing dd-dimensional volume elements to shrink under the training dynamics. We verify this condition empirically, the spectra reported in Appendix Figure 8 have negative total sums, which is also reflected by the resulting values of SD lying strictly between 00 and dd.

  1. Bounded Distortion (Assumption B.3.4)

We revise the proof of Theorem C.4 to remove the bounded-distortion assumption: under existing conditions, yielding an explicit small additive correction. We provide the proof as follows. We are happy to provide further details if needed.

Without Bounded Distortion. Let us recall some notion of the proof of Theorem C.4. Indeed, the only modification spans from Eqn. 66 to 68.

Ωj(m):=sup⁡x∈AS(ω)log⁡∥DϕS(m,ω,x)∥j,Ω^j(m):=inf⁡x∈AS(ω)log⁡∥DϕS(m,ω,x)∥j,\Omega_j^{(m)} := \sup_{x\in A_S(\omega)} \log\left\lVert D\phi_S(m,\omega,x)\right\rVert_j, \qquad \widehat\Omega_j^{(m)} := \inf_{x\in A_S(\omega)} \log\left\lVert D\phi_S(m,\omega,x)\right\rVert_j,

and let

Λj:=lim⁡m→∞Ωj(m)m,ℓ:=jΛ∗:=max⁡{j:Λj≥0}.\Lambda_j := \lim_{m\to\infty} \frac{\Omega_j^{(m)}}{m}, \qquad \ell := j_\Lambda^* := \max\{j:\Lambda_j\geq0\}.

For the one-step map, define

Uj(ω):=sup⁡x∈AS(ω)∥DϕS(1,ω,x)∥j,βj(ω):=inf⁡x∈AS(ω)∏i=d−j+1dσi(DϕS(1,ω,x)).U_j(\omega) := \sup_{x\in A_S(\omega)} \left\lVert D\phi_S(1,\omega,x)\right\rVert_j, \qquad \beta_j(\omega) := \inf_{x\in A_S(\omega)} \prod_{i=d-j+1}^{d} \sigma_i\left(D\phi_S(1,\omega,x)\right).

Compactness and non-singularity imply 0<βj(ω)≤Uj(ω)<∞ almost surely.0<\beta_j(\omega)\leq U_j(\omega)<\infty \ \text{almost surely}.

For xk=ϕS(k,ω,x)x_k=\phi_S(k,\omega,x), the chain rule, submultiplicativity of maximal jj-volume expansion, and supermultiplicativity of minimal jj-volume expansion give

∏k=0m−1βj(θkω)≤∥DϕS(m,ω,x)∥j≤∏k=0m−1Uj(θkω).\prod_{k=0}^{m-1}\beta_j(\theta^k\omega) \leq\left\lVert D\phi_S(m,\omega,x)\right\rVert_j\leq\prod_{k=0}^{m-1}U_j(\theta^k\omega).

Therefore, under the stated ergodicity and integrability conditions, Birkhoff's theorem yields

lim sup⁡m→∞Ωj(m)−Ω^j(m)m≤εj,εj:=∫Ωlog⁡Uj(ω)βj(ω) dP(ω).\limsup_{m\to\infty}\frac{\Omega_j^{(m)}-\widehat\Omega_j^{(m)}}{m}\leq\varepsilon_j,\qquad\varepsilon_j := \int_\Omega \log\frac{U_j(\omega)}{\beta_j(\omega)}\,d\mathbb P(\omega).

Thus, exact bounded distortion is replaced by the finite residual εj\varepsilon_j.

Applying this estimate only at the transition index j=ℓj=\ell, define qΛ:=Λℓ−Λℓ+1>0.q_\Lambda := \Lambda_\ell-\Lambda_{\ell+1} > 0.

Equation (66) gives Ωℓ+1(m)−Ωℓ(m)≤λℓ+1(m)≤Ωℓ+1(m)−Ω^ℓ(m).\Omega_{\ell+1}^{(m)}-\Omega_\ell^{(m)}\leq\lambda_{\ell+1}^{(m)}\leq\Omega_{\ell+1}^{(m)}-\widehat\Omega_\ell^{(m)}. Consequently,

−qΛ≤lim inf⁡m→∞λℓ+1(m)m≤lim sup⁡m→∞λℓ+1(m)m≤−qΛ+εℓ.-q_\Lambda\leq\liminf_{m\to\infty}\frac{\lambda_{\ell+1}^{(m)}}{m}\leq\limsup_{m\to\infty}\frac{\lambda_{\ell+1}^{(m)}}{m}\leq -q_\Lambda+\varepsilon_\ell.

For εℓ<qΛ\varepsilon_\ell<q_\Lambda, similar steps lead to

dim⁡‾MAS(ω)≤SD+εℓqΛ−εℓ.\overline{\dim}_M A_S(\omega)\leq\mathrm{SD} +\frac{\varepsilon_\ell}{q_\Lambda-\varepsilon_\ell}.

Conclusion. Exact bounded distortion is not required to relate SD to the Minkowski dimension, although the bound may become vacuous for a large residual εl\varepsilon_l. We show why bounded distortion is natural at EoS and why the residual is small.

Small residual. Two features commonly observed at EoS suggest that the distortion residual is small: self-stabilization keeps the leading Hessian eigenvalue close to the threshold 2/η2/\eta [B], while the remaining Hessian spectrum forms a bulk near zero [E] (see also Appendix Figure 8).

Let $H(x):=\nabla^2\widehat R_S(x) $ and denote its eigenvalues by μi(x)\mu_i(x). For clarity, consider the regime in which H(x)H(x) has a single leading outlier μsh(x)\mu_{\mathrm{sh}}(x). We say that this eigenvalue is uniformly pinned to the EoS threshold with half-width δ\delta if

∣μsh(x)−2η∣≤δfor every x∈AS.\left|\mu_{\mathrm{sh}}(x)-\frac{2}{\eta}\right|\leq\delta\qquad\text{for every }x\in A_S.

Assume also that every remaining eigenvalue lies in a narrow band around zero:

∣ημi(x)∣≤κfor every i≠sh and x∈AS.|\eta\mu_i(x)|\leq\kappa\qquad\text{for every }i\neq\mathrm{sh}\text{ and }x\in A_S.

Here, δ\delta is the half-width of the sharpness band, so ηδ\eta\delta is its dimensionless width, while κ\kappa is the dimensionless half-width of the near-zero spectral bulk. Define γ:=max⁡{ηδ,κ}<1.\gamma:=\max\{\eta\delta,\kappa\}<1. Because R^S\widehat R_S is C2C^2, the Hessian H(x)H(x) is symmetric. Hence the singular values of the GD Jacobian DϕS(x)=I−ηH(x)D\phi_S(x)=I-\eta H(x) are the absolute update multipliers ∣1−ημi(x)∣|1-\eta\mu_i(x)|. The two spectral conditions therefore imply

1−γ≤σi(DϕS(x))≤1+γfor every i and x∈AS.1-\gamma\leq\sigma_i\left(D\phi_S(x)\right)\leq 1+\gamma\qquad\text{for every }i\text{ and }x\in A_S.

In the one-marginal-direction regime, ℓ=1\ell=1, and consequently U1≤1+γ, β1≥1−γ.U_1\leq1+\gamma, \ \beta_1\geq1-\gamma.

It follows that ε1=log⁡(U1/β1)≤log⁡((1+γ)/(1−γ))=2γ+O(γ3)\varepsilon_1=\log(U_1/\beta_1)\leq\log\bigl((1+\gamma)/(1-\gamma)\bigr)=2\gamma+O(\gamma^3).

Therefore, tight EoS pinning (ηδ≪1)(\eta\delta\ll1) together with a narrow near-zero spectral bulk (κ≪1)(\kappa\ll1) implies a small distortion residual. If ε1<qΛ\varepsilon_1<q_\Lambda, then

dim⁡‾MAS≤SD+ε1qΛ−ε1.\overline{\dim}_M A_S\leq\mathrm{SD} + \frac{\varepsilon_1}{q_\Lambda-\varepsilon_1}.

Moreover, if ε1≤qΛ/2\varepsilon_1 \leq q_\Lambda/2, then

dim⁡‾MAS≤SD+O(γqΛ).\overline{\dim}_M A_S\leq\mathrm{SD} + O\left(\frac{\gamma}{q_\Lambda}\right).

This formalizes two empirically observed EoS features and can be checked directly from Hessian spectra.

The tightness of our bounds. Three complementary facts clarify the informativeness of SD. First, dimension dependence is unavoidable: for a fixed hypothesis set W\mathcal W, Theorem 3.9 of [16] gives, up to universal constants and confidence-dependent terms,

sup⁡w∈W∣R(w)−R^S(w)∣≳δdim⁡M(W)log⁡(1/δ)nlog⁡n\sup_{w\in\mathcal W}\left|R(w)-\widehat R_S(w)\right|\gtrsim\delta\sqrt{\frac{\dim_{M}(\mathcal W)\log(1/\delta)}{n\log n}}

Thus, the bound in terms of the Minkowski dimension is tight. Transferring this lower bound directly to SD would require proving that SD=dim⁡M(A)\mathrm{SD}=\dim_M(A). We believe this holds under appropriate assumptions, which we leave for future work due to complexity. Nevertheless, our SD-to-Minkowski-dimension estimate can be exact. For example, consider a normally attracting invariant circle with neutral rotational dynamics. It has one neutral tangent direction, while all transverse directions contract. Consequently, $SD=1=dim⁡M(A).\mathrm{SD}=1=\dim_M(A).$ This establishes the tightness of the SD-to-Minkowski-dimension estimate in a natural example.

Third, obtaining numerical estimates of the full bound for a modern network requires evaluating the information-theoretic term in Theorem 4.5, or the stability parameter in Theorem C.6, which is difficult as noted in [17,18]. To summarize: dimension dependence is necessary in general, the SD-to-Minkowski estimate can be exact, and the experiments show that SD is predictive across the training configurations considered.

We emphasize that correlation analysis is standard in this line of work [15,16,17,18], in contrast to computing numerical values of the bound, which is notoriously difficult.

How sensitive are the SD estimates to the choice of SLQ hyperparameters? We agree that this should be reported explicitly. We report an ablation over bin count, broadening and probe count, and we will add the full SLQ configuration and a multi-seed ablation in the revision. We summarize sensitivity using the standard deviation of Kendall’s \tau across the tested configurations, where greater variation indicates stronger dependence on the hyperparameters. We also clarify in Appendix D that SD-SLQ and SD-KDE apply the sharpness-dimension formula to push-forward densities, rather than explicitly dividing by a raw density value. RDS Sharpness is unaffected by bin count or broadening since it is computed directly from probe-level maximums. SD-KDE and SD-PS are insensitive to bin count by construction, whereas the histogram-only SD-SLQ variant is more sensitive to binning.

For the smoothed estimators, the signal remains positive across the main sensitivity checks. Across broadening values, SD-KDE gives Kendall τ=0.318±0.068\tau=0.318\pm0.068 for SGD, 0.315±0.1480.315\pm0.148 for SGD+momentum, and 0.227±0.0700.227\pm0.070 for AdamW. SD-PS gives τ=0.135±0.126\tau=0.135\pm0.126, 0.453±0.1070.453\pm0.107, and 0.734±0.0200.734\pm0.020, respectively. Probe-count subsampling changes the SLQ Monte Carlo estimate itself. AdamW SD-PS remains stable across 16, 32, and 64 probes (τ=0.713±0.030\tau=0.713\pm0.030), while AdamW SD-KDE remains positive but noisier (τ=0.249±0.160\tau=0.249\pm0.160). These results support the smoothed estimators and motivate reporting histogram-only or low-probe estimates together with their configuration and uncertainty.

[A] Akiyama, S. et al. "Excess risk of two-layer relu neural networks in teacher-student settings and its superiority to kernel methods.", ICLR, 2023.

[B] Damian et al. "Self-Stabilization: The Implicit Bias of Gradient Descent at the Edge of Stability", ICLR, 2022.

[E] Ghorbani, B. et. al. "An investigation into neural net optimization via hessian eigenvalue density.", ICML, 2019.

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

Missing a submission?

Loading the discussion…