arXiv:2409.20305cs.IRcs.DB2024-09被引 7

按重要性分组量化,实现推荐系统嵌入表200倍压缩

Mixed-Precision Embeddings for Large-Scale Recommendation Models

  • 按特征频率分组,为每组动态分配不同精度
  • 在Criteo数据集上实现200倍压缩,精度不降
  • 适合大规模推荐系统部署,兼顾内存与效果

嵌入技术已成为深度学习时代大型数据库的核心组件。通过将离散实体(如词汇、物品或图节点)编码为连续向量空间,嵌入实现了更高效的存储、检索与处理。在推荐系统领域,数百万个类别特征被映射为唯一的嵌入向量,以建模特征间的相似性与交互关系。然而,大量嵌入向量带来显著的存储开销。本文旨在通过量化技术压缩嵌入表。鉴于特征重要性各异,我们需为每个特征确定合适的精度,以平衡模型精度与内存使用。为此,提出一种新型嵌入压缩方法——混合精度嵌入(Mixed-Precision Embeddings, MPE)。具体而言,为缩小搜索空间,先按特征频率分组,再为每组搜索最优精度。MPE进一步学习每组特征在精度等级上的概率分布,并通过定制采样策略识别最适精度。在三个公开数据集上的大量实验表明,MPE显著优于现有嵌入压缩方法。特别地,在Criteo数据集上实现约200倍压缩,且预测精度未下降。

原文摘要 · Abstract (English)

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.

嵌入压缩推荐系统量化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。