G-Refer: Graph Retrieval-Augmented Large Language Model for Explainable Recommendation

Yuhan Li, Xinni Zhang, Linhao Luo, Heng Chang, Yuxiang Ren +2 more
2/18/2025
80 citations
cs.IRcs.CL
rag

Official code: Yuhan1i/G-Refer (22 stars, Python, last commit 2025-03-05).

Abstract

Explainable recommendation has demonstrated significant advantages in informing users about the logic behind recommendations, thereby increasing system transparency, effectiveness, and trustworthiness. To provide personalized and interpretable explanations, existing works often combine the generation capabilities of large language models (LLMs) with collaborative filtering (CF) information.

Show full abstract

CF information extracted from the user-item interaction graph captures the user behaviors and preferences, which is crucial for providing informative explanations. However, due to the complexity of graph structure, effectively extracting the CF information from graphs still remains a challenge. Moreover, existing methods often struggle with the integration of extracted CF information with LLMs due to its implicit representation and the modality gap between graph structures and natural language explanations. To address these challenges, we propose G-Refer, a framework using graph retrieval-augmented large language models (LLMs) for explainable recommendation. Specifically, we first employ a hybrid graph retrieval mechanism to retrieve explicit CF signals from both structural and semantic perspectives. The retrieved CF information is explicitly formulated as human-understandable text by the proposed graph translation and accounts for the explanations generated by LLMs. To bridge the modality gap, we introduce knowledge pruning and retrieval-augmented fine-tuning to enhance the ability of LLMs to process and utilize the retrieved CF information to generate explanations. Extensive experiments show that G-Refer achieves superior performance compared with existing methods in both explainability and stability. Codes and data are available at https://github.com/Yuhan1i/G-Refer.

View on arXivView PDF

Code Implementations(1)

Yuhan1i/G-ReferOfficial100%

G-Refer: Graph Retrieval-Augmented Large Language Model for Explainable Recommendation

229Python, ShellDec 3, 20241 years ago

Similar Papers

Cite this paper

@article{li2025grefer,
  title  = {G-Refer: Graph Retrieval-Augmented Large Language Model for Explainable Recommendation},
  author = {Yuhan Li and Xinni Zhang and Linhao Luo and Heng Chang and Yuxiang Ren and Irwin King and Jia Li},
  year   = {2025},
  eprint = {2502.12586},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12586v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12586.svg)](https://codeofpaper.com/paper/2502.12586)

Discussion