Skip to main content
Log in

Long- and short-term collaborative attention networks for sequential recommendation

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

Abstract

Sequential recommendation models the users’ historical interaction sequence and predicts which item the user will click next. To better capture the users’ hobbies, most models utilize the users’ interaction sequence to capture the users’ long-term hobbies, while ignoring the users’ short-term intentions. Recently, some work has focused on capturing users’ long-term hobbies and short-term intentions to predict the next item recommendation. However, they only consider the information about the user’s interaction sequence and ignore the information about the collaboration between different user interaction sequences. This paper proposes a Long- and Short-Term Collaborative attention network for Sequential Recommendation (LSTCSR) to better capture and integrate users’ long-term and short-term hobbies. Specifically, we construct an item–item graph with the interaction sequences of different users to obtain information on the collaboration between items in different sequences. It then uses a self-attention network to capture the users’ long-term hobbies and utilizes convolutional filters of different sizes to capture the users’ multiple short-term intentions. Finally, the users’ long-term hobbies and short-term intentions are integrated through the collaborative information of the item–item graph to predict the next item recommendation. Experiments on 3 public benchmark datasets show that LSTCSR model outperforms several state-of-the-art methods, further demonstrating the effectiveness of the LSTCSR model.

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.

Fig. 1
Fig. 2
Fig. 3

Similar content being viewed by others

Data Availability

Links to datasets during the current study period are available at https://www.kaggle.com/datasets/prajitdatta/movielens-100k-dataset, https://www.kaggle.com/datasets/odedgolden/movielens-1m-dataset and https://www.kaggle.com/datasets/deovcs/amazon-dataset.

Code Availability

Not applicable.

References

  1. He X, Liao L, Zhang H, Nie L, Hu X, Chua T-S (2017) Neural collaborative filtering. In: Proceedings of the 26th International Conference on World Wide Web, pp 173–182

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

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

  4. Hidasi B, Karatzoglou A, Baltrunas L, Tikk D (2015) Session-based recommendations with recurrent neural networks. arXiv preprint arXiv:1511.06939

  5. Tan Q, Zhang J, Yao J, Liu N, Zhou J, Yang H, Hu X (2021) Sparse-interest network for sequential recommendation. In: Proceedings of the 14th ACM International Conference on Web Search and Data Mining, pp 598–606

  6. Zhang S, Yao L, Sun A, Tay Y (2019) Deep learning based recommender system: a survey and new perspectives. ACM Comput Surv (CSUR) 52(1):1–38

    Article  Google Scholar 

  7. Beutel A, Covington P, Jain S, Xu C, Li J, Gatto V, Chi EH (2018) Latent cross: making use of context in recurrent recommender systems. In: Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining, pp 46–54

  8. Peng B, Ren Z, Parthasarathy S, Ning X (2021) Ham: hybrid associations models for sequential recommendation. IEEE Trans Knowl Data Eng 34(10):4838–4853

    Article  Google Scholar 

  9. Hidasi B, Karatzoglou A (2018) Recurrent neural networks with top-k gains for session-based recommendations. In: Proceedings of the 27th ACM International Conference on Information and Knowledge Management, pp 843–852

  10. Quadrana M, Karatzoglou A, Hidasi B, Cremonesi P (2017) Personalizing session-based recommendations with hierarchical recurrent neural networks. In: Proceedings of the Eleventh ACM Conference on Recommender Systems, pp 130–137

  11. Tang J, Wang K (2018) Personalized top-n sequential recommendation via convolutional sequence embedding. In: Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining, pp 565–573

  12. Wang J, Zhu L, Dai T, Wang Y (2020) Deep memory network with bi-lstm for personalized context-aware citation recommendation. Neurocomputing 410:103–113

    Article  Google Scholar 

  13. Bahdanau D, Cho K, Bengio Y (2014) Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473

  14. Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, Kaiser Ł, Polosukhin I (2017) Attention is all you need. Advances in Neural Information Processing Systems 30

  15. Kang W-C, McAuley J (2018) Self-attentive sequential recommendation. In: 2018 IEEE International Conference on Data Mining (ICDM), IEEE, pp 197–206

  16. Liu Q, Zeng Y, Mokhosi R, Zhang H (2018) 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

  17. Liu Z, Fan Z, Wang Y, Yu PS (2021) Augmenting sequential recommendation with pseudo-prior items via reversely pre-training transformer. In: Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp 1608–1612

  18. Li J, Wang Y, McAuley J (2020) Time interval aware self-attention for sequential recommendation. In: Proceedings of the 13th International Conference on Web Search and Data Mining, pp 322–330

  19. Fan Z, Liu Z, Zhang J, Xiong Y, Zheng L, Yu PS (2021) Continuous-time sequential recommendation with temporal graph collaborative transformer. In: Proceedings of the 30th ACM International Conference on Information & Knowledge Management, pp 433–442

  20. Qiu R, Li J, Huang Z, Yin H (2019) 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, pp 579–588

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

  22. Zhang M, Wu S, Gao M, Jiang X, Xu K, Wang L (2020) Personalized graph neural networks with attention mechanism for session-aware recommendation. IEEE Trans Knowl Data Eng 34(8):3946–57

    Article  Google Scholar 

  23. Zhang L, Liu Y, Zhou X, Miao C, Wang G, Tang H (2022) Diffusion-based graph contrastive learning for recommendation with implicit feedback. In: Database Systems for Advanced Applications: 27th International Conference, DASFAA 2022, Virtual Event, April 11–14, 2022, Proceedings, Part II, Springer, pp 232–247

  24. Xie X, Sun F, Liu Z, Wu S, Gao J, Zhang J, Ding B, Cui B (2022) Contrastive learning for sequential recommendation. In: 2022 IEEE 38th International Conference on Data Engineering (ICDE), IEEE, pp 1259–1273

  25. Yu Z, Lian J, Mahmoody A, Liu G, Xie X (2019) Adaptive user modeling with long and short-term preferences for personalized recommendation. In: IJCAI, pp 4213–4219

  26. Tan Q, Zhang J, Liu N, Huang X, Yang H, Zhou J, Hu X, et al. (2021) Dynamic memory based attention network for sequential recommendation. arXiv preprint arXiv:2102.09269

  27. Song W, Wang S, Wang Y, Wang S (2021) Next-item recommendations in short sessions. In: Proceedings of the 15th ACM Conference on Recommender Systems, pp 282–291

  28. Ji W, Wang K, Wang X, Chen T, Cristea A (2020) Sequential recommender via time-aware attentive memory network. In: Proceedings of the 29th ACM International Conference on Information & Knowledge Management, pp 565–574

  29. Rendle S, Freudenthaler C, Gantner Z, Schmidt-Thieme L (2012) Bpr: Bayesian personalized ranking from implicit feedback. arXiv preprint arXiv:1205.2618

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

  31. Yu Z, Lian J, Mahmoody A, Liu G, Xie X (2019) Adaptive user modeling with long and short-term preferences for personalized recommendation. In: IJCAI, pp 4213–4219

  32. Zhao W, Wang B, Ye J, Gao Y, Yang M, Chen X (2018) Plastic: prioritize long and short-term information in top-n recommendation using adversarial training. In: IJCAI, pp 3676–3682

  33. Ma C, Kang P, Liu X (2019) Hierarchical gating networks for sequential recommendation. In: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp 825–833

  34. Kipf TN, Welling M (2016) Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907

  35. Veličković P, Cucurull G, Casanova A, Romero A, Lio P, Bengio Y (2017) Graph attention networks. arXiv preprint arXiv:1710.10903

  36. Ma C, Ma L, Zhang Y, Sun J, Liu X, Coates M (2020) Memory augmented graph neural networks for sequential recommendation. In: Proceedings of the AAAI Conference on Artificial Intelligence Vol 34, pp. 5045–5052

  37. Xu C, Zhao P, Liu Y, Sheng VS, Xu J, Zhuang F, Fang J, Zhou X (2019) Graph contextualized self-attention network for session-based recommendation. In: IJCAI Vol 19 pp 3940–3946

  38. Chen J, Zhang H, He X, Nie L, Liu W, Chua T-S (2017) Attentive collaborative filtering: multimedia recommendation with item-and component-level attention. In: Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp 335–344

  39. Wang S, Hu L, Cao L, Huang X, Lian D, Liu W (2018) Attention-based transactional context embedding for next-item recommendation. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 32

  40. Zhang T, Xia C, Yu PS, Liu Z, Zhao S (2021) Pdaln: Progressive domain adaptation over a pre-trained model for low-resource cross-domain named entity recognition. In: EMNLP

  41. Yuan E, Guo W, He Z, Guo H, Liu C, Tang R (2022) Multi-behavior sequential transformer recommender. In: Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp 1642–1652

  42. Xu C, Feng J, Zhao P, Zhuang F, Wang D, Liu Y, Sheng VS (2021) Long-and short-term self-attention network for sequential recommendation. Neurocomputing 423:580–589

    Article  Google Scholar 

  43. Fan Z, Liu Z, Wang Y, Wang A, Nazari Z, Zheng L, Peng H, Yu PS (2022) Sequential recommendation via stochastic self-attention. In: Proceedings of the ACM Web Conference 2022, pp 2036–2047

  44. McAuley J, Targett C, Shi Q, Van Den Hengel A (2015) Image-based recommendations on styles and substitutes. In: Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp 43–52

  45. Zhang M, Wu S, Yu X, Liu Q, Wang L (2022) Dynamic graph neural networks for sequential recommendation. IEEE Trans Knowl Data Eng. https://doi.org/10.1109/TKDE.2022.3151618

    Article  Google Scholar 

Download references

Acknowledgements

The National Natural Science Foundation of China (No. 61772295, 61572270, and 61173056). The Science and Technology Research Program of Chongqing Municipal Education Commission (Grant No. KJZD-M202000501). Chongqing Technology Innovation and application development special general project (cstc2020jscx-lyjsAX0002). Chongqing Technology Foresight and system innovation project (cstc2021jsyj-yzysbAX0011). Open Fund of Advanced Cryptography and System Security Key Laboratory of Sichuan Province (Grant No. SKLACSS--202208).

Funding

This research was supported by the National Natural Science Foundation of China (No. 61772295, 61572270, and 61173056). The Science and Technology Research Program of Chongqing Municipal Education Commission (Grant No. KJZD-M202000501). Chongqing Technology Innovation and application development special general project (cstc2020jscx-lyjsAX0002). Chongqing Technology Foresight and system innovation project (cstc2021jsyj-yzysbAX0011). Open Fund of Advanced Cryptography and System Security Key Laboratory of Sichuan Province (Grant No. SKLACSS--202208).

Author information

Authors and Affiliations

Authors

Contributions

Yongfu Zha is responsible for algorithm design and manuscript writing. Yumin Dong is responsible for the theory proposal and checking the structure of the thesis. Xinji Zha and Yongjian Zhang are responsible for data collection and experimental validation.

Corresponding author

Correspondence to Yumin Dong.

Ethics declarations

Conflict of interest

Conflict of interest is not applicable in this work.

Ethical approval

No participation of humans takes place in this implementation process.

Consent to participate

Not applicable.

Consent for publication

Not applicable.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Dong, Y., Zha, Y., Zhang, Y. et al. Long- and short-term collaborative attention networks for sequential recommendation. J Supercomput 79, 18375–18393 (2023). https://doi.org/10.1007/s11227-023-05348-3

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11227-023-05348-3

Keywords

Navigation