Abstract
KGAT (Knowledge Graph Attention Network) is a recommendation framework designed to bridge the gap between collaborative filtering and content-based methods. By integrating user-item interactions with external knowledge graphs into a unified "Collaborative Knowledge Graph" (CKG), KGAT employs a graph neural network with an attention mechanism to explicitly model high-order relationships. This approach enhances recommendation accuracy and provides inherent interpretability by uncovering complex connectivity patterns across the graph.
Introduction
Modern recommendation systems typically rely on Collaborative Filtering (CF) or Supervised Learning (SL) based on item attributes. However, CF often struggles with data sparsity, while SL methods frequently overlook the intricate web of connections between items. Existing attempts to incorporate Knowledge Graphs (KGs) have been limited by manual path definitions or implicit modeling that lacks transparency. KGAT addresses these challenges by treating recommendation as a graph traversal problem within a rich, multi-relational environment.
Methodology
The KGAT framework consists of three primary components:
- Collaborative Knowledge Graph (CKG): Users, items, and entities are represented as nodes, while interactions and KG relations form the edges.
- Embedding Layer: Node representations are initialized using TransR, ensuring the initial embeddings respect the fundamental triplet structure of the knowledge graph (Head + Relation ≈ Tail).
- Attentive Embedding Propagation: This core component uses a Graph Neural Network (GNN) to update node representations by aggregating information from neighbors. An attention mechanism learns to weigh the importance of different relations, allowing the model to prioritize relevant connections (e.g., a specific director might be more relevant to a user's taste than a movie's language). By stacking multiple layers, the model captures high-order connectivity, effectively discovering patterns across multiple hops.
Experimental Evaluation
KGAT was evaluated on three benchmark datasets: Amazon-Book, Last-FM, and Yelp2018. The model consistently outperformed state-of-the-art baselines, including Neural FM and RippleNet. Experimental results showed relative improvements in Recall@20 of up to 8.95% on Amazon-Book and 7.18% on Yelp2018.
Key Insights
- High-Order Modeling: Explicit propagation along graph edges allows the model to discover complex collaborative signals that simpler models miss. Increasing GNN depth to 3 layers was found to significantly boost performance.
- Interpretability: Because the model utilizes attention weights, it provides a level of transparency. High-attention paths can be analyzed to explain why a specific recommendation was made.
- Sparsity Resilience: A major strength of KGAT is its performance for "inactive" users. By leveraging the KG, the model can make accurate predictions for users with very few interactions by analyzing the attributes of the few items they have engaged with.
Conclusion
KGAT effectively integrates knowledge graphs into recommendation systems through an attentive GNN architecture. By modeling high-order connectivity, it achieves superior performance and provides explainable results, particularly in sparse data scenarios. Future work may explore "hard" attention mechanisms to filter noise and the inclusion of social networks to further enrich the global knowledge graph.
Summary updated