[2101.12176] On the Origin of Implicit Regularization in Stochastic Gradient Descent
Abstract:For infinitesimal learning rates, stochastic gradient descent (SGD) follows the path of gradient flow on the full batch loss function. However moderately large learning rates can achieve higher test accuracies, and this generalization benefit is not explained by convergence bounds, since the learning rate which maximizes test accuracy is often larger than the learning rate which minimizes training loss. To interpret this phenomenon we prove that for SGD with random shuffling, the mean SGD iterate also stays close to the path of gradient flow if the learning rate is small and finite, but on a modified loss. This modified loss is composed of the original loss function and an implicit regularizer, which penalizes the norms of the minibatch gradients. Under mild assumptions, when the batch size is small the scale of the implicit regularization term is proportional to the ratio of the learning rate to the batch size. We verify empirically that explicitly including the implicit regularizer in the loss can enhance the test accuracy when the learning rate is small.
# link_7vwrqnq677.pdf ## Metadata - PDFFormatVersion=1.5 - IsLinearized=false - IsAcroFormPresent=false - IsXFAPresent=false - IsCollectionPresent=false - IsSignaturesPresent=false - CreationDate=D:20210129014102Z - Creator=LaTeX with hyperref - ModDate=D:20210129014102Z - Custom.PTEX.Fullbanner=This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) kpathsea version 6.3.2 - Producer=pdfTeX-1.40.21 - Trapped=False ## Contents ### Page 1 Published as a conference paper at ICLR 2021ON THE ORIGIN OF IMPLICIT REGULARIZATION INSTOCHASTIC GRADIENT DESCENTSamuel L. Smith1, Benoit Dherin2, D
Explore this link on the map →saved by
related reading
- [2605.15522] Stochastic Non-Smooth Convex Optimization with Unbounded Gradientsarxiv.org
- Notes on the Origin of Implicit Regularization in SGDinference.vc
- Clare Lyle | What's grokking good for?clarelyle.com
- [2605.01172] A Theory of Generalization in Deep Learningarxiv.org
- Stochastic gradient descent - Wikipediaen.m.wikipedia.org
- [1609.04836] On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimaarxiv.org
- Jane Street Blog - Does batch size matter?blog.janestreet.com
- LoRA Without Regret - Thinking Machines Labthinkingmachines.ai
- A minimizer Far, Far Away – Parameter-free Learning and Optimization Algorithmsparameterfree.com
- [1706.02677] Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourarxiv-vanity.com
- The Little Book of Deep Learningfleuret.org
- Why Momentum Really Worksdistill.pub