Skip to main content
Log in

BA-GNN: Behavior-aware graph neural network for session-based recommendation

  • Research Article
  • Published:
Frontiers of Computer Science Aims and scope Submit manuscript

Abstract

Session-based recommendation is a popular research topic that aims to predict users’ next possible interactive item by exploiting anonymous sessions. The existing studies mainly focus on making predictions by considering users’ single interactive behavior. Some recent efforts have been made to exploit multiple interactive behaviors, but they generally ignore the influences of different interactive behaviors and the noise in interactive sequences. To address these problems, we propose a behavior-aware graph neural network for session-based recommendation. First, different interactive sequences are modeled as directed graphs. Thus, the item representations are learned via graph neural networks. Then, a sparse self-attention module is designed to remove the noise in behavior sequences. Finally, the representations of different behavior sequences are aggregated with the gating mechanism to obtain the session representations. Experimental results on two public datasets show that our proposed method outperforms all competitive baselines. The source code is available at the website of GitHub.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Wang S, Cao L, Wang Y, Sheng Q Z, Orgun M A, Lian D. A survey on session-based recommender systems. ACM Computing Surveys, 2022, 54(7): 154:1–154:38

    Article  Google Scholar 

  2. Hidasi B, Karatzoglou A, Baltrunas L, Tikk D. Session-based recommendations with recurrent neural networks. In: Proceedings of the 4th International Conference on Learning Representations. 2016, 1–10

  3. Li J, Ren P, Chen Z, Ren Z, Lian T, Ma J. Neural attentive session-based recommendation. In: Proceedings of 2017 ACM Conference on Information and Knowledge Management. 2017, 1419–1428

  4. Wang Z, Wei W, Cong G, Li X L, Mao X L, Qiu M. 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. 2020, 169–178

  5. Wu S, Tang Y, Zhu Y, Wang L, Xie X, Tan T. Session-based recommendation with graph neural networks. In: Proceedings of the 33rd AAAI Conference on Artificial Intelligence. 2019, 346–353

  6. Xu C, Zhao P, Liu Y, Sheng V S, Xu J, Zhuang F, Fang J, Zhou X. Graph contextualized self-attention network for session-based recommendation. In: Proceedings of the 28th International Joint Conference on Artificial Intelligence. 2019, 3940–3946

  7. Yu F, Zhu Y, Liu Q, Wu S, Wang L, Tan T. 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. 2020, 1921–1924

  8. Wang W, Zhang W, Liu S, Liu Q, Zhang B, Lin L, Zha H. Beyond clicks: modeling multi-relational item graph for session-based target behavior prediction. In: Proceedings of the Web Conference 2020. 2020, 3056–3062

  9. Shani G, Heckerman D, Brafman R I.. An MDP-based recommender system. Journal of Machine Learning Research, 2005, 6(9): 1265–1295

    MathSciNet  MATH  Google Scholar 

  10. Rendle S, Freudenthaler C, Schmidt-Thieme L. Factorizing personalized Markov chains for next-basket recommendation. In: Proceedings of the 19th International Conference on World Wide Web. 2010, 811–820

  11. Garg D, Gupta P, Malhotra P, Vig L, Shroff G. Sequence and time aware neighborhood for session-based recommendations: STAN. In: Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval. 2019, 1069–1072

  12. Jannach D, Ludewig M. When recurrent neural networks meet the neighborhood for session-based recommendation. In: Proceedings of the 11th ACM Conference on Recommender Systems. 2017, 306–310

  13. Tan Y K, Xu X, Liu Y. Improved recurrent neural networks for session-based recommendations. In: Proceedings of the 1st Workshop on Deep Learning for Recommender Systems. 2016, 17–22

  14. Liu Q, Zeng Y, Mokhosi R, Zhang H. 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. 2018, 1831–1839

  15. Song J, Shen H, Ou Z, Zhang J, Xiao T, Liang S. ISLF: interest shift and latent factors combination model for session-based recommendation. In: Proceedings of the 28th International Joint Conference on Artificial Intelligence. 2019, 5765–5771

  16. Wang S, Hu L, Wang Y, Sheng Q Z, Orgun M, Cao L. Modeling multipurpose sessions for next-item recommendations via mixture-channel purpose routing networks. In: Proceedings of the 28th International Joint Conference on Artificial Intelligence. 2019, 3771–3777

  17. Qiu R, Li J, Huang Z, Yin H. Rethinking the item order in session-based recommendation with graph neural networks. In: Proceedings of the 28th ACM International Conference on Information and Knowledge Management. 2019, 579–588

  18. Gwadabe T R, Liu Y. Improving graph neural network for session-based recommendation system via non-sequential interactions. Neurocomputing, 2022, 468: 111–122

    Article  Google Scholar 

  19. Le D T, Lauw H W, Fang Y. Modeling contemporaneous basket sequences with twin networks for next-item recommendation. In: Proceedings of the 27th International Joint Conference on Artificial Intelligence. 2018, 3414–3420

  20. Meng W, Yang D, Xiao Y. Incorporating user micro-behaviors and item knowledge into multi-task learning for session-based recommendation. In: Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval. 2020, 1091–1100

  21. Li Y, Tarlow D, Brockschmidt M, Zemel R S. Gated graph sequence neural networks. In: Proceedings of the 4th International Conference on Learning Representations. 2016, 1–20

  22. Bridle J S. Probabilistic interpretation of feedforward classification network outputs, with relationships to statistical pattern recognition. Neurocomputing, 1990, 68: 227–236

    Article  MathSciNet  Google Scholar 

  23. Martins A F T, Astudillo R F. From Softmax to Sparsemax: a sparse model of attention and multi-label classification. In: Proceedings of the 33rd International Conference on Machine Learning. 2016, 1614–1623

  24. Yuan J, Song Z, Sun M, Wang X, Zhao W X. Dual sparse attention network for session-based recommendation. In: Proceedings of the 35th AAAI Conference on Artificial Intelligence. 2021, 4635–4643

  25. Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez A N, Kaiser ł, Polosukhin I. Attention is all you need. In: Proceedings of the 31st International Conference on Neural Information Processing Systems. 2017, 6000–6010

  26. Sarwar B, Karypis G, Konstan J, Riedl J. Item-based collaborative filtering recommendation algorithms. In: Proceedings of the 10th International Conference on World Wide Web. 2001, 285–295

Download references

Acknowledgements

This research was supported by the National Natural Science Foundation of China (Grant Nos. 62072288, 61702306, 61433012), the Taishan Scholar Program of Shandong Province, the Natural Science Foundation of Shandong Province (ZR2018BF013, ZR2022MF268), and the Open Project from CAS Key Lab of Network Data Science and Technology (CASNDST202007).

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Zhongying Zhao or Maoguo Gong.

Additional information

Yongquan Liang received the PhD degree from Institute of Computing Technology, Chinese Academy of Sciences, China in 1999. He is currently a professor in School of Computer Science and Engineering, Shandong University of Science and Technology, China. His research interests include social network analysis, expert system and data mining.

Qiuyu Song is pursuing the Master degree in School of Computer Science and Engineering, Shandong University of Science and Technology, China. Her research interests include sessionbased recommendation and graph neural networks.

Zhongying Zhao (Corresponding author) received the PhD degree from Institute of Computing Technology, Chinese Academy of Sciences, China in 2012. She is currently an associate professor in School of Computer Science and Engineering, Shandong University of Science and Technology, China. Her research interests include social network analysis, graph neural networks and data mining. She has published more than 40 papers in international journals and conferences, such as IEEE Transactions on Network Science and Engineering, ACM Transactions on Multimedia Computing, Communications, and Applications.

Hui Zhou received the MS degree in computer science from Shandong University of Science and Technology, China in 2020. She is currently pursuing PhD degree in pattern recognition and intelligent systems from School of Electronic Engineering, the Key Laboratory of Intelligent Perception and Image Understanding of Ministry of Education of China, Xidian University, China. Her research interests include graph neural networks, network embedding, and artificial intelligence.

Maoguo Gong (Corresponding author) received the BSc degree in electronic engineering and the PhD degree in electronic science and technology from Xidian University, China in 2003 and 2009, respectively. Since 2006, he has been a Teacher with Xidian University, where he was promoted as an Associate Professor and as a Full Professor in 2008 and 2010, with exceptive admission. His research interests are in the areas of computational intelligence with applications to optimization, learning, data mining, and image understanding. Prof. Gong is currently the Vice Chair of the IEEE Computational Intelligence Society Task Force on Memetic Computing. He is an Executive Committee Member of the Chinese Association for Artificial Intelligence and a Senior Member of the Chinese Computer Federation.

Electronic Supplementary Material

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Liang, Y., Song, Q., Zhao, Z. et al. BA-GNN: Behavior-aware graph neural network for session-based recommendation. Front. Comput. Sci. 17, 176613 (2023). https://doi.org/10.1007/s11704-022-2324-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11704-022-2324-x

Keywords

Navigation