All posts

research digesten May 14, 2026 5 min read

Generalization Through Chaos: How Neural Networks Learn at the Edge of Stability

By kualia research desk

Introduction

The optimization of deep neural networks presents a persistent theoretical puzzle. Classical convex optimization dictates that gradient descent remains stable only when the learning rate satisfies $\eta < 2/\lambda_{\max}$, where $\lambda_{\max}$ denotes the largest eigenvalue of the Hessian. Violate this condition, and the algorithm should diverge. Yet empirical practice routinely ignores this boundary. Researchers observe that training with large learning rates, specifically at the edge of stability where the sharpness oscillates around $2/\eta$, often yields superior generalization performance compared to conservative, stable regimes. This apparent contradiction, where instability correlates with better generalization, has haunted the field for years.

In their recent work, "Generalization at the Edge of Stability," Mario Tuci, Caner Korkmaz, Umut Şimşekli, and Tolga Birdal offer a compelling resolution to this paradox. Rather than viewing optimization as a trajectory converging to a single parameter vector, they recast stochastic gradient descent as a random dynamical system that converges to a fractal attractor. Their central insight is that generalization at the edge of stability is not a property of any individual solution, but rather an emergent characteristic of the geometric structure of the entire solution set explored by the optimizer. This shift from pointwise analysis to attractor-centric reasoning provides the first rigorous framework explaining why chaos and generalization can coexist.

From Fixed Points to Fractal Attractors

Traditional optimization theory treats convergence as the process of settling into a local minimum, a single point in parameter space where gradients vanish. This viewpoint underpins classical generalization bounds that depend on the complexity of the final parameter vector, typically measured through norms or sharpness metrics like the Hessian trace. However, this static perspective fails to capture the reality of modern training dynamics.

Tuci et al. model stochastic optimizers as random dynamical systems (RDS), a mathematical framework for studying systems that evolve under both deterministic rules (the gradient update) and stochastic perturbations (minibatch noise). In the edge of stability regime, where learning rates push the system beyond the classical stability threshold, the optimizer does not settle at a fixed point. Instead, it explores a bounded, typically fractal set known as a strange attractor. This attractor possesses a smaller intrinsic dimension than the ambient parameter space, meaning the effective degrees of freedom of the dynamics are far fewer than the number of trainable parameters.

To quantify this phenomenon, the authors introduce the Sharpness Dimension (SD), inspired by Lyapunov dimension theory from dynamical systems. The SD measures the effective dimensionality of the attractor by balancing the expanding directions (where the Hessian has positive eigenvalues indicating local instability) against the contracting directions (where the dynamics are stable). Crucially, they prove that $\text{SD} < d$, where $d$ represents the total number of parameters. This inequality establishes that the complexity of the learning process is fundamentally constrained by the geometry of the attractor rather than the model's overparameterization.

The Complete Hessian Spectrum and Generalization Bounds

Prior work on sharpness and generalization has largely relied on coarse summary statistics of the Hessian, such as the trace or spectral norm. These measures, while computationally convenient, capture only aggregate curvature information. Tuci et al. demonstrate that such reductions are insufficient for understanding generalization at the edge of stability. Their analysis reveals that generalization depends on the complete Hessian spectrum and, specifically, the structure of its partial determinants.

The authors derive a novel generalization bound showing that the worst-case generalization error scales with the Sharpness Dimension rather than the parameter count. This result has profound implications for overparameterized models. While classical statistical learning theory suggests that models with millions of parameters should overfit drastically, the RDS framework explains why they generalize: the effective complexity is governed by SD, which remains small even as $d$ grows large. The bound explicitly incorporates the interplay between expansion (positive Lyapunov exponents) and contraction (negative exponents), highlighting that generalization emerges from the delicate balance between these competing forces.

Experiments across multilayer perceptrons and transformers validate these theoretical predictions. The authors also connect their framework to grokking, the phenomenon where networks generalize long after memorizing the training data. They interpret grokking as the slow convergence of the optimizer to a low-dimensional attractor with favorable generalization properties, suggesting that the delay represents the time required for the fractal structure to fully form.

Original Insights and Critical Analysis

The contribution of Tuci et al. extends beyond a technical bound; it represents a conceptual shift in how we understand implicit regularization. Current interpretations of implicit regularization focus on the properties of the trajectory or the final point, such as the implicit bias toward max-margin solutions or minimum norm solutions in linear networks. The RDS framework suggests that implicit regularization operates at the level of the attractor geometry. The optimizer is not merely finding a good solution; it is carving out a low-dimensional submanifold of parameter space with favorable generalization properties.

This perspective offers a potential explanation for why sharp minima can generalize well, a phenomenon that has challenged the flat minima hypothesis. If the optimizer explores a fractal attractor near a sharp minimum, the effective complexity depends on the attractor's dimension, not the sharpness of any individual point on it. A sharp minimum with a low-dimensional attractor may generalize better than a flat minimum with a high-dimensional one.

However, the framework faces practical limitations. Computing the full Hessian spectrum or accurately estimating the Sharpness Dimension in high-dimensional spaces remains computationally prohibitive for contemporary large models. The theory relies on asymptotic properties of random dynamical systems, while practical training involves finite time horizons and complex learning rate schedules that may prevent full convergence to the attractor. Additionally, the connection to grokking, while suggestive, requires further validation to determine whether the delayed generalization indeed corresponds to attractor formation or reflects other dynamical phenomena such as saddle point escape or representation learning phases.

Conclusion

"Generalization at the Edge of Stability" establishes that the chaotic dynamics induced by large learning rates are not merely a side effect of efficient training, but a fundamental mechanism for controlling model complexity. By shifting focus from individual parameter vectors to the fractal geometry of random attractors, Tuci et al. provide a principled explanation for why overparameterized networks generalize despite operating in locally unstable regimes.

This work opens several avenues for future research. Can we design optimizers that explicitly target attractors with specific geometric properties? How does the Sharpness Dimension relate to other complexity measures based on PAC-Bayes or algorithmic stability? And perhaps most intriguingly, can we leverage the fractal structure of these attractors to develop more efficient compression or distillation schemes? As the field moves toward understanding neural networks as dynamical systems rather than static function approximators, the edge of stability emerges not as a boundary to avoid, but as the regime where generalization truly begins.

This digest was drafted by kualia's research assistant from a public paper and reviewed before publishing. It summarises the paper; it is not a substitute for reading it.