arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.09395cs.IR
收藏

SHARK:一种面向大规模推荐系统的轻量级模型压缩方法

SHARK: A Lightweight Model Compression Approach for Large-scale Recommender Systems

Beichuan Zhang, Chenggen Sun, Jianchao Tan, Xinjun Cai, Jun Zhao, Mengqi Miao, Kang Yin, Chengru Song, Na Mou, Yang Song

AI总结:

本文提出面向大规模工业推荐系统的SHARK压缩框架,通过泰勒一阶重要性裁剪嵌入表并结合逐行量化,在快手短视频等场景实现大幅降本与QPS提升。

摘要:

增大嵌入层的规模已被证明能有效提升推荐模型的性能,但这也逐渐导致工业推荐系统中的模型大小突破TB级,进而带来计算和存储成本的上升。为了在保持模型性能的同时节约资源,我们提出了SHARK,这是我们在工业场景推荐系统中总结出的模型压缩实践。SHARK由两个主要组件构成。首先,我们采用新颖的泰勒展开一阶分量作为重要性分数,以裁剪嵌入表(特征字段)的数量。其次,我们引入一种新的逐行量化方法,对每个嵌入应用不同的量化策略。我们在公开数据集和工业数据集上开展了大量实验,结果表明所提出的SHARK框架的每个组件都优于以往方法。我们在快手的多个模型中进行了A/B测试,例如短视频、电商和广告推荐模型。在线A/B测试结果表明,SHARK能够有效降低嵌入层的内存占用。在短视频场景中,压缩后的模型没有出现任何性能下降,并显著节省了70%的存储空间和数千台机器,每秒查询数(QPS)提升30%,且已被部署用于服务数亿用户、每天处理数百亿次请求。

英文摘要:

Increasing the size of embedding layers has shown to be effective in improving the performance of recommendation models, yet gradually causing their sizes to exceed terabytes in industrial recommender systems, and hence the increase of computing and storage costs. To save resources while maintaining model performances, we propose SHARK, the model compression practice we have summarized in the recommender system of industrial scenarios. SHARK consists of two main components. First, we use the novel first-order component of Taylor expansion as importance scores to prune the number of embedding tables (feature fields). Second, we introduce a new row-wise quantization method to apply different quantization strategies to each embedding. We conduct extensive experiments on both public and industrial datasets, demonstrating that each component of our proposed SHARK framework outperforms previous approaches. We conduct A/B tests in multiple models on Kuaishou, such as short video, e-commerce, and advertising recommendation models. The results of the online A/B test showed SHARK can effectively reduce the memory footprint of the embedded layer. For the short-video scenarios, the compressed model without any performance drop significantly saves 70% storage and thousands of machines, improves 30\% queries per second (QPS), and has been deployed to serve hundreds of millions of users and process tens of billions of requests every day.

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

↑