Abstract
Explainable recommendation systems aim to provide transparent justifications for item suggestions, enhancing user trust. However, integrating Large Language Models (LLMs) with Collaborative Filtering (CF) data from user-item graphs faces a "modality gap," where LLMs struggle to interpret the implicit mathematical embeddings produced by Graph Neural Networks (GNNs). We present G-Refer, a Graph Retrieval-Augmented LLM framework that bridges this gap by translating explicit structural and semantic graph signals into natural language. G-Refer employs a hybrid retrieval mechanism, knowledge pruning, and retrieval-augmented fine-tuning (RAFT). Experimental results on three real-world datasets demonstrate that G-Refer significantly outperforms state-of-the-art baselines in both automated metrics and human preference, generating highly accurate and human-understandable explanations.
Introduction
Recommender systems are significantly more trustworthy when they can explain why an item is being suggested. Modern systems often attempt to combine the natural language capabilities of LLMs with Collaborative Filtering (CF) data extracted from user-item interaction graphs. Traditionally, Graph Neural Networks (GNNs) are used to capture this graph data, but they output implicit dense embeddings. LLMs struggle to interpret these unstructured mathematical vectors—a challenge known as the "modality gap."
Because the LLM does not explicitly understand the graph structure hidden in the embeddings, it often generates generic explanations or hallucinations, undermining transparency. G-Refer addresses this by replacing implicit embeddings with explicit, readable text retrieved directly from the graph.
Methodology
G-Refer utilizes a four-stage pipeline to bridge the modality gap and generate grounded explanations:
- Hybrid Graph Retrieval: G-Refer uses two distinct retrievers to pull evidence from the graph. The Path-level Retriever uses a GNN and shortest-path algorithms to find structural connections (e.g., shared purchase history). The Node-level Retriever uses dense text embeddings (SentenceBERT) to find semantically similar users and items based on their text profiles.
- Graph Translation: The retrieved paths and nodes are formatted into human-readable text templates, allowing the LLM to process them as natural language context.
- Knowledge Pruning: To improve training efficiency, G-Refer filters out "self-explanatory" training samples where the recommendation is obvious from the user profile alone. This forces the model to focus on learning from complex collaborative filtering cases.
- Retrieval-Augmented Fine-Tuning (RAFT): The LLM (e.g., LLaMA or Qwen) is fine-tuned using LoRA on the pruned dataset, teaching it to synthesize retrieved graph text into fluid explanations.
Experimental Results
The authors evaluated G-Refer on three public datasets: Amazon-books, Yelp, and Google-reviews.
Quantitative Performance
G-Refer consistently outperformed state-of-the-art baselines such as XRec, PETER, and PEPLER. It achieved improvements in BERT F1-scores of 1.67% to 2.81% across datasets. Notably, BERT Recall saw jumps of up to 8.67%, indicating that the generated explanations contained significantly more relevant collaborative filtering information than previous methods.
Human Evaluation
In a blind study, senior researchers overwhelmingly preferred G-Refer’s explanations over the leading baseline, XRec. G-Refer was chosen 69% of the time on Amazon-books, 82% on Yelp, and 86% on Google-reviews, highlighting its ability to generate more convincing and grounded reasoning.
Discussion and Conclusion
A key insight from this work is that explicit text descriptions of graph paths are far more effective for LLM grounding than implicit GNN embeddings. Furthermore, the knowledge pruning step proved to be a "secret weapon" for efficiency; by removing noise, the model learned to reason better while training faster.
While G-Refer shows strong performance, it faces a bottleneck in cases of high graph sparsity (as seen in the Amazon-books dataset), where limited path data reduces the effectiveness of structural retrieval. Future work will investigate training-free graph retrievers and the transferability of this framework to other graph-based reasoning tasks.
Summary updated