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

LAYUP: 基于逐层更新的异步去中心化梯度下降

LAYUP: Asynchronous decentralized gradient descent with LAYer-wise UPdates

Center for Cognitive Interaction Technology, Universität Bielefeld, Germany(认知交互技术中心,比勒菲尔德大学,德国);Bielefeld University(比勒菲尔德大学);Department of Computer Science, Royal Holloway, University of London, United Kingdom(计算机科学系,伦敦大学皇家霍洛威学院,英国)

Cabrel Teguemne Fokam, Marcel Nieveler, Lukas König, Khaleelulla Khan Nazeer, David Kappel, Anand Subramoney

AI总结:

提出异步去中心化SGD方法LayUp,通过逐层更新和随机gossip通信减少参数漂移,理论证明收敛性,实验显示比同步训练快32%,比同类算法快27%。

摘要:

深度学习模型规模的增大使得跨多设备的分布式训练变得必不可少。同步、中心化方法会产生较大的通信和同步开销。通信高效的算法可以减少这些开销,但通常需要额外的缓冲区,并且对掉队者或参数漂移仍然敏感。我们提出了LayUp,一种具有逐层更新的异步去中心化SGD方法。LayUp在反向传播期间异步交换增量逐层更新。它使用随机gossip通信,使得更新可以在可用时立即应用,无需缓冲。这些设计选择减少了参数漂移并提高了对掉队者的鲁棒性。我们为逐层更新引入的梯度偏差建立了理论上限,并证明了LayUp的收敛性。我们在视觉和语言建模任务上实证验证了LayUp,显示与同步数据并行训练相比,收敛速度在挂钟时间上快约32%,与同类通信高效算法相比快约27%,同时保持更好的任务性能。这种加速部分归因于更高的模型FLOPs利用率,正如我们所展示的。通过向工作节点之间的通信注入延迟,我们表明LayUp对掉队者保持鲁棒性,而DDP和其他方法性能下降。总体而言,LayUp为分布式训练提供了一种新颖、实用且对掉队者鲁棒的替代方案,且不牺牲准确性。

英文摘要:

The increasing size of deep learning models has made distributed training across multiple devices essential. Synchronous, centralized methods incur large communication and synchronization overheads. Communication efficient algorithms can reduce these overheads, but often require extra buffers, remain sensitive to stragglers or parameter drift. We present LayUp, an asynchronous decentralized SGD method with layer-wise updates. LayUp asynchronously exchanges incremental layer-wise updates during backpropagation. It uses randomized gossip communication, enabling updates to be applied as soon as they are available without buffering. These design choices reduce parameter drift and improve robustness to stragglers. We establish a theoretical upper bound for the gradient bias introduced by layer-wise updates and prove convergence of LayUp. We empirically validate LayUp on vision and language modeling tasks, showing convergence up to ~32% faster in terms of wall-clock time compared to synchronous data parallel training and up to ~27% faster than comparable communication efficient algorithms while maintaining better task performance. This speed-up is partly due to higher model FLOPs utilization, as we demonstrate. By injecting delays into the communication between workers, we show that LayUp remains robust to stragglers while DDP and other methods degrade in performance. Overall, LayUp provides a novel practical, straggler-robust alternative for distributed training without sacrificing accuracy.

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

↑