arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.20046cs.IRcs.AI
收藏

DQRM:深度量化推荐模型

DQRM: Deep Quantized Recommendation Models

Carnegie Mellon University(卡内基梅隆大学);University of California, Berkeley(加州大学伯克利分校);Intel(英特尔公司);University of Texas at Austin(德克萨斯大学奥斯汀分校)

Yang Zhou, Zhen Dong, Ellick Chan, Dhiraj Kalamkar, Diana Marculescu, Kurt Keutzer

AI总结:

本文提出DQRM框架,通过量化感知训练、嵌入表优化及梯度INT8量化与稀疏化,实现DLRM的INT4无损压缩并显著降低分布式通信开销。

摘要:

大规模推荐模型目前是许多大型互联网公司的主导工作负载。这些推荐器的特征是巨大的嵌入表,由用户和物品特征的索引稀疏访问。这些1TB以上表的规模给推荐模型的训练和推理带来了严重的内存瓶颈。在本工作中,我们基于最先进的深度学习推荐模型(DLRM),提出了一个新颖的推荐框架,它体积小、功能强大,并且运行和训练高效。所提出的框架提高了云服务器上的推理效率,探索了在较小边缘设备上部署强大推荐器的可能性,并在数据并行设置下优化了分布式训练中通信开销的工作负载。具体而言,我们表明量化感知训练(QAT)可以施加强正则化效应,以缓解DLRM遭受的严重过拟合问题。因此,我们实现了DLRM模型的INT4量化,且没有任何准确率下降。我们进一步提出了两项技术,专门针对推荐模型中的嵌入表改进并加速传统QAT工作负载。此外,为实现高效训练,我们在得到良好支持的指定稀疏化基础上,将嵌入表的梯度量化为INT8。我们表明,将梯度稀疏化和量化结合起来可显著减少通信量。简而言之,采用INT4的DQRM模型在Kaggle上可达到79.07%的准确率,模型大小为0.27 GB;在Terabyte数据集上达到81.21%的准确率,模型大小为1.57 GB,甚至优于模型大小大得多的FP32 DLRM(Kaggle上为2.16 GB,Terabyte上为12.58 GB)。

英文摘要:

Large-scale recommendation models are currently the dominant workload for many large Internet companies. These recommenders are characterized by massive embedding tables that are sparsely accessed by the index for user and item features. The size of these 1TB+ tables imposes a severe memory bottleneck for the training and inference of recommendation models. In this work, we propose a novel recommendation framework that is small, powerful, and efficient to run and train, based on the state-of-the-art Deep Learning Recommendation Model (DLRM). The proposed framework makes inference more efficient on the cloud servers, explores the possibility of deploying powerful recommenders on smaller edge devices, and optimizes the workload of the communication overhead in distributed training under the data parallelism settings. Specifically, we show that quantization-aware training (QAT) can impose a strong regularization effect to mitigate the severe overfitting issues suffered by DLRMs. Consequently, we achieved INT4 quantization of DLRM models without any accuracy drop. We further propose two techniques that improve and accelerate the conventional QAT workload specifically for the embedding tables in the recommendation models. Furthermore, to achieve efficient training, we quantize the gradients of the embedding tables into INT8 on top of the well-supported specified sparsification. We show that combining gradient sparsification and quantization together significantly reduces the amount of communication. Briefly, DQRM models with INT4 can achieve 79.07% accuracy on Kaggle with 0.27 GB model size, and 81.21% accuracy on the Terabyte dataset with 1.57 GB, which even outperform FP32 DLRMs that have much larger model sizes (2.16 GB on Kaggle and 12.58 on Terabyte).

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

↑