Abstract
Recent advances in personalized recommendation have sparked great interest in the exploitation of rich structured information provided by knowledge graphs. Unlike most existing approaches that only focus on leveraging knowledge graphs for more accurate recommendation, we aim to conduct explicit reasoning with knowledge for decision making so that the recommendations are generated and supported by an interpretable causal inference procedure. To this end, we propose a method called Policy-Guided Path Reasoning (PGPR), which couples recommendation and interpretability by providing actual paths in a knowledge graph. Our contributions include four aspects. We first highlight the significance of incorporating knowledge graphs into recommendation to formally define and interpret the reasoning process. Second, we propose a reinforcement learning (RL) approach featured by an innovative soft reward strategy, user-conditional action pruning and a multi-hop scoring function. Third, we design a policy-guided graph search algorithm to efficiently and effectively sample reasoning paths for recommendation. Finally, we extensively evaluate our method on several large-scale real-world benchmark datasets, obtaining favorable results compared with state-of-the-art methods.
The Challenge of Explainable Recommendation
Modern recommender systems often face a significant trade-off between accuracy and explainability. While Latent Factor Models like Matrix Factorization are highly accurate, they function as "black boxes," offering no insight into the underlying reasons for a recommendation. Knowledge Graph (KG) embeddings have improved accuracy by incorporating structured data, but they typically rely on vector similarity, which remains difficult to interpret.
Furthermore, existing path-based methods that attempt to link users and items often suffer from the "curse of dimensionality" in massive real-world graphs. Many "explanations" provided by these systems are post-hoc—generated after the recommendation is made—rather than being the actual causal logic that drove the decision.
Policy-Guided Path Reasoning (PGPR)
To address these issues, the researchers introduce Policy-Guided Path Reasoning (PGPR). This framework treats recommendation as a navigation problem within a knowledge graph. An RL agent starts at a user node and "walks" through the graph to find promising item nodes. If the agent finds a path, that path itself serves as the explanation.
The PGPR framework incorporates several key innovations:
- User-Conditional Action Pruning: To manage the massive search space of real-world KGs, the model uses a scoring function to prune edges. It only considers the top-$\alpha$ most relevant edges for a specific user at each step, ensuring computational feasibility.
- Soft Reward Strategy: Instead of a binary win/loss reward, PGPR uses a "soft" reward based on a multi-hop scoring function. This provides the agent with "partial credit" for reaching items similar to the user's preferences, even if they aren't the exact target.
- Multi-Hop Scoring Function: A translational embedding method (inspired by TransE) calculates similarity across multiple hops (e.g., User $\to$ Feature $\to$ Item).
- Policy-Guided Beam Search: During inference, the model uses beam search guided by the learned policy to efficiently sample diverse and logical reasoning paths.
Knowledge Graph Construction
The model was evaluated using four large-scale Amazon e-commerce datasets: CDs & Vinyl, Clothing, Cell Phones, and Beauty. These datasets are modeled as knowledge graphs with five entity types (User, Item, Feature, Brand, Category) and seven relation types.
By conditioning the graph search on the user's specific preferences from the very first step, the model avoids getting lost in irrelevant parts of the graph, ensuring that the resulting explanations are "faithful" to the model's logic.
Key Results and Insights
PGPR consistently outperformed state-of-the-art baselines (including JRL and CKE) across all datasets. Notable results include:
- Accuracy Gains: On the Clothing dataset, PGPR achieved a 64.73% improvement in NDCG over the best baseline.
- Explainability: The model successfully found valid reasoning paths for approximately 50% of its top recommendations. Qualitative studies showed logical links, such as recommending a conditioner because a user purchased a shampoo sharing specific feature keywords like "nourish."
Limitations and Future Work
While effective, the current model has limitations. Paths were constrained to 3 hops, potentially missing complex, long-range relationships. Additionally, the model assumes a static knowledge graph, whereas real-world KGs are dynamic. Future work will focus on modeling time-evolving graphs and improving feature extraction from reviews to reduce noise in "Feature" nodes.
Summary updated