arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.00438cs.DCcs.AIcs.LGmath.OCstat.ML
收藏

使用分布式 Lion 实现通信高效分布式训练

Communication Efficient Distributed Training with Distributed Lion

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Meta Reality Lab(元宇宙实验室)

Bo Liu, Lemeng Wu, Lizhang Chen, Kaizhao Liang, Jiaxu Zhu, Chen Liang, Raghuraman Krishnamoorthi, Qiang Liu

AI总结:

本文提出 Distributed Lion,利用 Lion 优化器的符号算子仅传输二值或低精度向量,在保持与标准优化器相当性能的同时显著降低分布式训练通信成本,并展现出优于现有高效分布式方法的性能-带宽平衡。

摘要:

Lion 优化器在训练大型 AI 模型方面一直是 AdamW 的有力竞争者,在内存、计算和样本效率上具有优势。本文提出了 Distributed Lion,这是 Lion 在分布式训练环境中的一种创新性改进。利用 Lion 中的符号算子,我们的 Distributed Lion 仅需在工作节点与中心服务器之间传输二值或更低精度向量,从而显著降低通信成本。我们的理论分析证实了 Distributed Lion 的收敛性质。实验结果表明,该方法在视觉和语言问题上,在多种任务、工作节点数量和批量大小下均具有鲁棒性。值得注意的是,Distributed Lion 取得了与应用于聚合梯度的标准 Lion 或 AdamW 优化器相当的性能,但通信带宽显著降低。这一特性对于训练大型模型尤为有利。此外,我们还证明,与深度梯度压缩和三元梯度等现有高效分布式方法相比,Distributed Lion 呈现出更优的性能-带宽平衡。

英文摘要:

The Lion optimizer has been a promising competitor with the AdamW for training large AI models, with advantages on memory, computation, and sample efficiency. In this paper, we introduce Distributed Lion, an innovative adaptation of Lion for distributed training environments. Leveraging the sign operator in Lion, our Distributed Lion only requires communicating binary or lower-precision vectors between workers to the center server, significantly reducing the communication cost. Our theoretical analysis confirms Distributed Lion's convergence properties. Empirical results demonstrate its robustness across a range of tasks, worker counts, and batch sizes, on both vision and language problems. Notably, Distributed Lion attains comparable performance to standard Lion or AdamW optimizers applied on aggregated gradients, but with significantly reduced communication bandwidth. This feature is particularly advantageous for training large models. In addition, we also demonstrate that Distributed Lion presents a more favorable performance-bandwidth balance compared to existing efficient distributed methods such as deep gradient compression and ternary gradients.

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

↑