Catapults in SGD: Spikes in the Training Loss and Their Impact on Generalization Through Feature Learning

Abstract

In this paper, we first present an explanation regarding the common occurrence of spikes in the training loss when neural networks are trained with stochastic gradient descent (SGD). We provide evidence that the spikes in the training loss of SGD are "catapults", an optimization phenomenon originally observed in GD with large learning rates in Lewkowycz et al. (2020). We empirically show that these catapults occur in a low-dimensional subspace spanned by the top eigenvectors of the tangent kernel, for both GD and SGD. Second, we posit an explanation for how catapults lead to better generalization by demonstrating that catapults increase feature learning by increasing alignment with the Average Gradient Outer Product (AGOP) of the true predictor. Furthermore, we demonstrate that a smaller batch size in SGD induces a larger number of catapults, thereby improving AGOP alignment and test performance.

Cite

Text

Zhu et al. "Catapults in SGD: Spikes in the Training Loss and Their Impact on Generalization Through Feature Learning." International Conference on Machine Learning, 2024.

Markdown

[Zhu et al. "Catapults in SGD: Spikes in the Training Loss and Their Impact on Generalization Through Feature Learning." International Conference on Machine Learning, 2024.](https://mlanthology.org/icml/2024/zhu2024icml-catapults/)

BibTeX

@inproceedings{zhu2024icml-catapults,
  title     = {{Catapults in SGD: Spikes in the Training Loss and Their Impact on Generalization Through Feature Learning}},
  author    = {Zhu, Libin and Liu, Chaoyue and Radhakrishnan, Adityanarayanan and Belkin, Mikhail},
  booktitle = {International Conference on Machine Learning},
  year      = {2024},
  pages     = {62476-62509},
  volume    = {235},
  url       = {https://mlanthology.org/icml/2024/zhu2024icml-catapults/}
}