基于图神经网络和注意力机制提取兴趣的会话推荐算法
A Session-Based Recommendation Algorithm for Extracting Interest Based on Graph Neural Network and Attention Mechanism
DOI: 10.12677/aam.2025.144171, PDF,   
作者: 金 瑾:中国地质大学(武汉)数学与物理学院,湖北 武汉
关键词: 会话推荐图神经网络提示学习注意力机制Session-Based Recommendation Graph Neural Network Prompt Learning Attention Mechanism
摘要: 随着用户的隐私意识逐渐增强,平台上存在着大量匿名用户的交互数据,如何为匿名用户进行个性化推荐成为推荐系统备受关注的话题,基于会话的推荐应运而生。会话推荐指的是基于用户当前会话中的交互历史进行推荐,而不依赖用户长期历史行为数据或用户个人属性信息。本文针对现有会话推荐模型难以捕捉用户动态兴趣的问题,提出了一种基于提示词的动态兴趣提取会话推荐模型(Dual-channel Prompt-based Interest Extraction, DPIE)。该模型使用图神经网络作为训练阶段,引入兴趣提示词,通过设计滑动注意力窗口机制,对会话中的项目进行细粒度的表示学习,自适应地捕捉用户兴趣的变化,结合提示词增强项目的语义表示,得到动态兴趣表示。同时,引入位置编码,结合长期兴趣提示词学习用户的长期兴趣表示。这种设计使得模型能够更好地建模用户兴趣的动态变化过程,解耦动态兴趣和长期兴趣,从而提供更精准的推荐,在多个真实数据集上的实验结果验证了该方法的有效性。
Abstract: With heightened user privacy awareness, anonymous user interaction data is prevalent on platforms. Personalizing recommendations for anonymous users has become a focal point in recommender systems, leading to the rise of session-based recommendation. Session-based recommendation focuses on leveraging interaction history within the current session, rather than long-term user history or profile attributes. Addressing the challenge of existing session-based models in capturing dynamic user interests, this paper proposes a Dual-channel Prompt-based Interest Extraction (DPIE) model. DPIE employs graph neural networks in the training phase and introduces interest prompts. By designing a sliding attention window mechanism, it enables fine-grained representation learning of items within a session, adaptively capturing shifts in user interests, and enhances item semantic representations with prompts to derive dynamic interest representations. Furthermore, position encoding is incorporated, combined with long-term interest prompts to learn long-term user interest representations. This design allows the model to better model the dynamic evolution of user interests, decoupling dynamic and long-term interests for more precise recommendations. Experimental results on multiple real-world datasets validate the effectiveness of the proposed approach.
文章引用:金瑾. 基于图神经网络和注意力机制提取兴趣的会话推荐算法[J]. 应用数学进展, 2025, 14(4): 390-402. https://doi.org/10.12677/aam.2025.144171

参考文献

[1] 王喆. 深度学习推荐系统[M]. 北京: 电子工业出版社, 2020: 1-9.
[2] Li, Z., Yang, C., Chen, Y., Wang, X., Chen, H., Xu, G., et al. (2024) Graph and Sequential Neural Networks in Session-Based Recommendation: A Survey. ACM Computing Surveys, 57, 1-37. [Google Scholar] [CrossRef
[3] 程章桃, 黄浩燃, 薛荷, 等. 基于提示学习与超图的事件因果关系识别模型[J/OL]. 计算机科学: 1-16.
https://link.cnki.net/urlid/50.1075.TP.20241211.1841.034, 2025-04-14.
[4] 崔金满, 李冬梅, 田萱, 等. 提示学习研究综述[J]. 计算机工程与应用, 2024, 60(23): 1-27.
[5] Zhu, Y., Wang, Y., Shi, H., Zhang, Z., Jiao, D. and Tang, S. (2024) GraphControl: Adding Conditional Control to Universal Graph Pre-Trained Models for Graph Domain Transfer Learning. Proceedings of the ACM Web Conference 2024, Singapore, 13-17 May 2024, 539-550. [Google Scholar] [CrossRef
[6] Hidasi, B., Karatzoglou, A., Baltrunas, L. and Tikk, D. (2016) Session-Based Recommendations with Recurrent Neural Networks. 4th International Conference on Learning Representations, ICLR 2016, San Juan, 2-4 May 2016.
[7] Li, J., Ren, P., Chen, Z., Ren, Z., Lian, T. and Ma, J. (2017). Neural Attentive Session-Based Recommendation. Proceedings of the 2017 ACM on Conference on Information and Knowledge Management, Singapore Singapore, 6-10 November 2017, 1419-1428.[CrossRef
[8] Wu, S., Tang, Y., Zhu, Y., Wang, L., Xie, X. and Tan, T. (2019) Session-Based Recommendation with Graph Neural Networks. Proceedings of the AAAI Conference on Artificial Intelligence, 33, 346-353. [Google Scholar] [CrossRef
[9] Wang, J., Ding, K., Zhu, Z. and Caverlee, J. (2021) Session-Based Recommendation with Hypergraph Attention Networks. In: Demeniconi, C., Davidson, I., Akoglu, L. and Terzi, E., Eds., Proceedings of the 2021 SIAM International Conference on Data Mining (SDM), Society for Industrial and Applied Mathematics, 82-90. [Google Scholar] [CrossRef
[10] Xia, X., Yin, H., Yu, J., Wang, Q., Cui, L. and Zhang, X. (2021) Self-Supervised Hypergraph Convolutional Networks for Session-Based Recommendation. Proceedings of the AAAI Conference on Artificial Intelligence, 35, 4503-4511. [Google Scholar] [CrossRef
[11] Xia, X., Yin, H., Yu, J., Shao, Y. and Cui, L. (2021) Self-Supervised Graph Co-Training for Session-Based Recommendation. Proceedings of the 30th ACM International Conference on Information & Knowledge Management, 1-5 November 2021, 2108-2190. [Google Scholar] [CrossRef
[12] Shi, Z., Wang, X. and Lipani, A. (2024) Self Contrastive Learning for Session-Based Recommendation. In: Goharian, N., et al., Eds., Advances in Information Retrieval, Springer, 3-20. [Google Scholar] [CrossRef