TL;DR
When neural networks train at the "Edge of Stability" (right on the brink of mathematical divergence), we usually view it as a global speed limit on optimization. This paper reveals that it actually acts like a traffic cop: it selectively accelerates learning on specific subsets of your data—like outliers or tricky boundary points—while actively suppressing progress on others. By linking parameter-space geometry directly to data-space subsets, this work shows how everyday choices like learning rate and loss function secretly dictate which examples your model prioritizes.
What Problem Does This Paper Address?
Classical optimization textbooks tell us that if your learning rate $\eta$ is too large relative to the sharpest curvature of the loss landscape (the top eigenvalue of the Hessian, $\lambda_1$), gradient descent will violently oscillate and diverge. Yet, modern deep networks routinely train right at this theoretical breaking point ($\eta \lambda_1 \approx 2$) without blowing up—a regime known as the Edge of Stability (EoS). Instead of diverging, the optimizer bounces back and forth across a sharp valley while slowly drifting toward flatter regions ("self-stabilization").
Until now, researchers treated EoS as a global phenomenon affecting the whole loss landscape uniformly. Nobody knew what this stability bottleneck actually did to individual data points. Does operating at EoS help or hurt learning? And does every example in your dataset feel the squeeze equally, or are there winners and losers?
Methods
To track who wins and loses without relying on a pre-trained model, the authors partition the training data into a clever four-part prototype taxonomy based purely on input-space geometry:
- Inliers: High-density, typical examples near their class centroid.
- Boundary points: Ambiguous examples sitting right between classes (found via $k$-NN label disagreement).
- Input-outliers: Correctly labeled examples synthetically pushed far away from the opposite class along the vector connecting the centroids.
- Output-outliers: Typical inliers given a flipped, incorrect label.
Next, they introduce a branching intervention to prove causality. They train a network with full-batch gradient descent until the exact moment it hits EoS ($t^*$). From that identical state, they split training into two parallel universes: one continues at the original learning rate (staying at EoS), while the "exit branch" halves its learning rate ($\eta \to \eta/2$), immediately dropping below the stability threshold into smooth, classical descent. Comparing the two branches isolates the exact causal effect of EoS on each data group.
Datasets
The primary experiments use binary subsets of CIFAR-10 ($n = 10,000$ images)—specifically "automobile vs. truck" for standard evaluations and "cat vs. dog" to test harder, fuzzier class boundaries. While inliers and boundary points are sampled naturally from CIFAR-10, input-outliers and output-outliers are synthetically modified from the inlier pool to cleanly isolate geometric distance from label noise. They also validate their findings on ImageNet32 (both binary and multiclass).
Key Insights and Ideas
- EoS redistributes optimization effort: Being at the edge of stability isn't a uniform tax. Self-stabilization causes net parameter movement primarily along the sharpest curvature direction ($v_1$, the top Hessian eigenvector). Subsets whose gradients align with $v_1$ ride this wave to faster loss reduction; orthogonal subsets get left behind.
- The "Alignment $\times$ Persistence" rule: To capture the EoS advantage, a data subset needs two things simultaneously:
- Directional Alignment: The group must push the Hessian coherently in the same direction. When the authors pushed input-outliers outward in random directions instead of a shared direction, alignment collapsed and their EoS advantage vanished.
- Gradient Persistence: The group's gradients can't fade away. Under Mean Squared Error (MSE), input-outliers maintain strong gradients and dominate EoS. Swap to Cross-Entropy (CE) loss, and confident predictions cause input-outlier gradients to saturate toward zero—handing the EoS advantage entirely over to mislabeled output-outliers, whose gradients refuse to die!
- Flatness is directional, not just a scalar: Whether "flat minima" help generalization depends on which data subset is driving the sharpness constraint.
Key Results
- Clear winners and losers: On CIFAR-10 (auto vs. truck) with MSE, remaining at EoS accelerates loss reduction on input-outliers and output-outliers while suppressing learning on inliers and boundary points compared to exiting EoS.
- Natural outliers behave the same way: Even without synthetic prototypes, natural CIFAR-10 examples further from their class centroid correlate with $v_1$ alignment once training hits EoS (Spearman $\rho$ jumps from $-0.11$ early in training to $0.39$ at EoS).
- Geometry steers test-time behavior: On "cat vs. dog," natural boundary points initially sit further from class centroids than moderate input-outliers ($\alpha = 3$). Consequently, boundary points dominate $v_1$, and staying at EoS boosts test-time PGD adversarial robustness ($\varepsilon = 0.03$) on ambiguous examples. However, when input-outliers are pushed much further out ($\alpha = 10$), they steal $v_1$ dominance: adversarial robustness at the boundary drops, and the EoS model instead excels at out-of-distribution extrapolation along the outlier direction.
Limitations and Future Work
Because tracking exact Hessian eigenvalues requires expensive Hessian-vector products at every step, experiments are restricted to relatively small architectures (like 2-layer MLPs, basic CNNs, and ResNets) and low-resolution datasets. Furthermore, the theoretical framework relies on full-batch gradient descent and a single dominant Hessian eigenvalue—an assumption that weakens in multiclass settings (where multiple eigenvalues go critical) and doesn't yet account for mini-batch SGD noise. Future work aims to extend this taxonomy from raw pixel space into learned representation spaces and generalize the theory to stochastic, multi-mode dynamics.
Summary updated