大型分布式系统上卷积神经网络的有效训练
Efficient Training of Convolutional Neural Nets on Large Distributed Systems
摘要:
深度神经网络(DNN)在包括图像分类在内的许多应用领域都取得了令人印象深刻的准确性。DNN的训练是一个计算极其密集的过程,并且使用随机梯度下降(SGD)算法的变体来解决。最近的许多研究都集中在提高DNN训练的性能上。在本文中,我们提出了优化技术,以提高使用火炬框架的数据并行同步SGD算法的性能:(i)我们保持在内存中的数据,以避免文件I/O开销,(ii)我们提出了一个基于多色的MPI Allreduce算法,以最大限度地减少通信开销,(iii)我们提出了优化的火炬数据并行表框架,处理多线程。我们评估了我们的优化的Power 8 Minsky集群与32个节点和128 NVidia Pascal P100 GPU的性能。通过我们的优化,我们能够在48分钟内使用256个GPU在Imagenet-1 k数据集上训练90个epoch的ResNet-50模型。这大大提高了以前最好的性能,即在65分钟内使用256个GPU在同一数据集上训练90个epoch的ResNet-50模型。据我们所知,这是Imagenet-1 k数据集最著名的训练性能。
英文摘要:
Deep Neural Networks (DNNs) have achieved im- pressive accuracy in many application domains including im- age classification. Training of DNNs is an extremely compute- intensive process and is solved using variants of the stochastic gradient descent (SGD) algorithm. A lot of recent research has focussed on improving the performance of DNN training. In this paper, we present optimization techniques to improve the performance of the data parallel synchronous SGD algorithm using the Torch framework: (i) we maintain data in-memory to avoid file I/O overheads, (ii) we present a multi-color based MPI Allreduce algorithm to minimize communication overheads, and (iii) we propose optimizations to the Torch data parallel table framework that handles multi-threading. We evaluate the performance of our optimizations on a Power 8 Minsky cluster with 32 nodes and 128 NVidia Pascal P100 GPUs. With our optimizations, we are able to train 90 epochs of the ResNet-50 model on the Imagenet-1k dataset using 256 GPUs in just 48 minutes. This significantly improves on the previously best known performance of training 90 epochs of the ResNet-50 model on the same dataset using 256 GPUs in 65 minutes. To the best of our knowledge, this is the best known training performance demonstrated for the Imagenet- 1k dataset.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。