[Paper Review] ImageNet Training in Minutes
This paper demonstrates that using the Layer-wise Adaptive Rate Scaling (LARS) optimizer enables training ResNet-50 on ImageNet-1k in just 20 minutes using 2048 KNL processors, achieving 74.9% top-1 accuracy—matching state-of-the-art results in 15 minutes but with 14 minutes of training time. The method scales large-batch stochastic gradient descent efficiently by maintaining accuracy at batch sizes up to 32K, significantly reducing training time without sacrificing model performance.
Finishing 90-epoch ImageNet-1k training with ResNet-50 on a NVIDIA M40 GPU takes 14 days. This training requires 10^18 single precision operations in total. On the other hand, the world's current fastest supercomputer can finish 2 * 10^17 single precision operations per second (Dongarra et al 2017, https://www.top500.org/lists/2017/06/). If we can make full use of the supercomputer for DNN training, we should be able to finish the 90-epoch ResNet-50 training in one minute. However, the current bottleneck for fast DNN training is in the algorithm level. Specifically, the current batch size (e.g. 512) is too small to make efficient use of many processors. For large-scale DNN training, we focus on using large-batch data-parallelism synchronous SGD without losing accuracy in the fixed epochs. The LARS algorithm (You, Gitman, Ginsburg, 2017, arXiv:1708.03888) enables us to scale the batch size to extremely large case (e.g. 32K). We finish the 100-epoch ImageNet training with AlexNet in 11 minutes on 1024 CPUs. About three times faster than Facebook's result (Goyal et al 2017, arXiv:1706.02677), we finish the 90-epoch ImageNet training with ResNet-50 in 20 minutes on 2048 KNLs without losing accuracy. State-of-the-art ImageNet training speed with ResNet-50 is 74.9% top-1 test accuracy in 15 minutes. We got 74.9% top-1 test accuracy in 64 epochs, which only needs 14 minutes. Furthermore, when we increase the batch size to above 16K, our accuracy is much higher than Facebook's on corresponding batch sizes. Our source code is available upon request.
Motivation & Objective
- To investigate whether the LARS optimizer enables efficient scaling of DNN training to larger numbers of processors.
- To reduce ImageNet-1k training time from 14 days (on a single GPU) to minutes using large-batch synchronous SGD.
- To maintain high test accuracy (74.9% top-1) at very large batch sizes (up to 32K) without data augmentation.
- To evaluate the impact of data augmentation on accuracy at large batch sizes.
- To demonstrate that large-batch training with LARS can achieve state-of-the-art speed-accuracy trade-offs on ResNet-50 and AlexNet.
Proposed method
- Leveraged the Layer-wise Adaptive Rate Scaling (LARS) algorithm to stabilize training at extremely large batch sizes (up to 32K).
- Used synchronous stochastic gradient descent (SGD) with increasing batch size to scale across 1024 CPUs (AlexNet) and 2048 KNLs (ResNet-50).
- Maintained model accuracy by adapting the learning rate per layer based on the ratio of gradient norm to weight norm.
- Optimized communication and computation balance by increasing batch size, reducing the number of iterations and communication rounds.
- Used a warm-up learning rate schedule to stabilize training at large batch sizes.
- Conducted ablation studies comparing accuracy with and without data augmentation at large batch sizes.
Experimental results
Research questions
- RQ1Can the LARS optimizer enable stable and accurate training at batch sizes up to 32K on ImageNet-1k?
- RQ2What is the maximum number of processors that can be efficiently utilized in DNN training using LARS with minimal accuracy degradation?
- RQ3How does training time scale with increasing batch size and number of processors when using LARS?
- RQ4How does the absence of data augmentation affect accuracy at large batch sizes compared to standard training?
- RQ5Can large-batch training with LARS achieve state-of-the-art accuracy in significantly fewer training minutes than prior methods?
Key findings
- The 100-epoch ImageNet training with AlexNet was completed in 11 minutes using 1024 CPUs and a batch size of 32K, achieving 58.6% top-1 accuracy.
- The 90-epoch ImageNet training with ResNet-50 was completed in 20 minutes using 2048 KNL processors and a batch size of 32K, achieving 74.9% top-1 accuracy.
- The authors achieved 74.9% top-1 accuracy in only 64 epochs (14 minutes), outperforming the state-of-the-art result that required 15 minutes for the same accuracy.
- At batch sizes above 16K, the proposed method achieved significantly higher accuracy than Facebook’s corresponding results, especially without data augmentation.
- The communication volume decreased proportionally with batch size, reducing data movement by up to 90% compared to small-batch training at the same number of floating-point operations.
- The LARS-based training maintained high accuracy scaling efficiency, outperforming prior methods in terms of speed-accuracy trade-off at large batch sizes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.