Abstract
Modern recommender systems face challenges in providing context-aware suggestions and addressing the "cold start" problem. This paper introduces the Knowledge-aware Path Recurrent Network (KPRN), a model designed to perform explicit reasoning over Knowledge Graphs (KGs). By leveraging LSTMs to model sequential dependencies within paths connecting users to items, KPRN achieves high-accuracy preferences while providing human-readable explanations for its recommendations.
Introduction
Knowledge Graphs (KGs) serve as a rich source of side information for recommender systems, mapping complex relationships between entities (e.g., an artist singing a specific song). However, existing KG-based methods typically fall into two categories with significant drawbacks:
- Path-based methods often rely on manually defined "meta-paths," which require extensive domain expertise and frequently ignore the semantic nuances of different relation types.
- Embedding-based methods map KGs into latent spaces. While effective for prediction, these "black box" models lack transparency and often fail to capture long-range, multi-hop dependencies.
KPRN bridges this gap by automatically learning path semantics to reason about user interests through compositional logic.
Methodology: The KPRN Architecture
The KPRN framework consists of three primary stages designed to transform raw KG data into actionable recommendations.
1. Path Extraction
The model identifies all qualified paths (up to length 6) between a user and a target item. This enriched KG combines historical user-item interactions with item-item metadata, creating a dense network of potential connections.
2. LSTM Layer for Sequential Modeling
Unlike previous approaches that treated paths as unordered sets of nodes, KPRN treats them as sequences. As shown in the architecture diagram below, each step in a path is represented by a concatenated embedding of the Entity, Entity Type, and the specific Relation. An LSTM processes these sequences to capture the holistic semantics of the connection.
3. Weighted Pooling Layer
Because a user and item may be connected by hundreds of paths, the model must distinguish between relevant and "noisy" connections. KPRN employs a weighted pooling operation—similar to an attention mechanism—to aggregate path scores. A hyperparameter $\gamma$ allows the model to transition between max-pooling (focusing on the single strongest path) and mean-pooling (considering all paths equally).
Experimental Evaluation
The researchers evaluated KPRN on two real-world datasets:
- MI (Movie Domain): A novel dataset created by the authors by aligning MovieLens-1M user ratings with IMDb metadata (actors, directors, genres).
- KKBox (Music Domain): A benchmark dataset from the WSDM Cup 2018 containing user-song interactions and music metadata.
Key Results and Insights
KPRN demonstrated superior performance across both domains, significantly outperforming traditional baselines such as Matrix Factorization (MF) and prior KG-based methods like Collaborative Knowledge Base Embedding (CKE).
Performance Highlights
- Ranking Accuracy: On the MI dataset, KPRN achieved a hit@5 of 0.676 and an ndcg@5 of 0.584, a substantial lead over previous state-of-the-art methods.
- The Importance of Relations: Ablation studies (KPRN-r) revealed that removing relation embeddings led to a significant performance drop. This confirms that the type of connection (e.g., "sung by" vs. "written by") is critical for understanding user intent.
- Explainability: By assigning scores to specific paths, KPRN can provide explicit justifications. For instance, it might recommend a song because it shares a singer with a track the user previously enjoyed.
Conclusion and Future Work
KPRN successfully integrates the reasoning capabilities of path-based methods with the predictive power of deep learning. While the current model faces a computational bottleneck during path extraction, it sets the stage for future research into Graph Neural Networks (GNNs) and zero-shot recommendation across different domains. By making the "reasoning" behind recommendations explicit, KPRN moves toward more transparent and trustworthy AI in personalized services.
Summary updated