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

推荐系统训练过程中的细粒度嵌入维度优化

Fine-Grained Embedding Dimension Optimization During Training for Recommender Systems

University of Southern California(南加州大学);Meta;Purdue University(普渡大学);Tsinghua University(清华大学);University of Illinois, Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Washington(华盛顿大学)

Qinyi Luo, Penghan Wang, Wei Zhang, Fan Lai, Jiachen Mao, Xiaohan Wei, Jun Song, Wei-Yu Tsai, Shuai Yang, Yuxi Hu, Xuehai Qian

AI总结:

本文提出FIITED系统,通过细粒度训练中嵌入维度剪枝自适应调整各嵌入向量维度,结合虚拟哈希物理索引哈希表实现高效剪枝,在保持模型质量的同时大幅减少推荐系统嵌入表内存占用并提升吞吐量。

摘要:

现代深度学习推荐模型(DLRM)中庞大的嵌入表在训练和推理期间需要极其庞大的内存。本文提出了FIITED,一个通过细粒度训练中嵌入维度剪枝(FIne-grained In-Training Embedding Dimension pruning)自动减少内存占用的系统。利用嵌入向量重要性并不相等这一关键洞察,FIITED在模型训练期间自适应地调整每个单独嵌入向量的维度,为更重要的嵌入分配更大的维度,同时适应数据的动态变化。我们将具有更高频率和梯度的嵌入维度优先视为更重要。为了在模型训练期间实现嵌入及其维度的高效剪枝,我们提出了一种基于虚拟哈希物理索引哈希表(virtually-hashed physically-indexed hash tables)的嵌入存储系统。在两个工业模型和数月的真实数据集上的实验表明,FIITED能够将DLRM嵌入大小减少65%以上,同时保持模型质量,优于最先进的训练中嵌入剪枝方法。在公开数据集上,FIITED可以将嵌入表的大小减少2.1倍至800倍,且精度下降可忽略不计,同时提高模型吞吐量。

英文摘要:

Huge embedding tables in modern deep learning recommender models (DLRM) require prohibitively large memory during training and inference. This paper proposes FIITED, a system to automatically reduce the memory footprint via FIne-grained In-Training Embedding Dimension pruning. By leveraging the key insight that embedding vectors are not equally important, FIITED adaptively adjusts the dimension of each individual embedding vector during model training, assigning larger dimensions to more important embeddings while adapting to dynamic changes in data. We prioritize embedding dimensions with higher frequencies and gradients as more important. To enable efficient pruning of embeddings and their dimensions during model training, we propose an embedding storage system based on virtually-hashed physically-indexed hash tables. Experiments on two industry models and months of realistic datasets show that FIITED can reduce DLRM embedding size by more than 65% while preserving model quality, outperforming state-of-the-art in-training embedding pruning methods. On public datasets, FIITED can reduce the size of embedding tables by 2.1x to 800x with negligible accuracy drop, while improving model throughput.

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

↑