arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.00801cs.IRcs.LGstat.ML
收藏

面向低延迟项目推荐的低秩场加权因子分解机

Low Rank Field-Weighted Factorization Machines for Low Latency Item Recommendation

Yahoo Research(雅虎研究院)

Alex Shtoff, Michael Viderman, Naama Haramaty-Krasne, Oren Somekh, Ariel Raviv, Tularam Ban

AI总结:

针对FwFM推理成本随字段数平方增长的问题,提出对角加对称低秩分解方法,使推理成本仅与项目字段数成正比,实验证明其在准确性和推荐速度上均优于启发式剪枝,并已部署于大型在线广告系统。

摘要:

因子分解机(FM)变体广泛应用于在严格吞吐量和延迟要求下运行的推荐系统中,例如在线广告系统。FM之所以广为人知,既是因为它们能够在抵御数据稀疏性的同时建模成对特征交互,也是因为它们的计算图有助于快速推理和训练。此外,当项目作为每个传入用户查询的一部分进行排序时,这些计算图有助于每个查询仅计算一次来自用户和上下文字段的部分。因此,就推理成本而言,用户或上下文字段的数量实际上几乎不受限制。更先进的FM变体(如FwFM)通过学习字段间交互的表示来提供更好的准确性,但需要显式计算所有成对交互项。推理期间的计算成本与字段数量的平方成正比,包括用户、上下文和项目字段。当字段数量很大时,这在具有严格延迟约束的系统中是不可行的。为了缓解这一缺陷,通常使用低强度字段交互的启发式剪枝来加速推理。在这项工作中,我们提出了一种使用对角加对称低秩分解来替代FwFM中剪枝启发式的方法。我们的技术通过使推理计算成本仅与项目字段数量成正比来降低推理成本。通过在真实世界数据集上的一组实验,我们表明激进的秩缩减在准确性和项目推荐速度方面均优于同样激进的剪枝。我们通过合成测试以及将我们的解决方案部署到一个主要的在线广告系统中,实验性地证实了我们关于更快推理的主张。用于复现我们实验结果的代码位于 https://github.com/michaelviderman/pytorch-fm/tree/dev。

英文摘要:

Factorization machine (FM) variants are widely used in recommendation systems that operate under strict throughput and latency requirements, such as online advertising systems. FMs are known both due to their ability to model pairwise feature interactions while being resilient to data sparsity, and their computational graphs that facilitate fast inference and training. Moreover, when items are ranked as a part of a query for each incoming user, these graphs facilitate computing the portion stemming from the user and context fields only once per query. Consequently, in terms of inference cost, the number of user or context fields is practically unlimited. More advanced FM variants, such as FwFM, provide better accuracy by learning a representation of field-wise interactions, but require computing all pairwise interaction terms explicitly. The computational cost during inference is proportional to the square of the number of fields, including user, context, and item. When the number of fields is large, this is prohibitive in systems with strict latency constraints. To mitigate this caveat, heuristic pruning of low intensity field interactions is commonly used to accelerate inference. In this work we propose an alternative to the pruning heuristic in FwFMs using a diagonal plus symmetric low-rank decomposition. Our technique reduces the computational cost of inference, by allowing it to be proportional to the number of item fields only. Using a set of experiments on real-world datasets, we show that aggressive rank reduction outperforms similarly aggressive pruning, both in terms of accuracy and item recommendation speed. We corroborate our claim of faster inference experimentally, both via a synthetic test, and by having deployed our solution to a major online advertising system. The code to reproduce our experimental results is at https://github.com/michaelviderman/pytorch-fm/tree/dev.

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

↑