Stochastic Training is Not Necessary for Generalization

Jonas Geiping, Micah Goldblum, Phillip E. Pope, Michael Moeller, Tom Goldstein
9/29/2021
cs.LGmath.OC

Official code: JonasGeiping/fullbatchtraining (39 stars, Python, LGPL-2.1, last commit 2023-02-14).

Abstract

It is widely believed that the implicit regularization of SGD is fundamental to the impressive generalization behavior we observe in neural networks. In this work, we demonstrate that non-stochastic full-batch training can achieve comparably strong performance to SGD on CIFAR-10 using modern architectures.

Show full abstract

To this end, we show that the implicit regularization of SGD can be completely replaced with explicit regularization even when comparing against a strong and well-researched baseline. Our observations indicate that the perceived difficulty of full-batch training may be the result of its optimization properties and the disproportionate time and effort spent by the ML community tuning optimizers and hyperparameters for small-batch training.

View on arXivView PDF

Code Implementations(1)

LGPL-2.1

Training vision models with full-batch gradient descent and regularization

395Python, ShellSep 28, 20213 years agoLGPL-2.1

Similar Papers

Cite this paper

@article{geiping2021stochastic,
  title  = {Stochastic Training is Not Necessary for Generalization},
  author = {Jonas Geiping and Micah Goldblum and Phillip E. Pope and Michael Moeller and Tom Goldstein},
  year   = {2021},
  eprint = {2109.14119},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.14119}
}

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

Discussion