TL;DR
KnowRec is a novel framework that generates objective, fact-grounded natural language explanations for recommendation systems by leveraging knowledge graphs (KGs) instead of subjective user reviews. By combining a user's purchase history with item-level features through a graph-tailored transformer encoder, it delivers highly personalized, accurate explanations while simultaneously maintaining competitive recommendation accuracy—even for items with zero prior reviews.
What Problem Does This Paper Address?
Most modern recommendation systems that provide natural language explanations do so by mimicking user reviews. While this sounds reasonable, it introduces three major flaws:
- Subjectivity: Reviews are heavily driven by personal sentiment (e.g., "Great movie!"), which lacks objective, informative justification.
- Sparsity: Users rarely review every item they purchase, leading to data gaps.
- The Cold-Start Problem: Review-based systems cannot generate explanations for newly cataloged items that haven't been purchased or reviewed yet.
To build user trust, explanations need to be objective, specific, and data-driven. The authors tackle this challenge by shifting the source of explanations from user reviews to factual Knowledge Graphs (KGs), ensuring that recommendations are backed by verifiable item features (like directors, genres, or authors) while still aligning with the user's implicit preferences.
Methods
The authors introduce KnowRec, a multi-task learning architecture designed to handle both recommendation scoring and natural language generation.
Key components of the method include:
- Collaborative KG Representation: KnowRec linearizes a user's purchase history and links it directly to the target item's KG, creating a unified, text-based graph sequence.
- Dual-Attention Encoder: Built on top of the BART architecture, the encoder runs two attention mechanisms in parallel:
- Global Attention: Standard Transformer self-attention to capture textual fluency.
- User-Item Graph Attention: A novel masking scheme ($M_g$) that enforces the structural topology of the knowledge graph, ensuring the model respects the connections between entities and relations.
- Multi-Task Output: The encoded representations are split via masking. One branch performs a mean-pool and dot-product operation to predict user ratings, while the other feeds into an auto-regressive decoder to generate the textual explanation.
Datasets
Because existing recommendation datasets lack parallel natural language descriptions mapped to KGs, the authors constructed two new benchmarks using a description-first approach via DBpedia Spotlight:
- Book KG-Exp: Based on the Amazon-Book dataset, containing 396,114 users, 95,733 items, and 745,699 KG triples.
- Movie KG-Exp: Based on the Amazon-Movie dataset, containing 131,375 users, 18,107 items, and 146,772 KG triples.
In both datasets, the item's actual product description serves as the ground-truth proxy for an objective, factual explanation.
Key Insights and Ideas
- Factual is Personal: Even though the explanations are drawn from objective item features, personalization happens implicitly. By connecting the item's KG to the user's history, the model naturally highlights features that align with what the user has previously bought (e.g., emphasizing a specific director or genre).
- Structural Masking Preserves Knowledge: Simply feeding a flattened graph into a language model often leads to hallucinations or broken logic. KnowRec's parallel graph-topology mask forces the transformer to learn the actual structure of the data without sacrificing the linguistic power of pre-trained language models.
- Decoupled Multi-Tasking Works: Jointly training the model on rating prediction and text generation actually helps contextualize embeddings better, proving that recommendation signals and natural language generation can mutually benefit each other.
Key Results
KnowRec consistently and substantially outperformed state-of-the-art baselines (such as PETER and PEPLER) across standard natural language generation metrics (BLEU and ROUGE) and Entity Coverage (EC)—a metric measuring how many actual KG facts made it into the final text.
- Explanation Quality: On the Movie KG-Exp dataset, KnowRec achieved a BLEU-4 score of 10.71 and an Entity Coverage of 67.97%, vastly outperforming the next-best baseline, PETER (BLEU-4: 3.99, EC: 10.58%).
- Few-Shot Performance: In a data-scarce scenario using only 1% of the training data, KnowRec maintained strong performance (7.53 BLEU-4 on Movie KG-Exp), demonstrating its robustness in low-resource environments.
- Recommendation Accuracy: While prioritizing explanation quality, KnowRec achieved competitive Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) scores, performing on par with traditional ID-based collaborative filtering models.
Limitations and Future Work
While KnowRec effectively solves the cold-start problem for items, it does not yet address the cold-start problem for new users who have no purchase history. Additionally, the current dataset labels are limited to item-specific descriptions rather than fully customized user-item text.
The authors note that future work will focus on incorporating user-specific knowledge graphs and leveraging denser background knowledge bases to further enrich the personalization and accuracy of the generated explanations.
Summary updated