A Position-Aware Self-Attention Neural Model for Personalized Session-Based Recommendation

Document Type : Original Article

Authors

Department of Computer Engineering, Yazd University, Yazd, Iran

Abstract

Personalized session-based recommendation seeks to predict the user's next click or interaction based on the user's previous interactions and behaviour in the present and historical sessions. Recent research has focused on self-attention networks (SANs) to capture users' global interests and behaviours. Thanks to their modeling of the global dependencies among session interactions, SANs have exhibited superior performance in session-based recommendation compared to other deep network approaches. These networks do not account for items' position and order in the session sequence. Nonetheless, the sequential data of the sessions and the item order in the session sequence can reflect the user's sequential interests and improve the recommendation's performance. This article proposes a Position-Aware Self-Attention Neural (PASAN) model for personalized session-based recommendations. The model uses a reverse-position encoding mechanism that assigns position embedding to items based on their order in the session sequence. The PASAN model jointly learns global interests through the self-attention network and sequential interests via positional encoding. Moreover, it employs users' historical and current session interactions to model their long-term preferences. First, PASAN is trained using anonymous sessions. Subsequently, personalized recommendations are provided for individual users by combining the current session with their historical sessions in a weighted manner. Experiments conducted on two real-world datasets show that the proposed model outperforms the current methods. The proposed model has improved by about 20% in terms of precision and about 8% in terms of mean reciprocal rank on the Reddit dataset.

Keywords


[1] B. Sarwar, G. Karypis, J. Konstan, and J. Riedl, "Item-based collaborative filtering recommendation algorithms," in Proceedings of the 10th International Conference on World Wide Web, pp. 285-295, 2001.
[2] Y. Koren, R. Bell, and C. Volinsky, "Matrix factorization techniques for recommender systems," Computer, vol. 42, no. 8, pp. 30-37, 2009.
[3] J. B. Schafer, D. Frankowski, J. Herlocker, and S. Sen, "Collaborative filtering recommender systems," in The adaptive web: methods and strategies of web personalization: Springer, pp. 291-324, 2007.
[4] M. Rajabzadeh and R. Rafeh, "Proposing a hybrid recommender system for e-commerce," Tabriz Journal of Electrical Engineering, vol. 45, no. 4, pp. 85-91, 2015 (in persian).
[5] F. Tahmasebi, M. Meghdadi, and S. Ahmadian, "A novel hybrid approach based on profile expansion technique to improve cold start problem in recommender systems," Tabriz Journal of Electrical Engineering, vol. 48, no. 1, pp. 151-159, 2018 (in persian).
[6] M. Quadrana, A. Karatzoglou, B. Hidasi, and P. Cremonesi, "Personalizing session-based recommendations with hierarchical recurrent neural networks," in Proceedings of the 11th ACM Conference on Recommender Systems, pp. 130-137, 2017.
[7] S. Wang, L. Cao, Y. Wang, Q. Z. Sheng, M. A. Orgun, and D. Lian, "A survey on session-based recommender systems," ACM Computing Surveys (CSUR), vol. 54, no. 7, pp. 1-38, 2021.
[8] M. Ludewig and D. Jannach, "Evaluation of session-based recommendation algorithms," User Modeling and User-Adapted Interaction, vol. 28, no. 4-5, pp. 331-390, 2018.
[9] S. Rendle, C. Freudenthaler, and L. Schmidt-Thieme, "Factorizing personalized markov chains for next-basket recommendation," in Proceedings of the 19th International Conference on World Wide Web, pp. 811-820, 2010.
[10] G. Shani, D. Heckerman, R. I. Brafman, and C. Boutilier, "An MDP-based recommender system," Journal of Machine Learning Research, vol. 6, no. 9, pp. 1265–1295, 2005.
[11] B. Hidasi, A. Karatzoglou, L. Baltrunas, and D. Tikk, "Session-based recommendations with recurrent neural networks," in Proceedings of the 4th International Conference on Learning Representations (ICLR), pp. 1-10, 2016.
[12] Y. K. Tan, X. Xu, and Y. Liu, "Improved recurrent neural networks for session-based recommendations," in Proceedings of the 1st Workshop on Deep Learning for Recommender Systems, pp. 17-22, 2016.
[13] B. Hidasi and A. Karatzoglou, "Recurrent neural networks with top-k gains for session-based recommendations," in Proceedings of the 27th ACM International Conference on Information and Knowledge Management (CIKM), pp. 843-852, 2018.
[14] J. Li, P. Ren, Z. Chen, Z. Ren, T. Lian, and J. Ma, "Neural attentive session-based recommendation," in Proceedings of the ACM Conference on Information and Knowledge Management (CIKM), pp. 1419-1428, 2017.
[15] S. Wu, Y. Tang, Y. Zhu, L. Wang, X. Xie, and T. Tan, "Session-based recommendation with graph neural networks," in Proceedings of the AAAI Conference on Artificial Intelligence, pp. 346-353, 2019.
[16] C. Xu et al., "Graph contextualized self-attention network for session-based recommendation," in Proceedings of the 28th International Joint Conference on Artificial Intelligence (IJCAI-19), pp. 3940-3946, 2019.
[17] W. Song, Z. Xiao, Y. Wang, L. Charlin, M. Zhang, and J. Tang, "Session-based social recommendation via dynamic graph attention networks," in Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining (WSDM), pp. 555-563, 2019.
[18] A. Vaswani et al., "Attention is all you need," in Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS), pp. 5998-6008, 2017.
[19] J. Fang, "Session-based recommendation with self-attention networks," arXiv preprint arXiv:2102.01922, 2021.
[20] P. H. Anh, N. X. Bach, and T. M. Phuong, "Session-based recommendation with self-attention," in Proceedings of the 10th International Symposium on Information and Communication Technology, pp. 1-8, 2019.
[21] R. Mehta and K. Rana, "A review on matrix factorization techniques in recommender systems," in Proceedings of the 2nd International Conference on Communication Systems, Computing and IT Applications (CSCITA), pp. 269-274, 2017.
[22] R. Salakhutdinov and A. Mnih, "Probabilistic matrix factorization," in Advances in Neural Information Processing Systems, pp. 1257-1264, 2008.
[23] D. Jannach and M. Ludewig, "When recurrent neural networks meet the neighborhood for session-based recommendation," in Proceedings of the 11th ACM Conference on Recommender Systems, pp. 306-310, 2017.
[24] R. He and J. McAuley, "Fusing similarity models with markov chains for sparse sequential recommendation," in Proceedings of the 16th International Conference on Data Mining (ICDM), pp. 191-200, 2016.
[25] S. Wang, L. Hu, Y. Wang, L. Cao, Q. Z. Sheng, and M. Orgun, "Sequential recommender systems: challenges, progress and prospects," in Proceedings of the International Joint Conferences on Artificial Intelligence (IJCAI’19), pp. 6332–6338, 2019.
[26] Q. Liu, Y. Zeng, R. Mokhosi, and H. Zhang, "STAMP: short-term attention/memory priority model for session-based recommendation," in Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1831-1839, 2018.
[27] M. Wang, P. Ren, L. Mei, Z. Chen, J. Ma, and M. de Rijke, "A collaborative session-based recommendation approach with parallel memory modules," in Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 345-354, 2019.
[28] Z. Zhang and B. Wang, "Learning sequential and general interests via a joint neural model for session-based recommendation," Neurocomputing, vol. 415, pp. 165-173, 2020.
[29] C. Kumar and M. Kumar, "Session-based recommendations with sequential context using attention-driven LSTM," Computers and Electrical Engineering, vol. 115, p. 109138, 2024.
[30] Z. Wang, W. Wei, G. Cong, X.-L. Li, X.-L. Mao, and M. Qiu, "Global context enhanced graph neural networks for session-based recommendation," in Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 169-178, 2020.
[31] F. Yu, Y. Zhu, Q. Liu, S. Wu, L. Wang, and T. Tan, "TAGNN: Target attentive graph neural networks for session-based recommendation," in Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 1921-1924, 2020.
[32] T. Chen and R. C.-W. Wong, "Handling information loss of graph neural networks for session-based recommendation," in Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1172-1180, 2020.
[33] Z. Sheng, T. Zhang, Y. Zhang, and S. Gao, "Enhanced graph neural network for session-based recommendation," Expert Systems with Applications, vol. 213, p. 118887, 2023.
[34] W. Liu, Z. Zhang, Y. Ding, and B. Wang, "Global heterogeneous graph enhanced category-aware attention network for session-based recommendation," Expert Systems with Applications, vol. 243, p. 122907, 2024.
[35] J. Qiao, L. Wang, and L. Duan, "Sequence and graph structure co-awareness via gating mechanism and self-attention for session-based recommendation," International Journal of Machine Learning and Cybernetics, vol. 12, no. 9, pp. 2591-2605, 2021.
[36] G. Zhu, H. Hou, J. Chen, C. Yuan, and Y. Huang, "Transition relation aware self-attention for session-based recommendation," arXiv preprint arXiv:2203.06407, 2022.
[37] W. Pan and K. Yang, "Enhanced multi-head self-attention graph neural networks for session-based recommendation," Engineering Letters, vol. 30, no. 1, 2022.
[38] J. Wang, Q. Xu, J. Lei, C. Lin, and B. Xiao, "PA-GGAN: Session-based recommendation with position-aware gated graph attention network," in Proceedings of the IEEE International Conference on Multimedia and Expo (ICME), pp. 1-6, 2020.
[39] S. Sang, W. Yuan, W. Li, Z. Yang, Z. Zhang, and N. Liu, "Position-aware graph neural network for session-based recommendation," Knowledge-Based Systems, vol. 262, p. 110201, 2023.
[40] T. Lu, X. Xiao, Y. Xiao, and J. Wen, "GTPAN: Global target preference attention network for session-based recommendation," Expert Systems with Applications, vol. 243, p. 122900, 2024.
[41] M. Ruocco, O. S. L. Skrede, and H. Langseth, "Inter-session modeling for session-based recommendation," in Proceedings of the 2nd Workshop on Deep Learning for Recommender Systems, pp. 24-31, 2017.
[42] J. You, Y. Wang, A. Pal, P. Eksombatchai, C. Rosenburg, and J. Leskovec, "Hierarchical temporal convolutional networks for dynamic recommender systems," in Proceedings of the World Wide Web Conference (WWW’19), pp. 2236-2246, 2019.
[43] M. Zhang, S. Wu, M. Gao, X. Jiang, K. Xu, and L. Wang, "Personalized graph neural networks with attention mechanism for session-aware recommendation," IEEE Transactions on Knowledge and Data Engineering, vol. 34, no. 8, pp. 3946-3957, 2020.
[44] Y. Pang et al., "Heterogeneous global graph neural networks for personalized session-based recommendation," in Proceedings of the fifteenth ACM International Conference on Web Search and Data Mining (WSDM), pp. 775-783, 2022.
[45] H. Wang, H. Bai, J. Huo, and M. Yang, "A graph convolution neural network for user-group aided personalized session-based recommendation," in Proceedings of the International Conference on Neural Information Processing (ICONIP), pp. 332-345, 2023.
[46] H. Vaghari, M. H. Aghdam, and H. Emami, "DIARec: Dynamic intention-aware recommendation with attention-based context-aware item attributes modeling," Journal of Artificial Intelligence and Soft Computing Research, vol. 14, no. 2, pp. 171-189, 2024.
[47] A. Ramazani and A. M. Zareh-Bidoki, "Provide a personalized session-based recommender system with self-attention networks," Iranian Journal of Electrical and Computer Engineering (IJECE), vol. 20, no. 3, pp. 236-244, 2022 (in persian).