Combining User-Based and Session-Based Recommendations with Recurrent Neural Networks

  • Tu Minh PhuongEmail author
  • Tran Cong Thanh
  • Ngo Xuan Bach
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11301)


Recommender systems generate recommendations based on user profiles, which consist of past interactions of users with items. When user profiles are not available, session-based recommendation can be used instead to make predictions based on sequences of user clicks within short sessions. Although each approach can be used separately, it is desired to utilize both user profiles and session information, and other information such as context, when those are available. In this paper, we propose a Recurrent Neural Networks (RNNs) based method that combines different types of information to generate recommendations. Specifically, we learn user and item representations from user-item interaction data and explore a new type of RNN cells to combine global user embeddings with sequential behavior within each session to generate next item recommendations. The proposed model uses an attention mechanism to adaptively regulate the contributions of different input components based on specific situations. The model can be extended to incorporate other input, such as contextual information. Experimental results on two real-world datasets show that our method outperforms state-of-the-art baselines that use only user or session information.


Recommender systems Session-based recommendation Recurrent neural networks Next item recommendation 



We would like to thank FPT for financial support, which made this work possible.


  1. 1.
    Bach, N.X., Hai, N.D., Phuong, T.M.: Personalized recommendation of stories for commenting in forum-based social media. Inf. Sci. 352–353, 48–60 (2016)CrossRefGoogle Scholar
  2. 2.
    Bobadilla, J., Ortega, F., Hernando, A., Gutiérrez, A.: Recommender systems survey. Knowl.-Based Syst. 46, 109–132 (2013)CrossRefGoogle Scholar
  3. 3.
    Celma, O.: Music Recommendation and Discovery: The Long Tail, Long Fail, and Long Play in the Digital Music Space. Springer, Heidelberg (2010). Scholar
  4. 4.
    Cho, K., et al.: Learning phrase representations using RNN encoder–decoder for statistical machine translation. In: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1724–1734 (2014)Google Scholar
  5. 5.
    Deshpande, M., Karypis, G.: Item-based top-n recommendation algorithms. ACM Trans. Inf. Syst. (TOIS) 22(1), 143–177 (2004)CrossRefGoogle Scholar
  6. 6.
    Donkers, T., Loepp, B., Ziegler, J.: Sequential user-based recurrent neural network recommendations. In: Proceedings of the Eleventh ACM Conference on Recommender Systems (RecSys), pp. 152–160 (2017)Google Scholar
  7. 7.
    Figueiredo, F., Ribeiro, B., Almeida, J.M., Faloutsos, C.: TribeFlow: mining & predicting user trajectories. In: Proceedings of the 25th International Conference on World Wide Web (WWW), pp. 695–706 (2016)Google Scholar
  8. 8.
    Goldberg, D., Nichols, D., Oki, B.M., Terry, D.: Using collaborative filtering to weave an information tapestry. Commun. ACM 35(12), 61–70 (1992)CrossRefGoogle Scholar
  9. 9.
    Hidasi, B., et al.: Parallel recurrent neural network architectures for feature-rich session-based recommendations. In: Proceedings of the 10th ACM Conference on Recommender Systems (RecSys), pp. 241–248 (2016)Google Scholar
  10. 10.
    Hidasi, B., Karatzoglou, A., Baltrunas, L., Tikk, D.: Session-based recommendations with recurrent neural networks. In: Proceedings of the International Conference on Learning Representations (ICLR) (2016)Google Scholar
  11. 11.
    Koren, Y., Bell, R., Volinsky, C.: Matrix factorization techniques for recommender systems. Computer 42(8), 30–37 (2009)CrossRefGoogle Scholar
  12. 12.
    Li, J., Ren, P., Chen, Z., Ren, Z., Lian, T., Ma, J.: Neural attentive session-based recommendation. In: Proceedings of the 2017 ACM Conference on Information and Knowledge Management (CIKM), pp. 1419–1428 (2017)Google Scholar
  13. 13.
    Phuong, N.D., Thang, L.Q., Phuong, T.M.: A graph-based method for combining collaborative and content-based filtering. In: Ho, T.-B., Zhou, Z.-H. (eds.) PRICAI 2008. LNCS (LNAI), vol. 5351, pp. 859–869. Springer, Heidelberg (2008). Scholar
  14. 14.
    Quadrana, M., Karatzoglou, A., Hidasi, B., Cremonesi, P.: Personalizing session-based recommendations with hierarchical recurrent neural networks. In: Proceedings of the Eleventh ACM Conference on Recommender Systems (RecSys), pp. 130–137 (2017)Google Scholar
  15. 15.
    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 (WWW), pp. 811–820 (2010)Google Scholar
  16. 16.
    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 (WWW), pp. 285–295 (2001)Google Scholar
  17. 17.
    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, pp. 17–22 (2016)Google Scholar
  18. 18.
    Tuan, T.X., Phuong, T.M.: 3D convolutional networks for session-based recommendation with content features. In: Proceedings of the Eleventh ACM Conference on Recommender Systems (RecSys), pp. 138–146 (2017)Google Scholar
  19. 19.
    Vasile, F., Smirnova, E., Conneau, A.: Meta-Prod2Vec: product embeddings using side-information for recommendation. In: Proceedings of the 10th ACM Conference on Recommender Systems (RecSys), pp. 225–232 (2016)Google Scholar

Copyright information

© Springer Nature Switzerland AG 2018

Authors and Affiliations

  • Tu Minh Phuong
    • 1
    Email author
  • Tran Cong Thanh
    • 1
  • Ngo Xuan Bach
    • 1
    • 2
  1. 1.Posts and Telecommunications Institute of TechnologyHanoiVietnam
  2. 2.FPT SoftwareHanoiVietnam

Personalised recommendations