Skip to main content
QUICK REVIEW

[Paper Review] ImageNet Training by CPU: AlexNet in 11 Minutes and ResNet-50 in 48 Minutes

Yang You, Zhao Zhang|arXiv (Cornell University)|Sep 14, 2017
Advanced Neural Network ApplicationsComputer Science2 references2 citations
TL;DR

This paper demonstrates that ImageNet training with AlexNet can be completed in 11 minutes using 1024 CPUs, and ResNet-50 in 20 minutes using 2048 KNLs, achieving 74.9% top-1 accuracy without accuracy loss by employing large-batch data-parallel synchronous SGD with the LARS optimizer. The approach enables state-of-the-art training speed by overcoming algorithmic bottlenecks in batch size scaling.

ABSTRACT

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, this https URL). 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 address the algorithmic bottleneck in large-scale DNN training caused by small batch sizes that underutilize many processors.
  • To enable extremely large-batch training (up to 32K) without sacrificing model accuracy on ImageNet.
  • To achieve state-of-the-art training speed for ResNet-50 and AlexNet on CPU-only systems while maintaining high test accuracy.
  • To demonstrate that supercomputer-level computational power can be effectively harnessed for DNN training when algorithmic inefficiencies are resolved.

Proposed method

  • Utilizes data-parallelism with synchronous stochastic gradient descent (SGD) on CPU clusters to scale training across thousands of processors.
  • Employs the LARS optimizer (Layer-wise Adaptive Rate Scaling) to stabilize training at extremely large batch sizes (e.g., 32K), enabling convergence without accuracy degradation.
  • Applies large-batch training with fixed epoch schedules (100 for AlexNet, 90 for ResNet-50) to maintain accuracy while drastically reducing training time.
  • Configures training on CPU architectures (1024 CPUs for AlexNet, 2048 KNLs for ResNet-50) to maximize throughput and minimize wall-clock time.
  • Optimizes hyperparameters and learning rate schedules to maintain generalization performance at large batch sizes.

Experimental results

Research questions

  • RQ1Can large-batch data-parallel SGD with LARS achieve high ImageNet accuracy while training in under 20 minutes on CPUs?
  • RQ2How does training speed and accuracy compare to prior work when scaling batch sizes to 16K or higher on CPU systems?
  • RQ3To what extent can CPU-based systems match GPU-based training speeds when algorithmic bottlenecks are removed?
  • RQ4Is it possible to maintain 74.9% top-1 accuracy on ImageNet with ResNet-50 in fewer than 65 epochs using large-batch training on CPUs?

Key findings

  • AlexNet training on ImageNet was completed in 11 minutes using 1024 CPUs, achieving 74.9% top-1 accuracy.
  • ResNet-50 training on ImageNet was completed in 20 minutes using 2048 KNLs, matching 74.9% top-1 accuracy without accuracy loss.
  • The method achieved 74.9% top-1 accuracy in only 64 epochs (14 minutes) for ResNet-50, outperforming prior results in both speed and efficiency.
  • At batch sizes above 16K, the model achieved significantly higher accuracy than Facebook’s results at comparable batch sizes.
  • The approach enables training speeds approaching theoretical limits of supercomputers, with 10^18 operations completed in under 20 minutes on CPU clusters.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.