arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1611.04581cs.LG
收藏

如何扩展分布式深度学习?

How to scale distributed deep learning?

University of California, Berkeley(加州大学伯克利分校)

Peter H. Jin, Qiaochu Yuan, Forrest Iandola, Kurt Keutzer

摘要:

深度神经网络在大型数据集上的训练时间是深度学习的许多重要应用中的主要工作流程瓶颈,例如自动驾驶辅助系统(ADAS)中的对象分类和检测。为了最小化训练时间,深度神经网络的训练必须通过分布用于训练的优化方法而从单个机器扩展到尽可能多的机器。虽然已经提出了许多分布式随机梯度下降(SGD)的方法,在目前的时间同步方法分布式SGD似乎是在大规模表现出最大的性能。SGD的同步缩放需要在每个梯度步骤上同步所有处理器,并且在处理器故障或滞后时没有弹性。在使用参数服务器的异步方法中,参数服务器的争用会减慢训练速度。在本文中,我们比较了同步和异步SGD在ImageNet分类问题上训练现代ResNet网络架构的收敛性。我们还提出了一个异步的方法,八卦SGD,其目的是保留这两个系统的积极特点,取代所有减少集体操作的同步训练与八卦聚合算法。我们发现,也许违反直觉,异步SGD,包括弹性平均和闲聊,收敛速度更快,在较少的节点(约32个节点),而同步SGD规模更好地更多的节点(约100个节点)。

英文摘要:

Training time on large datasets for deep neural networks is the principal workflow bottleneck in a number of important applications of deep learning, such as object classification and detection in automatic driver assistance systems (ADAS). To minimize training time, the training of a deep neural network must be scaled beyond a single machine to as many machines as possible by distributing the optimization method used for training. While a number of approaches have been proposed for distributed stochastic gradient descent (SGD), at the current time synchronous approaches to distributed SGD appear to be showing the greatest performance at large scale. Synchronous scaling of SGD suffers from the need to synchronize all processors on each gradient step and is not resilient in the face of failing or lagging processors. In asynchronous approaches using parameter servers, training is slowed by contention to the parameter server. In this paper we compare the convergence of synchronous and asynchronous SGD for training a modern ResNet network architecture on the ImageNet classification problem. We also propose an asynchronous method, gossiping SGD, that aims to retain the positive features of both systems by replacing the all-reduce collective operation of synchronous training with a gossip aggregation algorithm. We find, perhaps counterintuitively, that asynchronous SGD, including both elastic averaging and gossiping, converges faster at fewer nodes (up to about 32 nodes), whereas synchronous SGD scales better to more nodes (up to about 100 nodes).

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

↑