Skip to main content
QUICK REVIEW

[论文解读] Performance Analysis and Comparison of Distributed Machine Learning Systems

Salem Alqahtani, Murat Demirbaş|arXiv (Cornell University)|Sep 4, 2019
Privacy-Preserving Technologies in DataComputer Science被引用 17
一句话总结

本文通过分析建模与基于TensorFlow和Horovod的实验评估,系统地分析了三种分布式深度学习训练架构——参数服务器(PS)、对等网络(P2P)和环形Allreduce(RA)——的性能。结果表明,RA通过高效重叠计算与通信并解耦网络使用与工作节点数量,实现了更优的可扩展性和性能;而PS和P2P则因网络拥塞和负载不均而表现受限。

ABSTRACT

Deep learning has permeated through many aspects of computing/processing systems in recent years. While distributed training architectures/frameworks are adopted for training large deep learning models quickly, there has not been a systematic study of the communication bottlenecks of these architectures and their effects on the computation cycle time and scalability. In order to analyze this problem for synchronous Stochastic Gradient Descent (SGD) training of deep learning models, we developed a performance model of computation time and communication latency under three different system architectures: Parameter Server (PS), peer-to-peer (P2P), and Ring allreduce (RA). To complement and corroborate our analytical models with quantitative results, we evaluated the computation and communication performance of these system architectures of the systems via experiments performed with Tensorflow and Horovod frameworks. We found that the system architecture has a very significant effect on the performance of training. RA-based systems achieve scalable performance as they successfully decouple network usage from the number of workers in the system. In contrast, 1PS systems suffer from low performance due to network congestion at the parameter server side. While P2P systems fare better than 1PS systems, they still suffer from significant network bottleneck. Finally, RA systems also excel by virtue of overlapping computation time and communication time, which PS and P2P architectures fail to achieve.

研究动机与目标

  • 识别并分析分布式深度学习训练系统中的通信瓶颈。
  • 从延迟和吞吐量角度,比较三种主要系统架构——参数服务器(PS)、对等网络(P2P)和环形Allreduce(RA)——的性能。
  • 研究系统架构如何影响同步SGD训练期间的可扩展性和网络利用率。
  • 评估不同架构中计算与通信时间的重叠程度。
  • 基于硬件和工作负载特性,为系统架构与配置选择提供实用指导。

提出的方法

  • 为PS、P2P和RA架构中的计算与通信延迟开发了分析性能模型。
  • 将总训练周期时间建模为计算时间与通信时间之和,其中通信时间取决于数据量和网络拓扑。
  • 使用TensorFlow和Horovod框架在MNIST数据集上开展实验,测量吞吐量与延迟。
  • 通过改变工作节点数量及参数服务器配置(1PS、2PS、4PS)来评估可扩展性。
  • 评估通信-计算重叠效率,这是影响训练系统性能的关键因素。
  • 通过定量实验结果验证分析模型,确认网络拥塞与性能瓶颈的发现。

实验结果

研究问题

  • RQ1在分布式DNN训练中,PS、P2P和RA架构的通信瓶颈有何不同?
  • RQ2系统架构对同步SGD训练中训练吞吐量和延迟有何影响?
  • RQ3PS、P2P和RA系统中,通信与计算的重叠程度在多大程度上可实现?
  • RQ4与RA相比,PS和P2P系统中网络拥塞如何随工作节点数量增加而变化?
  • RQ5哪些架构选择能带来更好的可扩展性与网络带宽的高效利用?

主要发现

  • 环形Allreduce(RA)系统通过将网络使用与工作节点数量解耦,实现可扩展性能,支持吞吐量线性增长。
  • 1PS系统在参数服务器处面临严重的网络拥塞,导致可扩展性差且吞吐量非线性增长。
  • P2P系统性能优于1PS,但仍因共享带宽和缺乏高效通信模式而面临显著网络瓶颈。
  • RA系统在通信-计算重叠方面优于PS和P2P,减少了空闲时间,提升了整体效率。
  • PS和P2P系统因DNN层间张量大小差异导致工作节点间负载不均,加剧了通信瓶颈。
  • 使用TensorFlow和Horovod的实验结果证实,RA在吞吐量和延迟方面均优于PS和P2P,尤其在大规模场景下表现更优。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。