# Edge of Stability Selectively Shapes Learning Across the Data Distribution

*Shauna Kwag, Anakha Ganesh, Tomaso Poggio, Pierfrancesco Beneventano*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153610) · [Open on the map](../papers.html#p153610)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Edge of Stability Dynamics](../pgroup/81.md) · Type: empirical study · Keywords: edge of stability, selective learning, gradient alignment, Hessian eigenvector, cross-entropy loss

Areas: [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Non-Stationarity Adaptation › Generalization and Memorization

## Summary
The paper shows that the edge of stability (EoS) selectively redistributes learning across data groups, amplifying progress on some groups while suppressing others, and identifies the conditions that cause this effect.

## Explained to a 5-year-old
When computers learn from many examples, they sometimes get stuck at a point where they are just stable. This paper shows that being stable can be selective: some groups of examples get learned faster while others get learned slower. They did this by moving the learning process in and out of the stable region and watching which groups changed. They found that groups whose learning direction matches a special direction and keep learning keep improving, while others stop. This helps us understand why some data gets more attention during training.

## Explained to a 5-year-old, longer
Computers learn by looking at many examples and adjusting their rules. They sometimes reach a point where the adjustments become very small and stable. This paper shows that this stability is not the same for all examples. Some groups of examples get bigger updates and improve quickly. Other groups get tiny updates and improve slowly. To study this, the researchers moved the learning process back and forth across the stable point. They watched which groups changed more or less. They discovered that groups whose updates point in a certain direction keep getting bigger updates. They also found that groups that lose this direction get very small updates. Under cross-entropy loss, groups that are already confident stop updating, while outlier groups keep updating. This selective behavior explains why some data gets more attention during training.

## For a technical reader
The work investigates how the edge of stability (EoS) influences learning across data subsets, showing it is not uniform. By using a branching intervention that toggles the training regime, they causally attribute differences in group performance. Two conditions are identified: gradient alignment with the top Hessian eigenvector and sustained gradient magnitude over time. Experiments with a perturbation that randomizes gradient direction confirm the importance of alignment, and analysis under cross-entropy loss reveals that confidently classified groups saturate while outliers continue to learn.

## Problem
Understanding how the edge of stability influences learning across different data subsets is challenging, as prior work treats it as a global property. The problem is to determine whether and how EoS selectively benefits particular groups during optimization.

## Method
The authors employ a branching intervention that moves the training from the same state into or out of the edge of stability regime, allowing causal attribution of learning differences. They also apply a controlled perturbation that preserves distance but randomizes gradient direction to test alignment with the top Hessian eigenvector, and they analyze gradient magnitudes over time under cross-entropy loss.

## Results
The study finds that groups whose gradients align with the top Hessian eigenvector and maintain non-vanishing gradient magnitude receive amplified learning, while groups that lose gradient alignment or saturate receive suppressed learning, especially under cross-entropy loss where confidently classified groups are decoupled.

## Contributions
It reveals the selective nature of the edge of stability, identifies the two necessary conditions for group benefit, and provides a causal demonstration via branching interventions and gradient perturbations.

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/153610)
