arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.20455cs.IR
收藏

双向旋转:面向生成式推荐的时间与顺序RoPE

Rotate Both Ways: Time-and-Order RoPE for Generative Recommendation

University of Maryland(马里兰大学)

Xiaokai Wei, Jiajun Wu, Daiyao Yi, Reza Shirkavand, Michelle Gong

AI总结:

本文提出时间与顺序RoPE(TO-RoPE),通过将索引和时间作为角度来源直接塑造查询-键几何,联合建模用户行为序列中的时间与顺序信息,在公开和工业数据集上显著提升生成式推荐的准确性。

摘要:

生成式推荐系统通常是基于Transformer的自回归模型,根据用户的交互历史预测下一个物品或动作。其有效性取决于模型如何表示交互事件在序列中的位置(离散索引)以及其在真实时间(墙钟时间)中的发生时刻。现有方法通常通过学习嵌入或相对注意力偏置来注入时间信息。本文认为,如果设计得当,基于RoPE的方法可以成为联合建模用户行为序列中时间与顺序信息的更强替代方案。虽然LLM中的原始RoPE仅考虑词元顺序,但生成式推荐需要同时纳入事件时间和词元索引。为此,我们提出了时间与顺序RoPE(TO-RoPE),这是一族旋转位置嵌入设计,将索引和时间视为直接塑造查询-键几何形状的角度来源。我们提出了三种实例化方式:早期融合、按维度拆分和按头拆分。在公开数据集和专有工业数据集上的大量实验表明,TO-RoPE变体在编码时间和索引的准确性上持续优于现有方法。这些结果将旋转嵌入定位为生成式推荐的一种简单、有原则且易于部署的基础。

英文摘要:

Generative recommenders, typically transformer-based autoregressive models, predict the next item or action from a user's interaction history. Their effectiveness depends on how the model represents where an interaction event occurs in the sequence (discrete index) and when it occurred in wall-clock time. Prevailing approaches inject time via learned embeddings or relative attention biases. In this paper, we argue that RoPE-based approaches, if designed properly, can be a stronger alternative for jointly modeling temporal and sequential information in user behavior sequences. While vanilla RoPE in LLMs considers only token order, generative recommendation requires incorporating both event time and token index. To address this, we propose Time-and-Order RoPE (TO-RoPE), a family of rotary position embedding designs that treat index and time as angle sources shaping the query-key geometry directly. We present three instantiations: early fusion, split-by-dim, and split-by-head. Extensive experiments on both publicly available datasets and a proprietary industrial dataset show that TO-RoPE variants consistently improve accuracy over existing methods for encoding time and index. These results position rotary embeddings as a simple, principled, and deployment-friendly foundation for generative recommendation.

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

↑