Training on the Edge of Stability Is Caused by Layerwise Jacobian Alignment
Mark Lowell, Catharine Kastner
TL;DR
This paper investigates why neural networks training often operates on the edge of stability, showing that the rise in Hessian sharpness is driven by layerwise Jacobian alignment rather than the total gradient alone. By training with an exponential Euler scheme that tracks the true gradient flow, the authors dissect the Hessian into Gauss-Newton and residual components and reveal that the top sharpness arises mainly from the layerwise Gauss-Newton term $G$, with the dominant contribution coming from the first layer. They quantify how alignment between layerwise Jacobians and backpropagated perturbations grows during training and scales with dataset size according to a power law, indicating a principled mechanism behind edge-of-stability phenomena. The findings provide a mechanistic link between network architecture, data complexity, and dynamical training behavior, with implications for understanding optimization dynamics and generalization in deep networks.
Abstract
During neural network training, the sharpness of the Hessian matrix of the training loss rises until training is on the edge of stability. As a result, even nonstochastic gradient descent does not accurately model the underlying dynamical system defined by the gradient flow of the training loss. We use an exponential Euler solver to train the network without entering the edge of stability, so that we accurately approximate the true gradient descent dynamics. We demonstrate experimentally that the increase in the sharpness of the Hessian matrix is caused by the layerwise Jacobian matrices of the network becoming aligned, so that a small change in the network preactivations near the inputs of the network can cause a large change in the outputs of the network. We further demonstrate that the degree of alignment scales with the size of the dataset by a power law with a coefficient of determination between 0.74 and 0.98.
