arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1807.11205cs.LGcs.DCstat.ML
收藏

高度可扩展的混合精度深度学习训练系统:在四分钟内训练ImageNet

Highly Scalable Deep Learning Training System with Mixed-Precision: Training ImageNet in Four Minutes

Tencent Inc.(腾讯公司);Hong Kong Baptist University(香港浸会大学)

Xianyan Jia, Shutao Song, Wei He, Yangzihao Wang, Haidong Rong, Feihu Zhou, Liqiang Xie, Zhenyu Guo, Yuanzhou Yang, Liwei Yu, Tiegang Chen, Guangxiao Hu, Shaohuai Shi, Xiaowen Chu

摘要:

具有数据并行的同步随机梯度下降(SGD)优化器广泛用于训练大规模深度神经网络。虽然使用较大的小批量可以通过降低通信计算比来提高系统的可扩展性,但它可能会损害模型的泛化能力。为此,我们为密集GPU集群构建了一个高度可扩展的深度学习训练系统,主要贡献有三个:(1)我们提出了一种混合精度训练方法,可以在不损失精度的情况下显著提高单个GPU的训练吞吐量。(2)我们提出了一种针对超大型小批量(高达64k)的优化方法,可以在ImageNet数据集上训练CNN模型,而不会损失准确性。(3)我们提出了高度优化的全归约算法,在AlexNet和ResNet-50上分别实现了3倍和11倍的加速,而不是在具有1024 Tesla P40 GPU的集群上基于NCCL的训练。在训练ResNet-50的90个epoch时,具有1024个Tesla P100 GPU的最先进的基于GPU的系统花费了15分钟,达到了74.9\%的top-1测试准确率,而另一个基于KNL的系统使用了2048个Intel KNL,花费了20分钟,达到了75.4\%的准确率。我们的训练系统可以在6.6分钟内使用2048个Tesla P40 GPU实现75.8%的top-1测试准确率。当用95个epoch训练AlexNet时,我们的系统可以在4分钟内达到58.7%的top-1测试准确率,这也优于所有其他现有系统。

英文摘要:

Synchronized stochastic gradient descent (SGD) optimizers with data parallelism are widely used in training large-scale deep neural networks. Although using larger mini-batch sizes can improve the system scalability by reducing the communication-to-computation ratio, it may hurt the generalization ability of the models. To this end, we build a highly scalable deep learning training system for dense GPU clusters with three main contributions: (1) We propose a mixed-precision training method that significantly improves the training throughput of a single GPU without losing accuracy. (2) We propose an optimization approach for extremely large mini-batch size (up to 64k) that can train CNN models on the ImageNet dataset without losing accuracy. (3) We propose highly optimized all-reduce algorithms that achieve up to 3x and 11x speedup on AlexNet and ResNet-50 respectively than NCCL-based training on a cluster with 1024 Tesla P40 GPUs. On training ResNet-50 with 90 epochs, the state-of-the-art GPU-based system with 1024 Tesla P100 GPUs spent 15 minutes and achieved 74.9\% top-1 test accuracy, and another KNL-based system with 2048 Intel KNLs spent 20 minutes and achieved 75.4\% accuracy. Our training system can achieve 75.8\% top-1 test accuracy in only 6.6 minutes using 2048 Tesla P40 GPUs. When training AlexNet with 95 epochs, our system can achieve 58.7\% top-1 test accuracy within 4 minutes, which also outperforms all other existing systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑