Computer Science > Machine Learning
arXiv:2206.07085 (cs)
[Submitted on 14 Jun 2022 (v1), last revised 17 Jan 2023 (this version, v3)]
Title:Understanding the Generalization Benefit of Normalization Layers: Sharpness Reduction
View a PDF of the paper titled Understanding the Generalization Benefit of Normalization Layers: Sharpness Reduction, by Kaifeng Lyu and 2 other authors
View PDFAbstract:Normalization layers (e.g., Batch Normalization, Layer Normalization) were introduced to help with optimization difficulties in very deep nets, but they clearly also help generalization, even in not-so-deep nets. Motivated by the long-held belief that flatter minima lead to better generalization, this paper gives mathematical analysis and supporting experiments suggesting that normalization (together with accompanying weight-decay) encourages GD to reduce the sharpness of loss surface. Here "sharpness" is carefully defined given that the loss is scale-invariant, a known consequence of normalization. Specifically, for a fairly broad class of neural nets with normalization, our theory explains how GD with a finite learning rate enters the so-called Edge of Stability (EoS) regime, and characterizes the trajectory of GD in this regime via a continuous sharpness-reduction flow.
Comments: | 76 pages, many figures; NeurIPS 2022 camera-ready version; fixes minor typos |
Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
Cite as: | arXiv:2206.07085 [cs.LG] |
(orarXiv:2206.07085v3 [cs.LG] for this version) | |
https://doi.org/10.48550/arXiv.2206.07085 arXiv-issued DOI via DataCite |
Submission history
From: Kaifeng Lyu [view email][v1] Tue, 14 Jun 2022 18:19:05 UTC (6,756 KB)
[v2] Tue, 25 Oct 2022 06:13:12 UTC (5,271 KB)
[v3] Tue, 17 Jan 2023 03:58:13 UTC (5,243 KB)
Full-text links:
Access Paper:
- View PDF
- TeX Source
- Other Formats
View a PDF of the paper titled Understanding the Generalization Benefit of Normalization Layers: Sharpness Reduction, by Kaifeng Lyu and 2 other authors
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer(What is the Explorer?)
Connected Papers(What is Connected Papers?)
Litmaps(What is Litmaps?)
scite Smart Citations(What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv(What is alphaXiv?)
CatalyzeX Code Finder for Papers(What is CatalyzeX?)
DagsHub(What is DagsHub?)
Gotit.pub(What is GotitPub?)
Hugging Face(What is Huggingface?)
Papers with Code(What is Papers with Code?)
ScienceCast(What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower(What are Influence Flowers?)
CORE Recommender(What is CORE?)
IArxiv Recommender(What is IArxiv?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community?Learn more about arXivLabs.