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

利用双层自适应有损压缩加速深度学习推荐模型训练中的通信

Accelerating Communication in Deep Learning Recommendation Model Training with Dual-Level Adaptive Lossy Compression

Indiana University(印第安纳大学);Meta;University of Rochester(罗切斯特大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)

Hao Feng, Boyuan Zhang, Fanjiang Ye, Min Si, Ching-Hsiang Chu, Jiannan Tian, Chunxing Yin, Summer Deng, Yuchen Hao, Pavan Balaji, Tong Geng, Dingwen Tao

AI总结:

本文针对DLRM训练中全对全通信瓶颈,提出基于误差有界有损压缩的双层自适应方法,在表级和迭代级动态调整误差界,并针对GPU优化压缩器,最终实现1.38倍训练加速且精度损失极小。

摘要:

DLRM是一种先进的推荐系统模型,已在各类工业应用中得到广泛采用。然而,DLRM模型规模庞大,必须使用多个设备/GPU才能进行高效训练。这一过程中的一个显著瓶颈是耗时的全对全通信,该通信需要从所有设备收集嵌入数据。为缓解这一问题,我们提出了一种方法,采用误差有界有损压缩来减少通信数据量并加速DLRM训练。我们基于对嵌入数据特征的深入分析,开发了一种新颖的误差有界有损压缩算法,以实现高压缩比。此外,我们引入了一种双层自适应误差界调整策略,同时覆盖表级和迭代级两个层面,以在压缩收益与对精度的潜在影响之间取得平衡。我们进一步针对GPU上的PyTorch张量优化了压缩器,将压缩开销降至最低。评估结果表明,我们的方法实现了1.38倍的训练加速,同时精度影响极小。

英文摘要:

DLRM is a state-of-the-art recommendation system model that has gained widespread adoption across various industry applications. The large size of DLRM models, however, necessitates the use of multiple devices/GPUs for efficient training. A significant bottleneck in this process is the time-consuming all-to-all communication required to collect embedding data from all devices. To mitigate this, we introduce a method that employs error-bounded lossy compression to reduce the communication data size and accelerate DLRM training. We develop a novel error-bounded lossy compression algorithm, informed by an in-depth analysis of embedding data features, to achieve high compression ratios. Moreover, we introduce a dual-level adaptive strategy for error-bound adjustment, spanning both table-wise and iteration-wise aspects, to balance the compression benefits with the potential impacts on accuracy. We further optimize our compressor for PyTorch tensors on GPUs, minimizing compression overhead. Evaluation shows that our method achieves a 1.38$\times$ training speedup with a minimal accuracy impact.

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

↑