Scalable Transformer and GNN Based Hybrid Architecture for Multi-Level Behaviour Modelling in Recommendation Systems
Keywords:
Session-Based Recommendation, Context-Aware GNN, Transformer Self-Attention, Next-Item Prediction, Sequential User Modelling, Hybrid Deep Learning ArchitectureAbstract
This study presented a scalable hybrid deep learning architecture that integrates Context-Aware Gated Graph Neural Networks (CA-GGNN) with Transformer-based self-attention to address the limitations of traditional session-based recommendation systems. Conventional models such as SR-GGNN are effective at capturing short-term item transitions but struggle with modeling global sequential patterns, contextual cues, and long-range dependencies—particularly in anonymous, sparse, and rapidly evolving user sessions. The proposed CA-GGNN component models each session as a directed graph and enhances message passing by injecting contextual signals including temporal information and interaction intervals, allowing the model to infer user intent more accurately. To further expand the receptive field and reduce reliance on local structural edges, Transformer layers are incorporated to capture global sequence dependencies with improved scalability and reduced computational overhead. The hybrid model fuses graph-level relational learning with global self-attention, producing richer session embeddings for next-item prediction. Experiments on the large-scale Yoochoose dataset demonstrate that the hybrid CA-GGNN + Transformer architecture outperforms SR-GGNN and standalone CA-GGNN baselines. The model achieves higher Precision@20 and MRR@20 scores, with improvements from 72.93% to 73.85% P@20 and 32.91% to 33.80% MRR, confirming that combining contextual graph structure with optimized self-attention yields significantly more accurate and scalable recommendation performance.
References
M. Vikram, N. S. Reddy, and K. Madhavi, “SessionRNNRec: a deep learning based framework for modelling user sessions to generate accurate recommendations,” Int. J. Syst. Assur. Eng. Manag., pp. 1–10, Jul. 2021, doi: 10.1007/S13198-021-01197-6/METRICS.
Y. Deldjoo, T. Di Noia, and F. A. Merra, “A Survey on Adversarial Recommender Systems: From Attack/Defense Strategies to Generative Adversarial Networks,” ACM Comput. Surv., vol. 54, no. 2, Mar. 2022, doi: 10.1145/3439729;PAGE:STRING:ARTICLE/CHAPTER.
S. Lee, J. Lee, S. Kang, J. Ahn, and H. Cho, “Code Edit Recommendation Using a Recurrent Neural Network,” Appl. Sci. 2021, Vol. 11, Page 9286, vol. 11, no. 19, p. 9286, Oct. 2021, doi: 10.3390/APP11199286.
X. Fang, “Making recommendations using transfer learning,” Neural Comput. Appl., vol. 33, no. 15, pp. 9663–9676, Aug. 2021, doi: 10.1007/S00521-021-05730-3/METRICS.
M. Marcuzzo, A. Zangari, A. Albarelli and A. Gasparetto, "Recommendation Systems: An Insight Into Current Development and Future Research Challenges," in IEEE Access, vol. 10, pp. 86578-86623, 2022, doi: 10.1109/ACCESS.2022.3194536.
W. Zhao, X. Xiang, X. Deng, W. Zheng, and H. Zhang, “Item-Behavior Sequence Session-Based Recommendation,” Commun. Comput. Inf. Sci., vol. 1637 CCIS, pp. 353–366, 2022, doi: 10.1007/978-981-19-6142-7_27.
J. Lei, Y. Li, S. Yang, W. Shi, and Y. Wu, “Two-stage sequential recommendation for side information fusion and long-term and short-term preferences modeling,” J. Intell. Inf. Syst., vol. 59, no. 3, pp. 657–677, Dec. 2022, doi: 10.1007/S10844-022-00723-7/METRICS.
J. Zhao et al., “DCFGAN: An adversarial deep reinforcement learning framework with improved negative sampling for session-based recommender systems,” Inf. Sci. (Ny)., vol. 596, pp. 222–235, Jun. 2022, doi: 10.1016/J.INS.2022.02.045.
M. Hamada, R. Jawad, K. Almahmood, and A. Tekerek, “Issues and Solutions in Deep Learning-Enabled Recommendation Systems within the E-Commerce Field,” Appl. Sci. 2022, Vol. 12, Page 11256, vol. 12, no. 21, p. 11256, Nov. 2022, doi: 10.3390/APP122111256.
G. Ratnakanth and S. Poonkuzhali, “Indian Tourist Recommendation System Using Collaborative Filtering and Deep Autoencoder,” Lect. Notes Networks Syst., vol. 401, pp. 341–356, 2023, doi: 10.1007/978-981-19-0098-3_34.
R. Yin, “Enhanced Recommender Systems with Deep Neural Networks Certificate of Original Authorship,” 2022.
L. Yin, J. Lu, G. Zheng, H. Chen, and W. Deng, “Recommendation Algorithm for Multi-Task Learning with Directed Graph Convolutional Networks,” Appl. Sci. 2022, Vol. 12, Page 8956, vol. 12, no. 18, p. 8956, Sep. 2022, doi: 10.3390/APP12188956.
Y. Ni, N. Wang, L. Chen, R. Chen, and L. Li, “TUR: Utilizing Temporal Information to Make Unexpected E-Commerce Recommendations,” Lect. Notes Comput. Sci. (including Subser. Lect. Notes Artif. Intell. Lect. Notes Bioinformatics), vol. 13724 LNCS, pp. 553–563, 2022, doi: 10.1007/978-3-031-20891-1_39.
H. Shi et al., “RecNet: A Resource-Constraint Aware Neural Network for Used Car Recommendation,” Int. J. Comput. Intell. Syst., vol. 15, no. 1, pp. 1–10, Dec. 2022, doi: 10.1007/S44196-022-00155-9/TABLES/4.
J. Zhu, G. Viaud, and C. Hudelot, “Next Job Application Prediction by Leveraging Textual Information, Metadata, and Personalized-Attention Mechanism,” pp. 163–192, 2023, doi: 10.1007/978-981-19-6153-3_7.
G. Sun et al., “OL-JCMSR: A Joint Coding Monitoring Strategy Recommendation Model Based on Operation Log,” Math. 2022, Vol. 10, Page 2292, vol. 10, no. 13, p. 2292, Jun. 2022, doi: 10.3390/MATH10132292.
F. Wang, X. Gao, Z. Chen and L. Lyu, "Contrastive Multi-Level Graph Neural Networks for Session-Based Recommendation," in IEEE Transactions on Multimedia, vol. 25, pp. 9278-9289, 2023, doi: 10.1109/TMM.2023.3250087.
S. Sang, W. Yuan, W. Li, Z. Yang, Z. Zhang, and N. Liu, “Position-aware graph neural network for session-based recommendation,” Knowledge-Based Syst., vol. 262, p. 110201, Feb. 2023, doi: 10.1016/J.KNOSYS.2022.110201.
J. Luo, M. He, W. Pan, and Z. Ming, “BGNN: Behavior-aware graph neural network for heterogeneous session-based recommendation,” Front. Comput. Sci., vol. 17, no. 5, pp. 1–16, Oct. 2023, doi: 10.1007/S11704-022-2100-Y/METRICS.
J. Wang, H. Xie, F. L. Wang, L. K. Lee, and M. Wei, “Jointly modeling intra- and inter-session dependencies with graph neural networks for session-based recommendations,” Inf. Process. Manag., vol. 60, no. 2, p. 103209, Mar. 2023, doi: 10.1016/J.IPM.2022.103209.
S. Qiao, W. Zhou, F. Luo, and J. Wen, “Noise-reducing graph neural network with intent-target co-action for session-based recommendation,” Inf. Process. Manag., vol. 60, no. 6, p. 103517, Nov. 2023, doi: 10.1016/J.IPM.2023.103517.
Z. Zhang, J. Yu, and X. Li, “Context-Aware Session-Based Recommendation with Graph Neural Networks,” Proc. - IEEE Int. Conf. Knowl. Graph, ICKG 2023, pp. 35–44, 2023, doi: 10.1109/ICKG59574.2023.00010.
Z. An, Y. Tan, J. Zhang, Z. Jiang, and C. Li, “A Session Recommendation Model Based on Heterogeneous Graph Neural Network,” Lect. Notes Comput. Sci. (including Subser. Lect. Notes Artif. Intell. Lect. Notes Bioinformatics), vol. 14119 LNAI, pp. 160–171, 2023, doi: 10.1007/978-3-031-40289-0_13.
J. Li, Y. Wang, G. Song, and N. Zhang, “A Session-Based Recommendation Model That Integrates the Temporal Sequence of Session Interactions and the Global Distance-Awareness of Items with Graph Neural Networks,” Appl. Sci. 2023, Vol. 13, Page 13031, vol. 13, no. 24, p. 13031, Dec. 2023, doi: 10.3390/APP132413031.
Y. Chen, Y. Tang, and Y. Yuan, “Attention-Enhanced Graph Neural Networks With Global Context for Session-Based Recommendation,” IEEE Access, vol. 11, pp. 26237–26246, 2023, doi: 10.1109/ACCESS.2023.3254897.
G. Zhu et al., “A Multi-Task Graph Neural Network with Variational Graph Auto-Encoders for Session-Based Travel Packages Recommendation,” ACM Trans. Web, vol. 17, no. 3, May 2023, doi: 10.1145/3577032;WEBSITE:WEBSITE:DL-SITE;TAXONOMY:TAXONOMY:ACM-PUBTYPE;PAGEGROUP:STRING:PUBLICATION.
J. Sheng, J. Zhu, B. Wang, and Z. Long, “Global and session item graph neural network for session-based recommendation,” Appl. Intell., vol. 53, no. 10, pp. 11737–11749, May 2023, doi: 10.1007/S10489-022-04034-W/METRICS.
Y. Zeng, B. Yang, X. Wen, and D. Li, “Relevance-aware graph neural network for session-based recommendation,” Computing, vol. 105, no. 10, pp. 2311–2335, Oct. 2023, doi: 10.1007/S00607-023-01185-7/METRICS.
G. Xu, J. Yang, J. Guo, Z. Huang, and B. Zhang, “Int-GNN: A User Intention Aware Graph Neural Network for Session-Based Recommendation,” ICASSP, IEEE Int. Conf. Acoust. Speech Signal Process. - Proc., vol. 2023-June, 2023, doi: 10.1109/ICASSP49357.2023.10097031.
S. Luo et al., “Integrating Large Language Models into Recommendation via Mutual Augmentation and Adaptive Aggregation,” Jan. 2024, Accessed: Aug. 06, 2025. [Online]. Available: https://arxiv.org/pdf/2401.13870
J. Baek, N. Chandrasekaran, S. Cucerzan, A. Herring, and S. K. Jauhar, “Knowledge-Augmented Large Language Models for Personalized Contextual Query Suggestion,” WWW 2024 - Proc. ACM Web Conf., pp. 3355–3366, May 2024, doi: 10.1145/3589334.3645404/SUPPL_FILE/RFP0520.MP4.
N. L. Le and M. H. Abel, “Integrating context and criteria: a multi-head attention-based approach for multi-criteria group recommender systems,” World Wide Web, vol. 28, no. 4, pp. 1–32, Aug. 2025, doi: 10.1007/S11280-025-01358-8/METRICS.
B. Zheng et al., “Adapting Large Language Models by Integrating Collaborative Semantics for Recommendation,” Proc. - Int. Conf. Data Eng., pp. 1435–1448, 2024, doi: 10.1109/ICDE60146.2024.00118.
L. Gudala, Y. Ramaswamy, A. K. Pamidi Venkata, R. Riadhusin, and K. Sandhya, “AI-Driven Search and Personalized Travel Recommendation System based on Retrieval Augmented Generator Framework,” 3rd Int. Conf. Data Sci. Inf. Syst. ICDSIS 2025, 2025, doi: 10.1109/ICDSIS65355.2025.11070839.
P. Xu, J. Liu, and L. Wu, “Joint Spatio-Temporal Modeling and Generative Adversarial Network for Point-of-Interest Recommendation,” Proc. - 2024 Int. Conf. Electron. Devices, Comput. Sci. ICEDCS 2024, pp. 155–160, 2024, doi: 10.1109/ICEDCS64328.2024.00032.
W. Wei et al., “LLMRec: Large Language Models with Graph Augmentation for Recommendation,” WSDM 2024 - Proc. 17th ACM Int. Conf. Web Search Data Min., pp. 806–815, Mar. 2024, doi: 10.1145/3616855.3635853;WGROUP:STRING:ACM.
S. Desrochers, J. Wilson, and M. Beauchesne, “Reducing Hallucinations in Large Language Models Through Contextual Position Encoding,” pp. 1–15.
LuoSichun et al., “RecRanker: Instruction Tuning Large Language Model as Ranker for Top-k Recommendation,” ACM Trans. Inf. Syst., Jul. 2025, doi: 10.1145/3705728.
H. Li, C. Çelik, M. Bashir, L. Zou, and Z. Yang, “Incorporation of a global perspective into data-driven analysis of maritime collision accident risk,” Reliab. Eng. Syst. Saf., vol. 249, p. 110187, Sep. 2024, doi: 10.1016/J.RESS.2024.110187.
Downloads
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.




