KGAT: Knowledge Graph Attention Network for Recommendation

Xiang Wang, Xiangnan He, Yixin Cao, Meng Liu, Tat-Seng Chua · DOI

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:

  1. Collaborative Knowledge Graph (CKG): Users, items, and entities are represented as nodes, while interactions and KG relations form the edges.
  2. Embedding Layer: Node representations are initialized using TransR, ensuring the initial embeddings respect the fundamental triplet structure of the knowledge graph (Head + Relation ≈ Tail).
  3. 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.
Overview of the KGAT architecture, illustrating the CKG embedding layer, attentive propagation, and the final prediction layer.

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.
Performance comparison (ndcg@20) across different user groups on Amazon-Book, Last-FM, and Yelp2018 datasets, demonstrating KGAT's resilience to data sparsity.

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

BibTeX
@inproceedings{wang2019kgat,
  author = {Xiang Wang and Xiangnan He and Yixin Cao and Meng Liu and Tat-Seng Chua},
  title = {{KGAT: Knowledge Graph Attention Network for Recommendation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2019},
  doi = {10.1145/3292500.3330989},
}
Figure