SGD with Large Step Sizes Learns Sparse Features
Maksym Andriushchenko, Aditya Vardhan Varre, Loucas Pillaud-Vivien, Nicolas Flammarion
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. 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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
37 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Sharpness-Aware Minimization Leads to Low-Rank Features cites On the Origin of Implicit Regularization in Stochastic Gradient Descent
- Sharpness-Aware Minimization Leads to Low-Rank Features cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Sharpness-Aware Minimization Leads to Low-Rank Features cites Label Noise SGD Provably Prefers Flat Global Minimizers
- A Modern Look at the Relationship between Sharpness and Generalization cites On the Origin of Implicit Regularization in Stochastic Gradient Descent
- A Modern Look at the Relationship between Sharpness and Generalization cites Sharpness-aware Minimization for Efficiently Improving Generalization
- A Modern Look at the Relationship between Sharpness and Generalization cites Label Noise SGD Provably Prefers Flat Global Minimizers
- (S)GD over Diagonal Linear Networks: Implicit bias, Large Stepsizes and Edge of Stability cites Gradient Descent Maximizes the Margin of Homogeneous Neural Networks
- (S)GD over Diagonal Linear Networks: Implicit bias, Large Stepsizes and Edge of Stability cites Label Noise SGD Provably Prefers Flat Global Minimizers
- Why Do We Need Weight Decay in Modern Deep Learning? cites An Exponential Learning Rate Schedule for Deep Learning
- Why Do We Need Weight Decay in Modern Deep Learning? cites Label Noise SGD Provably Prefers Flat Global Minimizers
- Implicit Bias of Gradient Descent for Logistic Regression at the Edge of Stability cites Gradient Descent Maximizes the Margin of Homogeneous Neural Networks
- Label Noise SGD Provably Prefers Flat Global Minimizers cites Sharpness-aware Minimization for Efficiently Improving Generalization
Cited by top-tier papers37
- Why Do We Need Weight Decay in Modern Deep Learning?Francesco D'Angelo, Maksym Andriushchenko, Aditya Vardhan Varre, Nicolas FlammarionNeurIPS 2024 · 101 citations
- A Modern Look at the Relationship between Sharpness and GeneralizationMaksym Andriushchenko, Francesco Croce, Maximilian Müller, Matthias Hein et al.ICML 2023 · 92 citations
- Sharpness-Aware Minimization Leads to Low-Rank FeaturesMaksym Andriushchenko, Dara Bahri, Hossein Mobahi, Nicolas FlammarionNeurIPS 2023 · 48 citations
- Implicit Bias of Gradient Descent for Logistic Regression at the Edge of StabilityJingfeng Wu, Vladimir Braverman, Jason D. LeeNeurIPS 2023 · 46 citations
- (S)GD over Diagonal Linear Networks: Implicit bias, Large Stepsizes and Edge of StabilityMathieu Even, Scott Pesme, Suriya Gunasekar, Nicolas FlammarionNeurIPS 2023 · 42 citations
Builds on19
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
- Gradient Descent Maximizes the Margin of Homogeneous Neural NetworksKaifeng Lyu, Jian LiICLR 2020 · 402 citations
- An Exponential Learning Rate Schedule for Deep LearningZhiyuan Li, Sanjeev AroraICLR 2020 · 267 citations
- On the Origin of Implicit Regularization in Stochastic Gradient DescentSamuel L. Smith, Benoit Dherin, David G. T. Barrett, Soham DeICLR 2021 · 235 citations
- Label Noise SGD Provably Prefers Flat Global MinimizersAlex Damian, Tengyu Ma, Jason D. LeeNeurIPS 2021 · 155 citations
Related papers
- Stochastic Collapse: How Gradient Noise Attracts SGD Dynamics Towards Simpler SubnetworksFeng Chen, Daniel Kunin, Atsushi Yamamura, Surya GanguliNeurIPS 2023 · 52 citations
- Strength of Minibatch Noise in SGDLiu Ziyin, Kangqiao Liu, Takashi Mori, Masahito UedaICLR 2022 · 44 citations
- Chaotic Dynamics are Intrinsic to Neural Network Training with SGDLuis Herrmann, Maximilian Granz, Tim LandgrafNeurIPS 2022 · 15 citations
- Implicit Regularization of SGD Reduces Shortcut LearningNahal Mirzaie, Alireza Alipanah, Ali Abbasi, Amirmahdi Farzane et al.ICLR 2026
- Special Properties of Gradient Descent with Large Learning RatesAmirkeivan Mohtashami, Martin Jaggi, Sebastian U. StichICML 2023 · 16 citations
