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

通过容忍丢失的传输协议提升分布式机器学习训练效率

Boosting Distributed Machine Learning Training Through Loss-tolerant Transmission Protocol

Fudan University(复旦大学);Peng Cheng Laboratory(鹏城实验室)

Zixuan Chen, Lei Shi, Xuandong Liu, Xin Ai, Sen Liu, Yang Xu

AI总结:

本文提出容忍丢失的传输协议LTP,通过允许梯度部分丢失、乱序传输与确认、提前关闭和气泡填充等机制,在保证训练精度的同时将分布式机器学习训练吞吐量最高提升30倍。

摘要:

分布式机器学习(DML)系统被用于提升数据中心(DCs)和边缘节点中的模型训练速度。参数服务器(PS)通信架构被广泛采用,但它面临由多对一“incast”流量模式引起的严重长尾延迟,从而对训练吞吐量产生负面影响。为应对这一挑战,我们设计了Loss-tolerant Transmission Protocol(LTP,容忍丢失的传输协议),该协议允许在同步过程中部分梯度丢失,以避免不必要的重传,并有助于加快每次迭代的同步速度。LTP通过乱序传输和乱序确认(ACKs)实现容忍丢失的传输。LTP采用Early Close(提前关闭)机制根据网络状况调整容忍丢失阈值,并采用Bubble Filling(气泡填充)进行数据校正以保持训练精度。LTP使用C++实现并集成到PyTorch中。在包含8个工作节点和1个参数服务器节点的测试平台上的评估表明,与传统的TCP拥塞控制相比,LTP能够将DML训练任务吞吐量显著提升最高达30倍,且不牺牲最终精度。

英文摘要:

Distributed Machine Learning (DML) systems are utilized to enhance the speed of model training in data centers (DCs) and edge nodes. The Parameter Server (PS) communication architecture is commonly employed, but it faces severe long-tail latency caused by many-to-one "incast" traffic patterns, negatively impacting training throughput. To address this challenge, we design the \textbf{L}oss-tolerant \textbf{T}ransmission \textbf{P}rotocol (LTP), which permits partial loss of gradients during synchronization to avoid unneeded retransmission and contributes to faster synchronization per iteration. LTP implements loss-tolerant transmission through \textit{out-of-order transmission} and \textit{out-of-order Acknowledges (ACKs)}. LTP employs \textit{Early Close} to adjust the loss-tolerant threshold based on network conditions and \textit{Bubble Filling} for data correction to maintain training accuracy. LTP is implemented by C++ and integrated into PyTorch. Evaluations on a testbed of 8 worker nodes and one PS node demonstrate that LTP can significantly improve DML training task throughput by up to 30x compared to traditional TCP congestion controls, with no sacrifice to final accuracy.

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

↑