arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.04650cs.DCcs.LGcs.PF
收藏

TensorFlow中异步SGD的吞吐量预测

Throughput Prediction of Asynchronous SGD in TensorFlow

University of Southern California(南加州大学)

Zhuojin Li, Wumo Yan, Marco Paolieri, Leana Golubchik

摘要:

现代机器学习框架可以并行地使用多个节点来训练神经网络,每个计算参数使用随机梯度下降(SGD)更新,并通过中央参数服务器异步地共享它们。由于通信开销和瓶颈,集群中SGD更新的总吞吐量呈次线性扩展,随着节点数量的增加而饱和。在本文中,我们提出了一个解决方案,预测从单节点配置收集的剖析跟踪训练吞吐量。我们的方法是能够模拟多个节点之间的交互和参数服务器和每个节点之间的并发传输的调度。通过考虑接收到的部件和待处理的计算之间的依赖关系,我们预测计算和通信之间的重叠,并生成合成的执行轨迹与多个节点的配置。我们使用配备GPU或仅配备CPU的节点,在AWS和我们的内部集群上,针对流行的图像分类神经网络的TensorFlow训练作业验证了我们的方法。我们还研究了TensorFlow中使用的数据传输策略的影响,以及我们的方法在与传输时间表优化相结合时的准确性。

英文摘要:

Modern machine learning frameworks can train neural networks using multiple nodes in parallel, each computing parameter updates with stochastic gradient descent (SGD) and sharing them asynchronously through a central parameter server. Due to communication overhead and bottlenecks, the total throughput of SGD updates in a cluster scales sublinearly, saturating as the number of nodes increases. In this paper, we present a solution to predicting training throughput from profiling traces collected from a single-node configuration. Our approach is able to model the interaction of multiple nodes and the scheduling of concurrent transmissions between the parameter server and each node. By accounting for the dependencies between received parts and pending computations, we predict overlaps between computation and communication and generate synthetic execution traces for configurations with multiple nodes. We validate our approach on TensorFlow training jobs for popular image classification neural networks, on AWS and on our in-house cluster, using nodes equipped with GPUs or only with CPUs. We also investigate the effects of data transmission policies used in TensorFlow and the accuracy of our approach when combined with optimizations of the transmission schedule.

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

↑