Training on the Edge of Stability Is Caused by Layerwise Jacobian Alignment
<|reference_start|>Training on the Edge of Stability Is Caused by Layerwise Jacobian Alignment: 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.<|reference_end|>
@article{lowell2024training,
    title={Training on the Edge of Stability Is Caused by Layerwise Jacobian
  Alignment},
    author={Mark Lowell and Catharine Kastner},
    journal={arXiv preprint arXiv:2406.00127},
    year={2024},
    archivePrefix={arXiv},
    eprint={2406.00127},
    primaryClass={stat.ML cs.LG}
}