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

LinRec:面向长期序列推荐系统的线性注意力机制

LinRec: Linear Attention Mechanism for Long-term Sequential Recommender Systems

Langming Liu, Xiangyu Zhao, Chi Zhang, Jingtong Gao, Wanyu Wang, Wenqi Fan, Yiqi Wang, Ming He, Zitao Liu, Qing Li

AI总结:

针对传统点积注意力在长期序列推荐中复杂度高的问题,提出具备线性复杂度的L2归一化线性注意力机制LinRec,在保留注意力学习能力的同时显著提升效率,性能达到或超越现有最优模型。

摘要:

Transformer模型已在序列推荐系统(SRS)中取得显著成效。然而,传统点积注意力机制中注意力矩阵的计算会带来随序列长度呈二次方增长的复杂度,导致长期序列推荐的计算成本极高。基于上述观察,我们提出一种面向基于Transformer的序列推荐系统的新型L2归一化线性注意力机制(LinRec),该机制在理论上提升了效率,同时保留了传统点积注意力的学习能力。具体而言,通过深入分析高效注意力机制的等价条件,我们证明LinRec具备线性复杂度,同时保留了注意力机制的特性。此外,我们从统计学视角解读所提出的LinRec机制,揭示了其潜在的效率优势。我们在两个公开基准数据集上开展了大量实验,结果表明,LinRec与Transformer模型的组合取得了与当前最优的基于Transformer的SRS模型相当甚至更优的性能,同时显著提升了时间与内存效率。

英文摘要:

Transformer models have achieved remarkable success in sequential recommender systems (SRSs). However, computing the attention matrix in traditional dot-product attention mechanisms results in a quadratic complexity with sequence lengths, leading to high computational costs for long-term sequential recommendation. Motivated by the above observation, we propose a novel L2-Normalized Linear Attention for the Transformer-based Sequential Recommender Systems (LinRec), which theoretically improves efficiency while preserving the learning capabilities of the traditional dot-product attention. Specifically, by thoroughly examining the equivalence conditions of efficient attention mechanisms, we show that LinRec possesses linear complexity while preserving the property of attention mechanisms. In addition, we reveal its latent efficiency properties by interpreting the proposed LinRec mechanism through a statistical lens. Extensive experiments are conducted based on two public benchmark datasets, demonstrating that the combination of LinRec and Transformer models achieves comparable or even superior performance than state-of-the-art Transformer-based SRS models while significantly improving time and memory efficiency.

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

↑