基于时序信息增强的图注意力网络会话推荐
Session-Based Recommendation Using Graph Attention Networks Enhanced with Temporal Information
DOI: 10.12677/csa.2026.163087, PDF,    科研立项经费支持
作者: 孙 伟*, 梁秋铭:广州理工学院计算机科学与工程学院,广东 广州;陈平华:广东工业大学计算机学院,广东 广州
关键词: 会话推荐图注意力网络时序信息增强多级意图编码用户兴趣建模Session-Based Recommendation Graph Attention Networks Temporal Information Enhancement Multi-Level Intent Encoding User Interest Modeling
摘要: 针对现有基于图神经网络的会话推荐模型过度侧重图结构空间关联、忽视会话时序特性,且会话编码器依赖单一项目嵌入、难以捕捉用户长短期真实兴趣及多阶段兴趣转移的问题,本文提出基于时序信息增强的图注意力网络会话推荐模型,首先通过时序信息增强模块,融合初始项目顺序嵌入与位置嵌入,借助多头自注意力强化时序全局依赖,并引入Dropout正则化与残差连接优化特征聚合;其次构建含自连接的有向会话图,利用多层图注意力网络自适应学习邻居节点权重,实现精准多跳信息传播与噪声抑制;最后设计多级意图会话编码器,按时间顺序从近到远划分多阶段兴趣,通过多头注意力学习各阶段贡献权重并聚合,避免单一编码的片面性。实验结果显示,该模型在Tmall与Diginetica两大电商数据集的P@10、P@20、MRR@10、MRR@20四项核心指标上,均显著优于包括Transformer基方法、最新GNN变体在内的主流基线模型。消融实验进一步验证时序信息增强模块、多层图注意力机制及多级意图编码器的关键有效性,并直接证明了多级意图编码器相较于标准的“序列最后隐藏层 + 全局注意力”机制的显著优势,证明模型能深度融合时序动态与图结构关联信息,显著提升会话推荐的精准度与合理性。
Abstract: Existing graph neural network-based session-based recommendation models often overemphasize graph structural spatial relationships while neglecting sequential characteristics of sessions. Furthermore, their session encoders rely on single item embeddings, making it difficult to capture users’ long-term and short-term interests and multi-stage interest shifts. To address these issues, this paper proposes a graph attention network-based session recommendation model enhanced with temporal information. First, a temporal information enhancement module fuses initial item sequential embeddings and positional embeddings, using multi-head self-attention to strengthen global temporal dependencies, and incorporating Dropout regularization and residual connections to optimize feature aggregation. Second, a directed session graph with self-connections is constructed, and a multi-layer graph attention network is used to adaptively learn neighbor node weights, enabling accurate multi-hop information propagation and noise suppression. Finally, a multi-level intent session encoder is designed to divide interests into multiple stages chronologically from near to far, learning the contribution weights of each stage through multi-head attention and aggregating them, avoiding the limitations of single encoding. Experimental results show that the proposed model significantly outperforms mainstream baseline models including Transformer-based methods and the latest GNN variants on four key metrics (P@10, P@20, MRR@10, and MRR@20) on two major e-commerce datasets, Tmall and Diginetica. Ablation experiments further validate the critical effectiveness of the temporal information enhancement module, multi-layer graph attention mechanism, and multi-level intent encoder, and directly prove the significant advantage of the multi-level intent encoder over the standard “last hidden layer of sequence + global attention” mechanism, demonstrating that the model can deeply integrate temporal dynamics and graph structural relational information, significantly improving the accuracy and rationality of session-based recommendations.
文章引用:孙伟, 陈平华, 梁秋铭. 基于时序信息增强的图注意力网络会话推荐[J]. 计算机科学与应用, 2026, 16(3): 61-74. https://doi.org/10.12677/csa.2026.163087

参考文献

[1] Kumar, C. and Kumar, M. (2024) Session-Based Recommendations with Sequential Context Using Attention-Driven LSTM. Computers and Electrical Engineering, 115, Article ID: 109138. [Google Scholar] [CrossRef
[2] Liu, F., Cheng, Z., Zhu, L., Liu, C. and Nie, L. (2020) A2-GCN: An Attribute Aware Attentive GCN Model for Recommendation. IEEE Transactions on Knowledge and Data Engineering.
[3] 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
[4] Hasan, E., Rahman, M., Ding, C., Huang, J.X. and Raza, S. (2025) Review-Based Recommender Systems: A Survey of Approaches, Challenges and Future Perspectives. ACM Computing Surveys, 58, 1-41. [Google Scholar] [CrossRef
[5] Chang, J., Gao, C., Zheng, Y., Hui, Y., Niu, Y., Song, Y., et al. (2021) Sequential Recommendation with Graph Neural Networks. Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, 11-15 July 2021, 378-387. [Google Scholar] [CrossRef
[6] Su, X. and Khoshgoftaar, T.M. (2009) A Survey of Collaborative Filtering Techniques. Advances in Artificial Intelligence, 2009, Article ID: 421425. [Google Scholar] [CrossRef
[7] Sarwar, B., Karypis, G., Konstan, J. and Riedl, J. (2001) Item-Based Collaborative Filtering Recommendation Algo-rithms. Proceedings of the 10th International Conference on World Wide Web, 1-5 May 2001, 285-295. [Google Scholar] [CrossRef
[8] Rendle, S., Freudenthaler, C. and Schmidt-Thieme, L. (2010) Factorizing Personalized Markov Chains for Next-Basket Recommendation. Proceedings of the 19th International Conference on World Wide Web, Raleigh, 26-30 April 2010, 811-820. [Google Scholar] [CrossRef
[9] Graves, A. (2012) Long Short-Term Memory. In: Graves, A., Ed., Supervised Sequence Labelling with Recurrent Neural Networks, Springer, 37-45. [Google Scholar] [CrossRef
[10] Fan, Z., Liu, Z., Wang, Y., Wang, A., Nazari, Z., Zheng, L., et al. (2022) Sequential Recommendation via Stochastic Self-Attention. Proceedings of the ACM Web Conference 2022, 25-29 April 2022, 3036-3047. [Google Scholar] [CrossRef
[11] Liu, Q., Zeng, Y., Mokhosi, R. and Zhang, H. (2018) STAMP: Short-Term Attention/Memory Priority Model for Session-Based Recommendation. Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, London, 19-23 August 2018, 1831-1839. [Google Scholar] [CrossRef
[12] Wu, Z., Pan, S., Chen, F., Long, G., Zhang, C. and Yu, P.S. (2021) A Comprehensive Survey on Graph Neural Networks. IEEE Transactions on Neural Networks and Learning Systems, 32, 4-24. [Google Scholar] [CrossRef] [PubMed]
[13] Chang, J., Gao, C., He, X., Jin, D. and Li, Y. (2021) Bundle Recommendation and Generation with Graph Neural Networks. IEEE Transactions on Knowledge and Data Engineering, 35, 2326-2340. [Google Scholar] [CrossRef
[14] Gao, C., Wang, X., He, X. and Li, Y. (2022) Graph Neural Networks for Recommender System. Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining, 21-25 February 2022, 1623-1625. [Google Scholar] [CrossRef
[15] 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
[16] Yu, F., Zhu, Y., Liu, Q., Wu, S., Wang, L. and Tan, T. (2020) TAGNN: Target Attentive Graph Neural Networks for Session-Based Recommendation. Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, 25-30 July 2020, 1921-1924. [Google Scholar] [CrossRef
[17] Wei, P., Shu, H., Gan, J., Deng, X., Liu, Y., Sun, W., et al. (2025) Sequential Recommendation System Based on Deep Learning: A Survey. Electronics, 14, Article 2134. [Google Scholar] [CrossRef
[18] Ma, Y. and Gan, M. (2021) DeepAssociate: A Deep Learning Model Exploring Sequential Influence and History-Candidate Association for Sequence Recommendation. Expert Systems with Applications, 185, Article ID: 115587. [Google Scholar] [CrossRef
[19] Wang, R., Lou, J. and Jiang, Y. (2022) Session-Based Recommendation with Time-Aware Neural Attention Network. Expert Systems with Applications, 210, Article ID: 118395. [Google Scholar] [CrossRef
[20] Kang, W. and McAuley, J. (2018) Self-Attentive Sequential Recommendation. 2018 IEEE International Conference on Data Mining (ICDM), Singapore, 17-20 November 2018, 197-206. [Google Scholar] [CrossRef
[21] Sun, F., Liu, J., Wu, J., Pei, C., Lin, X., Ou, W., et al. (2019) BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer. Proceedings of the 28th ACM International Conference on Information and Knowledge Management, Beijing, 3-7 November 2019, 1441-1450. [Google Scholar] [CrossRef