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

面向梯度压缩的压缩误差反馈

Contractive error feedback for gradient compression

Amazon Web Services(亚马逊云科技);Rice University(莱斯大学);University of Minnesota(明尼苏达大学)

Bingcong Li, Shuai Zheng, Parameswaran Raman, Anshumali Shrivastava, Georgios B. Giannakis

AI总结:

针对分布式深度学习端侧内存紧张问题,提出通信高效的压缩误差反馈方法ConEF,在多任务上实现高内存节省、性能无损及训练加速,并验证了其集成至主流内存高效框架的可行性。

摘要:

分布式深度学习中的端侧内存问题已日趋严峻,原因包括两点:一是多GPU训练中模型规模不断增长,二是深度神经网络被广泛应用于存储资源有限的物联网设备联邦学习场景。在这类场景中,通信高效的优化方法是颇具吸引力的替代方案,但它们仍面临内存问题的困扰。为应对这些挑战,我们提出了一种名为压缩误差反馈(ConEF)的通信高效方法。与内存管理效率低下的带误差反馈随机梯度下降(EFSGD)不同,ConEF在收敛性与内存占用之间取得了最优平衡,且通过利用有偏且支持全规约的梯度压缩实现了通信效率。我们在图像分类、语言建模、机器翻译等多种学习任务上对ConEF进行了实验验证,结果显示ConEF可节省EFSGD中80%-90%的额外内存,且测试性能几乎没有损失,同时还能实现1.3倍至5倍于SGD的加速比。通过本研究,我们还证明了ConEF的可行性与收敛性,为将ConEF集成到ZeRO-3等主流内存高效框架扫清了理论障碍。

英文摘要:

On-device memory concerns in distributed deep learning have become severe due to (i) the growth of model size in multi-GPU training, and (ii) the wide adoption of deep neural networks for federated learning on IoT devices which have limited storage. In such settings, communication efficient optimization methods are attractive alternatives, however they still struggle with memory issues. To tackle these challenges, we propose an communication efficient method called contractive error feedback (ConEF). As opposed to SGD with error-feedback (EFSGD) that inefficiently manages memory, ConEF obtains the sweet spot of convergence and memory usage, and achieves communication efficiency by leveraging biased and all-reducable gradient compression. We empirically validate ConEF on various learning tasks that include image classification, language modeling, and machine translation and observe that ConEF saves 80\% - 90\% of the extra memory in EFSGD with almost no loss on test performance, while also achieving 1.3x - 5x speedup of SGD. Through our work, we also demonstrate the feasibility and convergence of ConEF to clear up the theoretical barrier of integrating ConEF to popular memory efficient frameworks such as ZeRO-3.

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

↑