TL;DR
REKS is a novel "plugin" framework that transforms black-box session-based recommendation models into explainable systems using Reinforcement Learning and Knowledge Graphs. By treating recommendation as a path-finding mission on a graph, it not only provides human-readable reasons for its suggestions but also consistently outperforms state-of-the-art models in raw accuracy.
What Problem Does This Paper Address?
Session-based recommendation (SR) is the art of predicting what a user wants next based on a short, anonymous burst of activity—like a single shopping trip where the user hasn't logged in. While deep learning models (RNNs, GNNs, and Attention-based models) have become incredibly good at this, they are essentially "black boxes." They provide a list of items but no "why."
This lack of transparency hurts user trust and satisfaction. While Knowledge Graphs (KGs) are often used to provide explanations in traditional recommendation (where we have years of user history), applying them to anonymous, short-term sessions is difficult. The challenge lies in bridging the gap between a static, global Knowledge Graph and the highly dynamic, fleeting nature of a single user session.
Methods
The authors introduce REKS (Reinforced Explainable framework with Knowledge graph for Session-based recommendation). Instead of building a brand-new recommender, they designed REKS to wrap around existing SOTA models (like GRU4REC or BERT4REC).
Key technical components include:
- Session-Aware KG Construction: They don't just use standard entity-relation triplets. They inject "co-occur" relations into the KG based on session behaviors, effectively teaching the static graph about temporal item dependencies.
- MDP Formulation: They frame the recommendation task as a Markov Decision Process (MDP). An RL agent "walks" the Knowledge Graph to find the best item.
- State: A fusion of the session representation (from the base black-box model) and the current path representation in the KG.
- Action: Selecting the next entity/relation to move to in the KG.
- Starting Point: Crucially, they start every path from the last item in the session, arguing it best reflects the user's immediate intent.
- Multi-Faceted Reward Function: The agent is rewarded based on three criteria:
- Item-level: Did it find the ground-truth item?
- Rank-level: How high did it place the target item in the top-K list?
- Path-level: Is the explanation path semantically relevant to the current session?
- Optimization: The model uses a hybrid loss function combining reward maximization (via REINFORCE) and standard cross-entropy loss to ensure both accuracy and explainability.
Datasets
The framework was evaluated on four widely-used datasets:
- Amazon (Beauty, Cellphones, Baby): These include rich metadata (brands, categories, "also bought" relations) used to build the KG.
- MovieLens-1M: A classic movie recommendation dataset, augmented with the Microsoft Satori knowledge graph to provide entities like directors, actors, and genres.
Key Insights and Ideas
- The Accuracy-Explainability Synergy: Usually, adding explainability comes at the cost of accuracy. REKS flips this script. By using the KG to guide the search, the model actually finds better recommendations than the "black box" models do on their own.
- The "Last Item" Anchor: In traditional KG-based recommendation, paths usually start from a User entity. In anonymous sessions, the authors found that starting from the most recent item is far more effective for capturing short-term intent.
- KG as a Search Space, Not Just a Feature: Rather than just using KG embeddings as input features, REKS uses the KG as a physical search space where the "recommendation" is the destination of a path. This makes the explanation (the path itself) a first-class citizen of the model.
Key Results
The authors instantiated REKS on five representative models: GRU4REC, NARM, SR-GNN, GCSAN, and BERT4REC. * Accuracy Boost: REKS improved the performance of every baseline across all datasets. For example, on the Amazon Beauty dataset, it improved the Hit Ratio (HR@5) of GRU4REC by 13.91%. * Qualitative Success: In a user study with 50 subjects, participants rated the generated explanations highly across metrics like transparency, persuasiveness, and satisfaction. * Path Logic: A case study showed that for a session containing "Hair Gel" and "Shampoo," REKS recommended "Conditioner" because it shared the same brand ("Dove") as the shampoo—a logical, human-understandable link.
Limitations and Future Work
While REKS is a powerful framework, it has a few areas for growth:
- KG Dependency: The quality of explanations is strictly limited by the richness of the underlying Knowledge Graph. If the KG is sparse or missing key relations, the explanations may become repetitive or less insightful.
- Computational Overhead: Traversal-based RL can be more computationally expensive than simple feed-forward passes, though the authors used beam search to mitigate this.
- Real-world Validation: The authors noted that future work should involve A/B testing and online experiments to see how these explanations affect actual user click-through rates and long-term retention in a production environment.
Summary updated