Abstract
Knowledge Graph (KG) enhanced recommendation systems often struggle with noise and sparsity in KG data. We propose KGRec, a framework that identifies and leverages "rationales"—the specific KG connections that drive user preferences. By integrating a generative masked autoencoder for high-importance link reconstruction and a contrastive learning task for noise filtering, KGRec achieves state-of-the-art performance, particularly in cold-start and long-tail scenarios.
Introduction
Knowledge Graphs (KGs) provide rich contextual information for recommender systems, such as a movie's director or a product's category. However, KGs are notoriously noisy and sparse. Not every connection in a KG is relevant to a user's choice; for instance, two movies sharing a catering company is likely "noise" compared to sharing a lead actor.
Existing methods often treat all KG links equally or use random data augmentation, failing to capture the underlying rationales—the specific latent reasons why a knowledge connection matters for a recommendation. As shown in Figure 1, traditional models exhibit a "long tail" of attention, where only a small fraction of triplets are highly relevant. KGRec aims to distill this "signal" from the noise.
Methodology: The KGRec Framework
KGRec introduces an Attentive Knowledge Rationalization mechanism consisting of four primary stages as illustrated in Figure 2:
- Rationale Discovery: Utilizing an attention mechanism inspired by Heterogeneous Graph Transformers (HGT), the model assigns a "rationale score" to every triplet. This score reflects the link's importance for the recommendation task, guided by user-item interaction labels.
- Knowledge-aware Masked Autoencoder: Unlike standard random masking, KGRec masks the most important triplets (high rationale scores). The model must then reconstruct these vital connections, forcing it to learn the core logic of the knowledge network.
- Knowledge Rationale-aware Contrasting: To align KG data with Collaborative Filtering (CF) signals, the model creates two item views. It masks the least important (noisy) edges to ensure the contrastive alignment is robust and focused on meaningful rationales.
- Rationale-aware Heterogeneous Knowledge Aggregation: The final representations are aggregated using the discovered rationales to provide high-quality recommendations.
Experiments and Results
The model was evaluated on three real-world datasets: Last-FM (music), MIND (news), and Alibaba-iFashion (e-commerce).
Performance and Robustness
KGRec consistently outperformed state-of-the-art baselines like KGCL, KGIN, and KGAT across all datasets on Recall@20 and NDCG@20. Notably, the model maintained high performance even when up to 60% of the KG was removed, demonstrating its efficiency in identifying "core" knowledge.
Cold-Start Scenarios
In tests on users with very few interactions, KGRec showed the most significant improvements. Its rationalization process effectively fills information gaps when user data is scarce by leveraging the most relevant knowledge connections. The model successfully learns domain-specific rationales, such as identifying "political party" as a high-importance link for news recommendations.
Conclusion
KGRec demonstrates that selective, rationale-aware masking is superior to stochastic augmentation in KG-based recommendation. By focusing on high-importance links for reconstruction and filtering noise for contrastive learning, the model achieves better accuracy and robustness. Future work may explore Graph Structure Learning to create new rational connections not explicitly present in the original KG.
Summary updated