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

Ravnest:异构设备上的去中心化异步训练

Ravnest: Decentralized Asynchronous Training on Heterogeneous Devices

Raven Protocol(雷文协议)

Anirudh Rajiv Menon, Unnikrishnan Menon, Kailash Ahirwar

AI总结:

Ravnest提出一种面向异构设备的去中心化异步训练方法,通过集群划分和零气泡异步模型并行及多环全归约实现全局参数平均,并证明最优收敛速率与线性加速。

摘要:

现代深度学习模型日益庞大和复杂,由于在大型数据集上进行训练,它们展现出了卓越的泛化能力和准确性。这一趋势预计将持续下去。然而,模型规模的不断增大给训练带来了挑战,因为传统的集中式方法在此规模下受到内存限制的约束。本文提出了一种用于大型现代深度学习模型的异步去中心化训练范式,该范式利用连接在互联网上的、资源有限的普通异构个人电脑的计算能力,以实现良好的性能指标。Ravnest通过将计算节点高效地组织成具有相似数据传输速率和计算能力的集群来促进去中心化训练,而无需每个节点承载整个模型。这些集群参与“零气泡异步模型并行”训练,并采用“并行多环全归约”方法在所有集群间有效执行全局参数平均。我们将异步SGD损失函数构建为具有延迟更新的块结构优化问题,并推导出最优收敛速率O(1/√K)。我们进一步讨论了关于参与集群数量的线性加速以及陈旧性参数的界限。

英文摘要:

Modern deep learning models, growing larger and more complex, have demonstrated exceptional generalization and accuracy due to training on huge datasets. This trend is expected to continue. However, the increasing size of these models poses challenges in training, as traditional centralized methods are limited by memory constraints at such scales. This paper proposes an asynchronous decentralized training paradigm for large modern deep learning models that harnesses the compute power of regular heterogeneous PCs with limited resources connected across the internet to achieve favourable performance metrics. Ravnest facilitates decentralized training by efficiently organizing compute nodes into clusters with similar data transfer rates and compute capabilities, without necessitating that each node hosts the entire model. These clusters engage in $\textit{Zero-Bubble Asynchronous Model Parallel}$ training, and a $\textit{Parallel Multi-Ring All-Reduce}$ method is employed to effectively execute global parameter averaging across all clusters. We have framed our asynchronous SGD loss function as a block structured optimization problem with delayed updates and derived an optimal convergence rate of $O\left(\frac{1}{\sqrt{K}}\right)$. We further discuss linear speedup with respect to the number of participating clusters and the bound on the staleness parameter.

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

↑