Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour

Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski +4 more
6/8/2017
4,270 citations
cs.CVcs.DCcs.LG

No official code found. Best implementation: YeongHyeon/ResNet-with-LRWarmUp-TF2 (7 stars).

Abstract

Deep learning thrives with large neural networks and large datasets. However, larger networks and larger datasets result in longer training times that impede research and development progress.

Show full abstract

Distributed synchronous SGD offers a potential solution to this problem by dividing SGD minibatches over a pool of parallel workers. Yet to make this scheme efficient, the per-worker workload must be large, which implies nontrivial growth in the SGD minibatch size. In this paper, we empirically show that on the ImageNet dataset large minibatches cause optimization difficulties, but when these are addressed the trained networks exhibit good generalization. Specifically, we show no loss of accuracy when training with large minibatch sizes up to 8192 images. To achieve this result, we adopt a hyper-parameter-free linear scaling rule for adjusting learning rates as a function of minibatch size and develop a new warmup scheme that overcomes optimization challenges early in training. With these simple techniques, our Caffe2-based system trains ResNet-50 with a minibatch size of 8192 on 256 GPUs in one hour, while matching small minibatch accuracy. Using commodity hardware, our implementation achieves ~90% scaling efficiency when moving from 8 to 256 GPUs. Our findings enable training visual recognition models on internet-scale data with high efficiency.

View on arXivView PDF

Code Implementations(1)

TensorFlow implementation of "Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour"

71

Similar Papers

Cite this paper

@article{goyal2017accurate,
  title  = {Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour},
  author = {Priya Goyal and Piotr Dollár and Ross Girshick and Pieter Noordhuis and Lukasz Wesolowski and Aapo Kyrola and Andrew Tulloch and Yangqing Jia and Kaiming He},
  year   = {2017},
  eprint = {1706.02677},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1706.02677}
}

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

Discussion