Don't Use Large Mini-Batches, Use Local SGD

Tao Lin, Sebastian U. Stich, Kumar Kshitij Patel, Martin Jaggi
8/22/2018
cs.LGstat.ML

Official code: epfml/LocalSGD-Code (46 stars, Apache-2.0, last commit 2020-03-04).

Abstract

Mini-batch stochastic gradient methods (SGD) are state of the art for distributed training of deep neural networks. Drastic increases in the mini-batch sizes have lead to key efficiency and scalability gains in recent years. However, progress faces a major roadblock, as models trained with large batches often do not generalize well, i.e. they do not show good accuracy on new data. As a remedy, we propose a \emph{post-local} SGD and show that it significantly improves the generalization performance compared to large-batch training on standard benchmarks while enjoying the same efficiency (time-to-accuracy) and scalability. We further provide an extensive study of the communication efficiency vs. performance trade-offs associated with a host of \emph{local SGD} variants.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
465Shell, PythonJan 31, 20206 years agoApache-2.0

Cite this paper

@article{lin2018dont,
  title  = {Don't Use Large Mini-Batches, Use Local SGD},
  author = {Tao Lin and Sebastian U. Stich and Kumar Kshitij Patel and Martin Jaggi},
  year   = {2018},
  eprint = {1808.07217},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1808.07217}
}

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

Discussion