Highlight

Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour

Shows how to train ImageNet ResNet-50 in one hour using large 8192 minibatches with a linear LR scaling rule and warmup scheme.

Based on

Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour

By Priya Goyal, Piotr Dollár, Ross B. Girshick et al.arXiv.org
Read original article →

Deep learning benefits from large networks and large datasets, but these also lead to long training times that slow research and development progress. This paper explores distributed synchronous SGD, which divides each minibatch over a pool of parallel workers; to be efficient, the per-worker workload must be large, which implies nontrivial growth in the overall minibatch size. The authors empirically show that on ImageNet very large minibatches initially cause optimization difficulties, but that these can be overcome, after which the trained networks still generalize well.

Their central techniques are a hyper-parameter-free linear scaling rule that adjusts the learning rate as a function of minibatch size, together with a new warmup scheme that handles the optimization challenges early in training. With these simple methods, they show no loss of accuracy at minibatch sizes up to 8192, and their Caffe2-based system trains ResNet-50 with a minibatch of 8192 on 256 GPUs in one hour while matching small-minibatch accuracy. The implementation achieves about 90% scaling efficiency when moving from 8 to 256 GPUs, enabling efficient training of visual recognition models on internet-scale data.

Abstract

This paper tackles the long training times of deep networks by scaling distributed synchronous SGD across many parallel workers, which requires large minibatches. The authors show that large minibatches cause optimization difficulties on ImageNet, but once these are addressed, networks generalize with no loss of accuracy up to a minibatch size of 8192. Key techniques are a hyper-parameter-free linear scaling rule for learning rates and a new warmup scheme. Their Caffe2 system trains ResNet-50 in one hour on 256 GPUs with about 90% scaling efficiency.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

distributed traininglarge minibatch SGDlearning rate scalingImageNetResNet-50
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.