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

去中心化异步SGD的收敛性分析

Convergence Analysis of Decentralized ASGD

University of Luxembourg(卢森堡大学)

Mauro DL Tosi, Martin Theobald

AI总结:

本文提出了一种无需节点间同步或限制网络拓扑的去中心化异步SGD收敛性分析,提供了在不同梯度约束下的收敛率界。

摘要:

在过去的几十年里,随机梯度下降(SGD)已被机器学习社区广泛研究。尽管其 versatility 和出色的性能,但通过SGD优化大型模型仍然是一项耗时的任务。为了减少训练时间,通常会将训练过程分布到多个设备上。最近的研究表明,异步SGD(ASGD)的收敛速度始终比小批量SGD快。然而,尽管在理论界界上有这些改进,大多数ASGD收敛率证明仍然依赖于集中化的参数服务器,当扩展梯度计算到许多分布式过程中时,这容易成为瓶颈。在本文中,我们提出了一个新颖的收敛率分析,用于去中心化和异步SGD(DASGD),该分析不需要节点之间的部分同步或限制性的网络拓扑。具体来说,我们为DASGD的收敛率提供了界,即O(σε⁻²) + O(QS_avgε⁻³⁄₂) + O(S_avgε⁻¹),其中S_avg是模型之间的平均滞后量,Q是一个限制梯度范数的常数,ε是一个允许在界内的小误差。此外,当梯度不受限制时,我们证明DASGD的收敛率为O(σε⁻²) + O(√(S_avg S_max)ε⁻¹),其中S_max和S_avg分别代表平均和最大滞后的松散版本。我们的收敛证明适用于固定步长和任何非凸、同质、L-光滑的目标函数。我们预计我们的结果将对广大的研究人员和开发者采用DASGD具有高度的相关性。

英文摘要:

Over the last decades, Stochastic Gradient Descent (SGD) has been intensively studied by the Machine Learning community. Despite its versatility and excellent performance, the optimization of large models via SGD still is a time-consuming task. To reduce training time, it is common to distribute the training process across multiple devices. Recently, it has been shown that the convergence of asynchronous SGD (ASGD) will always be faster than mini-batch SGD. However, despite these improvements in the theoretical bounds, most ASGD convergence-rate proofs still rely on a centralized parameter server, which is prone to become a bottleneck when scaling out the gradient computations across many distributed processes. In this paper, we present a novel convergence-rate analysis for decentralized and asynchronous SGD (DASGD) which does not require partial synchronization among nodes nor restrictive network topologies. Specifically, we provide a bound of $\mathcal{O}(σε^{-2}) + \mathcal{O}(QS_{avg}ε^{-3/2}) + \mathcal{O}(S_{avg}ε^{-1})$ for the convergence rate of DASGD, where $S_{avg}$ is the average staleness between models, $Q$ is a constant that bounds the norm of the gradients, and $ε$ is a (small) error that is allowed within the bound. Furthermore, when gradients are not bounded, we prove the convergence rate of DASGD to be $\mathcal{O}(σε^{-2}) + \mathcal{O}(\sqrt{\hat{S}_{avg}\hat{S}_{max}}ε^{-1})$, with $\hat{S}_{max}$ and $\hat{S}_{avg}$ representing a loose version of the average and maximum staleness, respectively. Our convergence proof holds for a fixed stepsize and any non-convex, homogeneous, and L-smooth objective function. We anticipate that our results will be of high relevance for the adoption of DASGD by a broad community of researchers and developers.

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

↑