arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.20305cs.IRcs.DB
收藏

面向大规模推荐模型的混合精度Embeddings

Mixed-Precision Embeddings for Large-Scale Recommendation Models

Shiwei Li, Zhuoqi Hu, Xing Tang, Haozhao Wang, Shijie Xu, Weihong Luo, Yuhua Li, Xiuqiang He, Ruixuan Li

AI总结:

针对大规模推荐系统中Embedding表的存储开销问题,提出混合精度Embedding压缩方法MPE,通过按频率分组并学习精度概率分布确定最佳精度,在保持预测准确率的同时实现约200倍压缩。

摘要:

在深度学习时代,Embedding技术已成为大型数据库的重要组成部分。通过将离散实体(如单词、物品或图节点)编码为连续向量空间,Embeddings促进了大型数据库中更高效的存储、检索和处理。特别是在推荐系统领域,数百万个类别特征被编码为唯一的Embedding向量,这有助于建模特征之间的相似性和交互。然而,大量的Embedding向量会导致显著的存储开销。在本文中,我们旨在通过量化技术压缩Embedding表。鉴于特征的重要程度各不相同,我们寻求为每个特征确定合适的精度,以平衡模型准确率和内存使用。为此,我们提出了一种新颖的Embedding压缩方法,称为Mixed-Precision Embeddings(MPE)。具体而言,为了减小搜索空间的大小,我们首先按频率对特征进行分组,然后为每个特征组搜索精度。MPE进一步学习每个特征组在精度级别上的概率分布,这可用于通过专门设计的采样策略来确定最合适的精度。在三个公开数据集上的大量实验表明,MPE显著优于现有的Embedding压缩方法。值得注意的是,MPE在Criteo数据集上实现了约200倍的压缩,且未影响预测准确率。

英文摘要:

Embedding techniques have become essential components of large databases in the deep learning era. By encoding discrete entities, such as words, items, or graph nodes, into continuous vector spaces, embeddings facilitate more efficient storage, retrieval, and processing in large databases. Especially in the domain of recommender systems, millions of categorical features are encoded as unique embedding vectors, which facilitates the modeling of similarities and interactions among features. However, numerous embedding vectors can result in significant storage overhead. In this paper, we aim to compress the embedding table through quantization techniques. Given that features vary in importance levels, we seek to identify an appropriate precision for each feature to balance model accuracy and memory usage. To this end, we propose a novel embedding compression method, termed Mixed-Precision Embeddings (MPE). Specifically, to reduce the size of the search space, we first group features by frequency and then search precision for each feature group. MPE further learns the probability distribution over precision levels for each feature group, which can be used to identify the most suitable precision with a specially designed sampling strategy. Extensive experiments on three public datasets demonstrate that MPE significantly outperforms existing embedding compression methods. Remarkably, MPE achieves about 200x compression on the Criteo dataset without comprising the prediction accuracy.

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

↑