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

学习碰撞:基于学习哈希函数的推荐系统模型压缩

Learning to Collide: Recommendation System Model Compression with Learned Hash Functions

Benjamin Ghaemmaghami, Mustafa Ozdal, Rakesh Komuravelli, Dmitriy Korchev, Dheevatsa Mudigere, Krishnakumar Nair, Maxim Naumov

摘要:

深度推荐模型的一个关键特征是其嵌入表的巨大内存需求。这些嵌入表通常可以达到数百千兆字节,这增加了硬件要求和培训成本。一种减少模型大小的常用技术是将所有分类变量标识符(id)散列到一个更小的空间中。这种散列减少了必须存储在嵌入表中的唯一表示的数量;从而减小了它的大小。然而,这种方法会在语义不同的id之间引入冲突,从而降低模型质量。我们引入了另一种方法,学习哈希函数,它学习了一个新的映射函数,鼓励语义相似的id之间的冲突。我们从历史数据和嵌入访问模式中获得了这种学习映射。我们在一个生产模型上对这种技术进行了实验,发现由访问频率和学习的低维嵌入相结合的映射是最有效的。我们证明了一个小的改进相对于散列技巧和其他碰撞相关的压缩技术。这是正在进行的工作,探索分类id冲突对推荐模型质量的影响,以及如何控制这些冲突以提高模型性能。

英文摘要:

A key characteristic of deep recommendation models is the immense memory requirements of their embedding tables. These embedding tables can often reach hundreds of gigabytes which increases hardware requirements and training cost. A common technique to reduce model size is to hash all of the categorical variable identifiers (ids) into a smaller space. This hashing reduces the number of unique representations that must be stored in the embedding table; thus decreasing its size. However, this approach introduces collisions between semantically dissimilar ids that degrade model quality. We introduce an alternative approach, Learned Hash Functions, which instead learns a new mapping function that encourages collisions between semantically similar ids. We derive this learned mapping from historical data and embedding access patterns. We experiment with this technique on a production model and find that a mapping informed by the combination of access frequency and a learned low dimension embedding is the most effective. We demonstrate a small improvement relative to the hashing trick and other collision related compression techniques. This is ongoing work that explores the impact of categorical id collisions on recommendation model quality and how those collisions may be controlled to improve model performance.

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

↑