Abstract: Explanations accompanied by a recommendation can assist users in understanding the decision made by recommendation systems, which in turn increases a user's confidence and trust in the system. Recently, research has focused on generating natural language explanations in a human-readable format. Thus far, the proposed approaches leverage item reviews written by users, which are often subjective, sparse in language, and unable to account for new items that have not been purchased or reviewed before. Instead, we aim to generate fact-grounded recommendation explanations that are objectively described with item features while implicitly considering a user's preferences, based on the user's purchase history. To achieve this, we propose a knowledge graph (KG) approach to natural language explainable recommendation. Our approach draws on user-item features through a novel collaborative filtering-based KG representation to produce fact-grounded, personalized explanations, while jointly learning user-item representations for recommendation scoring. Experimental results show that our approach consistently outperforms previous state-of-the-art models on natural language explainable recommendation.
Introduction
Modern recommendation systems are increasingly expected to provide justifications for their suggestions to foster user trust. However, existing "explainable" models typically rely on user-generated reviews. This dependency introduces three significant challenges: subjectivity, where reviews reflect personal sentiment rather than objective facts; data sparsity, where many items lack sufficient review volume; and the cold-start problem, where new items cannot be explained due to a total lack of historical reviews.
This paper introduces KnowRec, a framework designed to generate fact-grounded and objective explanations. By leveraging Knowledge Graphs (KGs), KnowRec describes item features (e.g., director, genre, or plot) while tailoring the selection of these facts based on the user's implicit preferences derived from their purchase history.
The KnowRec Framework
KnowRec utilizes a multi-task Transformer-based architecture to simultaneously handle recommendation scoring and natural language generation (NLG).
As shown in the architecture diagram above, the model consists of several key components:
- Collaborative KG Representation: The model represents input as a unified graph connecting a user’s purchase history to the KG of the target item.
- User-Item Graph Attention: Building on the BART architecture, KnowRec incorporates a specialized graph-aware attention mechanism. A custom masking scheme ($M_g$) ensures the Transformer respects the topological structure of the KG, preserving relationships between entities during encoding.
- Joint Learning Objective: The model is trained to minimize Mean Square Error (MSE) for rating prediction and Negative Log-Likelihood (NLL) for fluent explanation generation.
- Decoupled Representations: The model dissociates learned representations for the final rating and text generation to prevent task interference and performance degradation.
Experimental Setup and Datasets
To evaluate the model, the authors developed two new benchmarks that provide parallel KGs and natural language descriptions, as traditional datasets lack this alignment:
- Book KG-Exp: Based on Amazon-Book data, featuring ~396k users and 2.3M interactions.
- Movie KG-Exp: Based on Amazon-Movie data, featuring ~131k users and 788k interactions.
Entities were extracted from product descriptions using DBpedia Spotlight and mapped to relations such as <author> or <genre> to construct the ground-truth KGs for objective, feature-based explanations.
Performance Evaluation
KnowRec was benchmarked against state-of-the-art models, including PETER and PEPLER. The results demonstrate that KnowRec significantly improves the quality and factual accuracy of generated explanations.
Key findings from the evaluation include:
- NLG Quality: On the Movie KG-Exp dataset, KnowRec achieved a BLEU-4 score of 10.71, nearly tripling the performance of the best non-pretrained baseline, PETER (3.99).
- Diversity and Specificity: The model scored higher in Unique Sentence Ratio (USR), indicating a capacity for diverse, item-specific output rather than repetitive templates.
- Entity Coverage (EC): KnowRec reached an EC of approximately 68-70%, successfully incorporating a high percentage of actual KG facts into its text.
- Recommendation Accuracy: Despite the focus on text generation, KnowRec maintained competitive RMSE and MAE scores, proving that lexical features can effectively supplement traditional collaborative filtering.
Discussion and Future Work
KnowRec effectively addresses the item cold-start problem by relying on metadata rather than reviews. However, the model still requires a user's purchase history for personalization, leaving "zero-purchase" users as a challenge for future research. Additionally, while KG grounding reduces hallucinations, they are not entirely eliminated. Future work will explore the integration of user-specific KGs—incorporating individual interests and demographics—to further refine the personalization of generated explanations.
Summary updated