Knowledge-Aware Recommendation Based on Hypergraph and Knowledge Graph
Abstract
1. Introduction
- A two-stage user representation pipeline that first aggregates item-hypergraph embeddings into initial user vectors and then refines them with a top-k user similarity graph;
- A user-conditioned one-hop KG aggregation mechanism for semantically enhanced item representations;
- A revised experimental protocol with clearer implementation details, dataset statistics, and more cautious conclusions under the reported comparison settings.
2. Related Work
2.1. KG-Aware Recommendation
2.2. Hypergraph Recommendation
2.3. User Similarity and High-Order Collaborative Modeling
2.4. Personalized KG Aggregation, Popularity Bias, and Recent Extensions
3. Proposed Method
3.1. Item Hypergraph Construction and High-Order Collaborative Modeling
3.2. User Similarity Graph Construction and User Representation Learning
3.3. KG Semantic Item Representation Learning
| Algorithm 1: Knowledge-Aware Recommendation with Item Hypergraph and KG | |
| Input: user set U, item set V, interaction histories , aligned KG | |
| Output: recommendation function and optional reranked scores | |
| 1. | Initialize trainable parameters and aligned item/entity/relation embeddings. |
| 2. | Construct the item hypergraph from user interaction histories . |
| 3. | Build the top-k user similarity graph from pooled initial user vectors. |
| 4. | while training do |
| 5. | // (1) User-side representation on the item hypergraph and user graph |
| 6. | Propagate item features on: to obtain high-order item embeddings. |
| 7. | For each user u, aggregate interacted item embeddings to obtain . |
| 8. | Apply the user-graph update to refine and obtain the final user embedding . |
| 9. | // (2) Item-side semantic representation on the knowledge graph |
| 10. | for each candidate item v do |
| 11. | Retrieve the aligned one-hop KG neighbor set of entity . |
| 12. | Compute the user-conditioned relation preference coefficients over |
| 13. | Aggregate KG neighbors to obtain the user-specific semantic item embedding . |
| 14. | Construct the interaction feature element-wise interaction terms, and |
| 15 | end for |
| 16. | // (3) Prediction, post-scoring adjustment, and parameter update |
| 17. | for each training pair do |
| 18. | Compute the predicted score with the MLP scorer. |
| 19. | Optionally apply the popularity-aware post-scoring adjustment . |
| 20. | Compute the BCE loss on sampled pairs and update parameters . |
| 21. | end for |
| 22. | end while |
| 23. | and optional reranked scores. |
3.4. Prediction Module and Popularity-Aware Re-Ranking
3.5. Loss Function and Training Objective
3.6. Evaluation Metrics
3.7. Pseudocode
3.8. Complexity Analysis
4. Experiments
4.1. Datasets and Preprocessing
4.2. Baselines and Comparison Settings
4.3. Ablation Study
5. Discussion
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| KG | Knowledge Graph |
| MF | Matrix Factorization |
| GCN | Graph Convolutional Network |
| MLP | Multi-Layer Perceptron |
| AUC | Area Under the ROC Curve |
| ACC | Accuracy |
| HGCN | Hypergraph Convolutional Network |
References
- Ricci, F.; Rokach, L.; Shapira, B. Recommender systems: Introduction and challenges. In Recommender Systems Handbook; Ricci, F., Rokach, L., Shapira, B., Eds.; Springer: Berlin/Heidelberg, Germany, 2015; pp. 1–34. [Google Scholar]
- Sugahara, M.; Okamoto, K. Hierarchical matrix factorization for interpretable collaborative filtering. Pattern Recognit. Lett. 2024, 180, 99–106. [Google Scholar] [CrossRef]
- Wang, X.; He, X.; Cao, Y.; Liu, M.; Chua, T.S. KGAT: Knowledge graph attention network for recommendation. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Anchorage, AK, USA, 4–8 August 2019; pp. 950–958. [Google Scholar]
- Wu, D.; Tang, M.; Zhang, S.; Gao, W. HMKRec: Optimize multi-user representation by hypergraph motifs for knowledge-aware recommendation. Eng. Appl. Artif. Intell. 2025, 149, 110441. [Google Scholar]
- Cui, Y.; Wang, K.; Yu, H.; Guo, X.; Cao, H. KLLMs4Rec: Knowledge graph-enhanced LLMs sentiment extraction for personalized recommendations. Expert Syst. Appl. 2025, 282, 127430. [Google Scholar]
- Tiong, A.M.H.; Li, J.; Lin, G.; Li, B.; Xiong, C.; Hoi, S.C.H. Improving tail-class representation with centroid contrastive learning. Pattern Recognit. Lett. 2023, 168, 123–130. [Google Scholar] [CrossRef]
- Sun, Z.; Deng, Z.H.; Nie, J.Y.; Tang, J. RotatE: Knowledge graph embedding by relational rotation in complex space. arXiv 2019, arXiv:1902.10197. [Google Scholar]
- Ansarizadeh, F.; Tay, D.B.; Thiruvady, D.; Tyagi, S.K.S. Deterministic sampling in heterogeneous graph neural networks. Pattern Recognit. Lett. 2023, 172, 74–81. [Google Scholar] [CrossRef]
- He, X.; Deng, K.; Wang, X.; Li, Y.; Zhang, Y.; Wang, M. LightGCN: Simplifying and powering graph convolution network for recommendation. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, Virtual Event, 25–30 July 2020; pp. 639–648. [Google Scholar]
- Xu, M.; Wei, W.; Yang, P.; Wu, H. Semantic enhanced heterogeneous hypergraph network for collaborative filtering. In Proceedings of the AAAI Conference on Artificial Intelligence, Philadelphia, PA, USA, 25 February–4 March 2025; pp. 12936–12944. [Google Scholar]
- Wang, H.; Zhang, F.; Wang, J.; Zhao, M.; Li, W.; Xie, X.; Guo, M. RippleNet: Propagating user preferences on the knowledge graph for recommender systems. In Proceedings of the 27th ACM International Conference on Information and Knowledge Management, Torino, Italy, 22–26 October 2018; pp. 417–426. [Google Scholar]
- Kong, H.; Yun, W.; Joo, W.; Kim, J.H.; Kim, K.K.; Moon, I.C.; Kim, W.C. Constructing a personalized recommender system for life insurance products with machine-learning techniques. Pattern Recognit. Lett. 2025, 196, 148–155. [Google Scholar]
- Xia, X.; Yin, H.; Yu, J.; Wang, Q.; Cui, L.; Hung, N.Q.V. Self-supervised hypergraph convolutional networks for session-based recommendation. In Proceedings of the AAAI Conference on Artificial Intelligence, Virtual Event, 2–9 February 2021; pp. 4503–4511. [Google Scholar]
- Kang, W.-C.; McAuley, J. Self-Attentive Sequential Recommendation. In Proceedings of the 2018 IEEE International Conference on Data Mining, Singapore, 17–20 November 2018; pp. 197–206. [Google Scholar]
- Sun, F.; Liu, J.; Wu, J.; Pei, C.; Lin, X.; Ou, W.; Jiang, P.S. BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer. In Proceedings of the 28th ACM International Conference on Information and Knowledge Management, Beijing, China, 3–7 November 2019; pp. 1441–1450. [Google Scholar]
- Shi, L.; Hu, R.; Zhang, Z.; Wang, S.; Li, S. Knowledge-Enhanced Multi-Level Session Graph Model for Interactive Recommendation through Deep Reinforcement Learning. ACM Trans. Knowl. Discov. Data 2026, 20, 84. [Google Scholar] [CrossRef]
- Nie, W.; Wen, X.; Liu, J.; Chen, J.; Wu, J.; Jin, G.; Lu, J.; Liu, A.-A. Knowledge-Enhanced Causal Reinforcement Learning Model for Interactive Recommendation. IEEE Trans. Multimed. 2024, 26, 1129–1142. [Google Scholar] [CrossRef]
- Wang, P.; Fan, Y.; Xia, L.; Zhao, W.X.; Niu, S.; Huang, J. KERL: A Knowledge-Guided Reinforcement Learning Model for Sequential Recommendation. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, Virtual Event, 25–30 July 2020; pp. 209–218. [Google Scholar] [CrossRef]
- Feng, Y.; You, H.; Zhang, Z.; Ji, R.; Gao, Y. Hypergraph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; pp. 3558–3565. [Google Scholar]
- Ji, S.; Feng, Y.; Ji, R.; You, H.; Pan, J.; Chen, T.; Gao, Y. Dual channel hypergraph collaborative filtering. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Virtual Event, 23–27 August 2020; pp. 2020–2029. [Google Scholar]
- Wang, H.; Zhao, M.; Xie, X.; Li, W.; Guo, M. Knowledge graph convolutional networks for recommender systems. In Proceedings of the World Wide Web Conference, San Francisco, CA, USA, 13–17 May 2019; pp. 3307–3313. [Google Scholar]
- Chen, C.; Zhang, M.; Zhang, Y.; Liu, Y.; Ma, S. Efficient neural matrix factorization without sampling for recommendation. ACM Trans. Inf. Syst. 2020, 38, 14. [Google Scholar] [CrossRef]
- He, X.; Liao, L.; Zhang, H.; Nie, L.; Hu, X.; Chua, T.S. Neural collaborative filtering. In Proceedings of the 26th International Conference on World Wide Web, Perth, Australia, 3–7 April 2017; pp. 173–182. [Google Scholar]





| Dataset | Users | Items | Interactions | Relations | Entities | KG Triples |
|---|---|---|---|---|---|---|
| MovieLens-1M | 5148 | 2380 | 553,277 | 2 | 96 | 6706 |
| Last.FM | 1265 | 606 | 41,879 | 1 | 9749 | 28,383 |
| Book-Crossing | 8380 | 12,634 | 91,810 | 3 | 5213 | 36,375 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Niu, S.; Chi, K.; Su, T.; Yang, Y.; Gao, J. Knowledge-Aware Recommendation Based on Hypergraph and Knowledge Graph. AI 2026, 7, 215. https://doi.org/10.3390/ai7060215
Niu S, Chi K, Su T, Yang Y, Gao J. Knowledge-Aware Recommendation Based on Hypergraph and Knowledge Graph. AI. 2026; 7(6):215. https://doi.org/10.3390/ai7060215
Chicago/Turabian StyleNiu, Shunping, Kuo Chi, Ting Su, Yongqin Yang, and Jiabao Gao. 2026. "Knowledge-Aware Recommendation Based on Hypergraph and Knowledge Graph" AI 7, no. 6: 215. https://doi.org/10.3390/ai7060215
APA StyleNiu, S., Chi, K., Su, T., Yang, Y., & Gao, J. (2026). Knowledge-Aware Recommendation Based on Hypergraph and Knowledge Graph. AI, 7(6), 215. https://doi.org/10.3390/ai7060215
