arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11159cs.LGcs.DC
收藏

分布式随机梯度下降中的陈旧性:基于随机延迟微分方程的框架

Distributed Stochastic Gradient Descent with Staleness: A Stochastic Delay Differential Equation Based Framework

Tsinghua University(清华大学);Princeton University(普林斯顿大学)

Siyuan Yu, Wei Chen, H. Vincent Poor

AI总结:

本文提出基于随机延迟微分方程的框架,分析并优化异步分布式SGD的收敛性,揭示陈旧性对加速和收敛的影响,并用于调度策略优化。

摘要:

分布式随机梯度下降(SGD)因其在扩展计算资源、减少训练时间以及帮助保护机器学习中用户隐私方面的潜力而受到广泛关注。然而,计算节点的不稳定和有限带宽可能引发随机的计算/通信延迟,从而严重阻碍学习过程。因此,如何通过高效调度多个工作节点来加速异步SGD是一个重要问题。本文提出了一个统一框架,基于随机延迟微分方程(SDDEs)和聚合梯度到达的泊松近似,来分析和优化异步SGD的收敛性。特别地,我们在不对计算时间做无记忆性假设的情况下,给出了分布式SGD的运行时间和陈旧性。在给定学习率的情况下,我们揭示了相关SDDE的阻尼系数及其延迟统计量,它们是激活客户端数量、陈旧性阈值、目标函数Hessian矩阵的特征值以及整体计算/通信延迟的函数。所构建的SDDE使我们能够通过计算其特征根来给出分布式SGD的收敛条件和收敛速度,从而优化异步/事件触发SGD的调度策略。有趣的是,研究表明增加激活工作节点的数量并不一定能加速分布式SGD,这是因为陈旧性的存在。此外,较小程度的陈旧性不一定会减慢收敛,而较大程度的陈旧性将导致分布式SGD发散。数值结果证明了我们的SDDE框架的潜力,即使在具有非凸目标函数的复杂学习任务中也是如此。

英文摘要:

Distributed stochastic gradient descent (SGD) has attracted considerable recent attention due to its potential for scaling computational resources, reducing training time, and helping protect user privacy in machine learning. However, the staggers and limited bandwidth may induce random computational/communication delays, thereby severely hindering the learning process. Therefore, how to accelerate asynchronous SGD by efficiently scheduling multiple workers is an important issue. In this paper, a unified framework is presented to analyze and optimize the convergence of asynchronous SGD based on stochastic delay differential equations (SDDEs) and the Poisson approximation of aggregated gradient arrivals. In particular, we present the run time and staleness of distributed SGD without a memorylessness assumption on the computation times. Given the learning rate, we reveal the relevant SDDE's damping coefficient and its delay statistics, as functions of the number of activated clients, staleness threshold, the eigenvalues of the Hessian matrix of the objective function, and the overall computational/communication delay. The formulated SDDE allows us to present both the distributed SGD's convergence condition and speed by calculating its characteristic roots, thereby optimizing the scheduling policies for asynchronous/event-triggered SGD. It is interestingly shown that increasing the number of activated workers does not necessarily accelerate distributed SGD due to staleness. Moreover, a small degree of staleness does not necessarily slow down the convergence, while a large degree of staleness will result in the divergence of distributed SGD. Numerical results demonstrate the potential of our SDDE framework, even in complex learning tasks with non-convex objective functions.

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

↑