OneRec: Unifying Retrieve and Rank with Generative Recommender and Iterative Preference Alignment
OneRec提出了一种统一的生成推荐框架,通过端到端生成方式提高推荐系统的效率和效果。
更新于 2025-10-14。作者:Jiaxin Deng、Shiyao Wang、Kuo Cai、Lejian Ren、Qigen Hu、Weifeng Ding、Qiang Luo、Guorui Zhou。
中文摘要
最近,基于生成式检索的推荐系统作为一种有前景的范式而出现。然而,大多数现代推荐系统采用检索和排序策略,其中生成模型仅在检索阶段充当选择器。在本文中,我们提出了OneRec,它用统一的生成模型替换了级联学习框架。据我们所知,这是第一个在现实场景中显著超越当前复杂且设计精良的推荐系统的端到端生成模型。具体来说,OneRec包括以下内容:1)一个编码器-解码器结构,该结构将用户的历史行为序列进行编码,并逐步解码用户可能感兴趣的视频。我们采用稀疏混合专家(MoE)来扩展模型容量,而不会成比例地增加计算FLOPs。2)一种基于会话的生成方法。与传统物品预测相比,我们提出了基于会话的生成方法,这种方法比依赖于手工规则正确组合生成结果的点对点生成更为优雅和上下文连贯。3)一个结合直接偏好优化(DPO)的迭代偏好对齐模块,以提升生成结果的质量。与NLP中的DPO不同,推荐系统通常对每个用户的浏览请求只有一个展示结果的机会,这使得同时获取正负样本变得不可能。为了解决这一限制,我们设计了一个奖励模型来模拟用户生成并定制采样策略。大量实验表明,有限数量的DPO样本可以对齐用户兴趣偏好并显著提高生成结果的质量。我们在快手的主要场景中部署了OneRec,实现了观看时间的1.6%增长,这是一个显著的提升。
英文摘要
Recently, generative retrieval-based recommendation systems have emerged as a promising paradigm. However, most modern recommender systems adopt a retrieve-and-rank strategy, where the generative model functions only as a selector during the retrieval stage. In this paper, we propose OneRec, which replaces the cascaded learning framework with a unified generative model. To the best of our knowledge, this is the first end-to-end generative model that significantly surpasses current complex and well-designed recommender systems in real-world scenarios. Specifically, OneRec includes: 1) an encoder-decoder structure, which encodes the user's historical behavior sequences and gradually decodes the videos that the user may be interested in. We adopt sparse Mixture-of-Experts (MoE) to scale model capacity without proportionally increasing computational FLOPs. 2) a session-wise generation approach. In contrast to traditional next-item prediction, we propose a session-wise generation, which is more elegant and contextually coherent than point-by-point generation that relies on hand-crafted rules to properly combine the generated results. 3) an Iterative Preference Alignment module combined with Direct Preference Optimization (DPO) to enhance the quality of the generated results. Unlike DPO in NLP, a recommendation system typically has only one opportunity to display results for each user's browsing request, making it impossible to obtain positive and negative samples simultaneously. To address this limitation, We design a reward model to simulate user generation and customize the sampling strategy. Extensive experiments have demonstrated that a limited number of DPO samples can align user interest preferences and significantly improve the quality of generated results. We deployed OneRec in the main scene of Kuaishou, achieving a 1.6\% increase in watch-time, which is a substantial improvement.
解读
一句话总结
OneRec提出了一种统一的生成推荐框架,通过端到端生成方式提高推荐系统的效率和效果。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:现代推荐系统通常采用检索和排序策略,生成模型仅在检索阶段作为选择器,其推荐准确率尚未达到优秀多级排序器水平。
- 现有方案不足:传统的多级排序策略限制了整体排序系统的性能,生成模型在推荐阶段的作用有限。
- 研究目标:提出OneRec,一个单阶段生成推荐框架,以超越传统的多级排序流程。
问题2:论文的核心创新点是什么?
- 技术创新:采用编码器-解码器结构,使用稀疏混合专家(MoE)架构来扩展模型容量,并提出会话式生成方法。
- 方法改进:引入会话式生成,考虑会话中项目的相对内容和顺序,以及直接偏好优化(DPO)来增强生成结果的质量。
- 优势:OneRec在真实场景中显著优于现有的复杂且设计良好的推荐系统,提高了推荐准确性和多样性。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在大型工业数据集上进行的实验,包括离线性能评估和在线A/B测试。
- 性能提升:OneRec在观看时间、互动概率等指标上优于基线方法,实现了显著的性能提升。
- 对比结果:与传统的多级排序系统和基线生成推荐方法相比,OneRec在性能上取得了显著优势。
问题4:这个研究的实际应用价值是什么?
- 应用场景:适用于短视频推荐平台等需要高效且准确推荐的系统。
- 实施建议:在训练过程中采用合适的MoE架构和会话式生成方法,并在在线服务中使用DPO进行偏好调整。
- 局限与展望:目前模型在互动指标方面还有局限性,未来可以进一步研究多目标建模以提供更好的用户体验。