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

通过选择性同步加速分布式机器学习训练

Accelerating Distributed ML Training via Selective Synchronization

Indiana University Bloomington(印第安纳大学布卢明顿分校)

Sahil Tyagi, Martin Swany

AI总结:

针对分布式BSP训练通信成本高、现有替代方案易损失精度的问题,本文提出低开销的SelSync选择性同步方法,通过动态决策每步是否通信及配套优化,在半同步训练下实现与BSP相当或更优精度,最高提速14倍。

摘要:

在分布式训练中,深度神经网络(DNN)会在多个工作节点上并行启动,并在批量同步并行(BSP)训练的每一步聚合各节点的本地更新。然而,由于聚合的通信成本高昂,BSP的性能无法随节点数线性扩展。为缓解这一开销,联邦平均(Federated Averaging,FedAvg)、陈旧同步并行(Stale-Synchronous Parallel,SSP)等替代方案要么降低同步频率,要么完全取消同步,通常会以最终精度下降为代价。本文提出\texttt{SelSync}——一种实用的低开销DNN训练方法,它会根据每一步本地更新的重要性,动态选择执行聚合操作以产生通信开销,或是直接应用本地更新以避免通信。作为\texttt{SelSync}的组成部分,我们提出了多种优化方案,以提升半同步(semi-synchronous)训练场景下的收敛效果。我们的系统能达到与BSP相当甚至更优的精度,同时最多可将训练时间缩短14倍。

英文摘要:

In distributed training, deep neural networks (DNNs) are launched over multiple workers concurrently and aggregate their local updates on each step in bulk-synchronous parallel (BSP) training. However, BSP does not linearly scale-out due to high communication cost of aggregation. To mitigate this overhead, alternatives like Federated Averaging (FedAvg) and Stale-Synchronous Parallel (SSP) either reduce synchronization frequency or eliminate it altogether, usually at the cost of lower final accuracy. In this paper, we present \texttt{SelSync}, a practical, low-overhead method for DNN training that dynamically chooses to incur or avoid communication at each step either by calling the aggregation op or applying local updates based on their significance. We propose various optimizations as part of \texttt{SelSync} to improve convergence in the context of \textit{semi-synchronous} training. Our system converges to the same or better accuracy than BSP while reducing training time by up to 14$\times$.

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

↑