arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.02107cs.LGcs.IRstat.ML
收藏

基于互补划分的组合嵌入高效推荐系统

Compositional Embeddings Using Complementary Partitions for Memory-Efficient Recommendation Systems

Northwestern University(西北大学);Facebook

Hao-Jun Michael Shi, Dheevatsa Mudigere, Maxim Naumov, Jiyan Yang

摘要:

现代基于深度学习的推荐系统利用数百到数千种不同的分类特征,每种特征都有数百万种不同的类别,从点击到帖子。为了尊重分类数据中的自然多样性,嵌入将每个类别映射到嵌入空间中的唯一密集表示。由于每个分类特征可能具有多达数千万个不同的可能类别,因此嵌入表在训练和推理过程中形成了主要的内存瓶颈。我们提出了一种新的方法来减少嵌入大小在一个端到端的方式,利用互补分区的类别集产生一个独特的嵌入向量,为每个类别没有明确的定义。通过基于每个互补分区存储多个较小的嵌入表,并结合每个表的嵌入,我们以较小的内存成本为每个类别定义了一个唯一的嵌入。这种方法可以被解释为使用特定的固定码本来确保每个类别的表示的唯一性。我们的实验结果证明了我们的方法在哈希技巧上的有效性,该方法可以在模型损失和准确性方面减少嵌入表的大小,同时保持参数数量的类似减少。

英文摘要:

Modern deep learning-based recommendation systems exploit hundreds to thousands of different categorical features, each with millions of different categories ranging from clicks to posts. To respect the natural diversity within the categorical data, embeddings map each category to a unique dense representation within an embedded space. Since each categorical feature could take on as many as tens of millions of different possible categories, the embedding tables form the primary memory bottleneck during both training and inference. We propose a novel approach for reducing the embedding size in an end-to-end fashion by exploiting complementary partitions of the category set to produce a unique embedding vector for each category without explicit definition. By storing multiple smaller embedding tables based on each complementary partition and combining embeddings from each table, we define a unique embedding for each category at smaller memory cost. This approach may be interpreted as using a specific fixed codebook to ensure uniqueness of each category's representation. Our experimental results demonstrate the effectiveness of our approach over the hashing trick for reducing the size of the embedding tables in terms of model loss and accuracy, while retaining a similar reduction in the number of parameters.

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

↑