Catapults in SGD: spikes in the training loss and their impact on generalization through feature learning

Libin Zhu, Chaoyue Liu, Adityanarayanan Radhakrishnan, Mikhail Belkin
6/7/2023
cs.LGmath.OCstat.ML

No official code found. Best implementation: zhm1995/Catapults_SGD (0 stars, MIT, last commit 2025-07-23).

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 promote 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.

View on arXivView PDF

Code Implementations(1)

MIT
00Jupyter NotebookJul 14, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zhu2023catapults,
  title  = {Catapults in SGD: spikes in the training loss and their impact on generalization through feature learning},
  author = {Libin Zhu and Chaoyue Liu and Adityanarayanan Radhakrishnan and Mikhail Belkin},
  year   = {2023},
  eprint = {2306.04815},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.04815v3},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.04815.svg)](https://codeofpaper.com/paper/2306.04815)

Discussion