SGD with Large Step Sizes Learns Sparse Features

Maksym Andriushchenko, Aditya Varre, Loucas Pillaud-Vivien, Nicolas Flammarion
10/11/2022
cs.LGstat.ML

Official code: tml-epfl/sgd-sparse-features (35 stars, Jupyter Notebook, last commit 2023-04-24).

Abstract

We showcase important features of the dynamics of the Stochastic Gradient Descent (SGD) in the training of neural networks. We present empirical observations that commonly used large step sizes (i) lead the iterates to jump from one side of a valley to the other causing loss stabilization, and (ii) this stabilization induces a hidden stochastic dynamics orthogonal to the bouncing directions that biases it implicitly toward sparse predictors.

Show full abstract

Furthermore, we show empirically that the longer large step sizes keep SGD high in the loss landscape valleys, the better the implicit regularization can operate and find sparse representations. Notably, no explicit regularization is used so that the regularization effect comes solely from the SGD training dynamics influenced by the step size schedule. Therefore, these observations unveil how, through the step size schedules, both gradient and noise drive together the SGD dynamics through the loss landscape of neural networks. We justify these findings theoretically through the study of simple neural network models as well as qualitative arguments inspired from stochastic processes. Finally, this analysis allows us to shed a new light on some common practice and observed phenomena when training neural networks. The code of our experiments is available at https://github.com/tml-epfl/sgd-sparse-features.

View on arXivView PDF

Code Implementations(1)

SGD with large step sizes learns sparse features [ICML 2023]

355Jupyter Notebook, PythonOct 4, 20223 years ago
generalizationimplicit-biaslarge-step-sizessgd

Similar Papers

Cite this paper

@article{andriushchenko2022with,
  title  = {SGD with Large Step Sizes Learns Sparse Features},
  author = {Maksym Andriushchenko and Aditya Varre and Loucas Pillaud-Vivien and Nicolas Flammarion},
  year   = {2022},
  eprint = {2210.05337},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.05337}
}

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/2210.05337.svg)](https://codeofpaper.com/paper/2210.05337)

Discussion