# Edge of Stochastic Stability: Revisiting the Edge of Stability for SGD

*Arseniy Andreyev, Pierfrancesco Beneventano*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150004) · [OpenReview](https://openreview.net/forum?id=lUoXQdMVoe) · [Open on the map](../papers.html#p150004)

Category: [Optimization & Federated Learning](../pcat/13.md) › [Large-Scale Optimization Theory](../pgroup/410.md) · Type: theory · Keywords: SGD stability, batch sharpness, edge of stability, learning rate, batch size

Areas: [Optimization & Algorithms](../areas/optimization.md) › Optimization Dynamics › Edge of Stability

## Summary
The paper introduces the Edge of Stochastic Stability (EoSS) regime, showing that SGD stabilizes batch sharpness at 2/η rather than full-batch Hessian eigenvalues, explaining why smaller batches and larger step sizes lead to flatter minima.

## Explained to a 5-year-old
When we teach a big computer brain to learn, we give it tiny pieces of information instead of all at once. The computer looks at how hard the learning is in each tiny piece and finds a sweet spot where the difficulty stays the same. This sweet spot helps the brain remember things in a simple way. The paper shows why using fewer pieces and bigger steps makes the brain learn smoother patterns. It helps scientists understand how computers learn better.

## Explained to a 5-year-old, longer
Imagine a huge drawing program that learns to draw pictures by looking at many examples. Instead of looking at all examples at once, it looks at a small group each time. While it works, the program checks how quickly the drawing changes when it makes a small adjustment. This change speed stays steady at a certain level that depends on how big the jumps are. Using fewer examples and bigger jumps keeps this change speed steady, which makes the final drawing simpler and easier to understand. The research explains why this happens and gives a clear picture of how learning works in a noisy environment. It also shows why smaller groups and larger steps often lead to better results. This insight helps designers choose better settings for teaching computers.

## For a technical reader
When training neural networks, using all data at once leads to a known stability limit where the curvature of the loss surface stabilizes at a value inversely proportional to the learning rate. However, in practice we usually use mini-batches, which introduces noise. This paper shows that the noisy version stabilizes a related quantity called batch sharpness, also at 2/η, while the overall curvature stays lower. As a result, smaller batches and larger learning rates naturally produce flatter minima, which is why they often generalize better. The analysis gives a simple theoretical model that engineers can use to reason about learning-rate and batch-size choices.

## Problem
Understanding why the edge of stability observed for full-batch gradient descent does not hold for stochastic gradient descent, and what quantity stabilizes during SGD training.

## Method
The authors analyze SGD trajectories by examining the expected directional curvature of mini-batch Hessians along mini-batch gradients, showing that this quantity stabilizes at 2/η under certain conditions. They derive theoretical results linking this stabilization to batch size and step size, and discuss implications for modeling SGD.

## Results
The approach finds that batch sharpness stabilizes at 2/η, while the maximum eigenvalue of the full-batch Hessian remains suppressed, confirming that smaller batches and larger step sizes lead to flatter minima.

## Contributions
It identifies a new stochastic stability regime termed Edge of Stochastic Stability, provides theoretical analysis of batch sharpness stabilization, and explains empirical phenomena regarding batch size and learning rate effects on minima sharpness.

## Research questions this paper is counted under

- [What determines the stability and generalization of optimization algorithms at large learning rates?](../q/190.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150004)
