arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.07205cs.IRcs.AIcs.LG
收藏

Mem-Rec: 基于替代表示的记忆高效推荐系统

Mem-Rec: Memory Efficient Recommendation System using Alternative Representation

Intel Labs(英特尔实验室);University of California San Diego(加州大学圣地亚哥分校)

Gopi Krishna Jha, Anthony Thomas, Nilesh Jain, Sameh Gobriel, Tajana Rosing, Ravi Iyer

AI总结:

Mem-Rec通过替代表示方法减少推荐系统内存占用并提升嵌入效率。

摘要:

深度学习推荐系统(如DLRMs)被广泛用于提供高质量的个性化推荐。现代推荐系统训练数据通常包含具有数十百万种可能不同值的分类特征。这些分类标记通常被分配到学习的向量表示,存储在大型嵌入表中,大小通常在数百GB级别。在商业部署中存储和访问这些表格是一个显著的负担。我们的工作提出MEM-REC,一种新的替代表示方法用于嵌入表。MEM-REC利用布隆过滤器和哈希方法,将分类特征编码为两个缓存友好的嵌入表。第一个表(令牌嵌入)包含原始嵌入(即学习的向量表示),第二个表(权重嵌入)则更小,包含用于缩放这些原始嵌入的权重,以提高每个数据点的判别能力。我们提供了MEM-REC的详细架构、设计和分析,探讨了准确性和计算需求之间的权衡,与最先进技术进行比较。我们证明,MEM-REC不仅能保持推荐质量,并且显著减少商业规模推荐模型的内存占用,还能提高嵌入延迟。特别是,基于我们的结果,MEM-REC将MLPerf CriteoTB基准DLRMs模型大小压缩了2900倍,同时在达到与完整未压缩模型相同AUC的情况下,嵌入速度提高了多达3.4倍。

英文摘要:

Deep learning-based recommendation systems (e.g., DLRMs) are widely used AI models to provide high-quality personalized recommendations. Training data used for modern recommendation systems commonly includes categorical features taking on tens-of-millions of possible distinct values. These categorical tokens are typically assigned learned vector representations, that are stored in large embedding tables, on the order of 100s of GB. Storing and accessing these tables represent a substantial burden in commercial deployments. Our work proposes MEM-REC, a novel alternative representation approach for embedding tables. MEM-REC leverages bloom filters and hashing methods to encode categorical features using two cache-friendly embedding tables. The first table (token embedding) contains raw embeddings (i.e. learned vector representation), and the second table (weight embedding), which is much smaller, contains weights to scale these raw embeddings to provide better discriminative capability to each data point. We provide a detailed architecture, design and analysis of MEM-REC addressing trade-offs in accuracy and computation requirements, in comparison with state-of-the-art techniques. We show that MEM-REC can not only maintain the recommendation quality and significantly reduce the memory footprint for commercial scale recommendation models but can also improve the embedding latency. In particular, based on our results, MEM-REC compresses the MLPerf CriteoTB benchmark DLRM model size by 2900x and performs up to 3.4x faster embeddings while achieving the same AUC as that of the full uncompressed model.

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

↑