arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.09027cs.IR
收藏

一种面向序列推荐的上下文感知位置编码方法

A Contextual-Aware Position Encoding for Sequential Recommendation

Jun Yuan, Guohao Cai, Zhenhua Dong

AI总结:

针对序列推荐中传统位置编码性能有限、定制化研究不足的问题,提出首个专门面向序列推荐的上下文感知位置编码方法CAPE,可提升多类骨干模型效果,在基准测试和工业部署中均验证了有效性。

摘要:

序列推荐(SR)通过编码用户行为预测下一个动作,已成为商业个性化推荐系统开发中广泛采用的策略。现代序列推荐模型的核心组件是注意力机制,用于整合用户的历史行为,该机制通常具有顺序不变性,一般依赖位置编码(PE)实现顺序感知。传统序列推荐模型仅为每个位置分配一个可学习向量,与传统推荐模型相比仅能带来有限的性能提升。此外,针对序列推荐定制的位置编码研究较少,在满足其独特需求方面存在显著空白。为填补这一空白,我们提出了一种面向序列推荐的新型上下文感知位置编码方法,缩写为CAPE。据我们所知,CAPE是首个专门为序列推荐设计的位置编码方法。在多个基准SR数据集上开展的综合实验表明,无论模型规模大小,CAPE都能持续提升多种主流骨干模型的性能,并达到当前最优(state-of-the-art)水平。此外,我们在真实商业平台的工业场景中部署了CAPE,清晰验证了该方法的有效性。我们的源代码可在https://github.com/yjdy/CAPE获取。

英文摘要:

Sequential recommendation (SR), which encodes user activity to predict the next action, has emerged as a widely adopted strategy in developing commercial personalized recommendation systems. A critical component of modern SR models is the attention mechanism, which synthesizes users' historical activities. This mechanism is typically order-invariant and generally relies on position encoding (PE). Conventional SR models simply assign a learnable vector to each position, resulting in only modest gains compared to traditional recommendation models. Moreover, limited research has been conducted on position encoding tailored for sequential recommendation, leaving a significant gap in addressing its unique requirements. To bridge this gap, we propose a novel Contextual-Aware Position Encoding method for sequential recommendation, abbreviated as CAPE. To the best of our knowledge, CAPE is the first PE method specifically designed for sequential recommendation. Comprehensive experiments conducted on benchmark SR datasets demonstrate that CAPE consistently enhances multiple mainstream backbone models and achieves state-of-the-art performance, across small and large scale model size. Furthermore, we deployed CAPE in an industrial setting on a real-world commercial platform, clearly showcasing the effectiveness of our approach. Our source code is available at https://github.com/yjdy/CAPE.

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

↑