Fine-Tuning Large Language Model Based Explainable Recommendation with Explainable Quality Reward

Mengyuan Yang, Mengying Zhu, Yan Wang, Linxun Chen, Yilei Zhao, Xiuyuan Wang, Bing Han, Xiaolin Zheng, Jianwei Yin

Abstract

Explainable Recommendation (ER) aims to provide users with personalized justifications for suggested items. While Large Language Models (LLMs) excel at text generation, they often struggle with personalization, factual consistency, and learning from noisy review data. This paper presents LLM2ER-EQR, a framework that fine-tunes LLMs using a concept graph and a reinforcement learning strategy. By employing two novel reward models—Concept Consistent Reward (CCR) and High-Quality Alignment Reward (HQAR)—the system generates diverse, user-specific, and high-quality explanations that significantly outperform existing baselines.

Introduction

In the era of information overload, recommendation systems are vital. However, providing a recommendation is often not enough; users benefit from understanding why an item was selected for them. This is the goal of Explainable Recommendation (ER).

Example of an LLM-generated recommendation explanation for 'X-Men: The Last Stand'.

Despite the capabilities of LLMs like GPT-3.5, their application to ER faces three primary challenges:

  1. Lack of Personalization: Generic training data fails to capture individual user nuances.
  2. Inconsistency: Models may "hallucinate" irrelevant details not present in the item's features or user history.
  3. Noisy Training Data: Online reviews, often used as ground truth, are frequently "hollow" (e.g., "Great movie!"), providing poor signals for learning informative explanations.

Methodology: The LLM2ER-EQR Framework

The proposed solution consists of two main components: a backbone model (LLM2ER) and a fine-tuning enhancement (EQR).

The LLM2ER-EQR framework architecture, featuring the backbone LLM2ER and the EQR fine-tuning module.

1. LLM2ER Backbone

LLM2ER moves beyond simple text prompts by incorporating structured knowledge. It utilizes a Concept Graph built with a Heterogeneous Graph Transformer (HGT), linking users, items, and standardized concepts (e.g., "cinematography," "action") extracted from reviews.

  • Reasoning Paths: The model identifies relevant concepts connecting a user to an item within the graph.
  • Personalized Prompts: These concepts, user/item embeddings, and predicted ratings are integrated into the prompt to guide the LLM's generation process.

2. EQR Fine-Tuning

To refine the output, the authors employ Reinforcement Learning from AI Feedback (RLAIF) with two specialized reward models:

  • Concept Consistent Reward (CCR): Uses contrastive learning to ensure the explanation aligns semantically with the concepts identified in the graph, penalizing off-topic content.
  • High-Quality Alignment Reward (HQAR): Addresses the "noisy data" problem using a GAN-style discriminator. This discriminator learns to distinguish between "hollow" reviews and high-quality, concept-dense ones. The LLM is rewarded for generating text that mimics high-quality human justifications.

Experimental Evaluation

The framework was tested on three public benchmarks: Amazon (Movies & TV), Yelp (2019), and TripAdvisor. Concepts were standardized using the Microsoft Concept Graph to ensure meaningful graph nodes.

Key Results

LLM2ER-EQR consistently outperformed state-of-the-art baselines (e.g., PETER, PEVAE):

  • Text Quality: Improved BLEU and ROUGE scores by approximately 5.5% and 4.8%, respectively.
  • Diversity: "Distinct" scores improved by nearly 4%, indicating less repetitive text.
  • Personalization: The Concept Overlapping Ratio (COR) saw a 12.7% increase, showing better tailoring to specific users and items.
  • Consistency: The Concept Matching Ratio (CMR) improved by 5.8%, validating the effectiveness of the RL fine-tuning in keeping the model on-topic.

Discussion and Insights

A critical finding is the "Review Quality Trap": standard ground truth data is often low-quality. By filtering for high-quality explanations during the RL phase via HQAR, the model learns to be more informative than the average reviewer. Furthermore, the synergy between structured knowledge (HGT) and generative power (LLM) allows for more robust reasoning before text generation.

Conclusion and Future Work

While LLM2ER-EQR marks a significant step forward, it inherits some limitations of its base LLMs, such as potential social biases. Additionally, the computational cost of RL fine-tuning with graph transformers is higher than simple prompting. Future research will explore expanding this framework into multimodal recommendations, incorporating images and video into the explanatory process.

Summary updated

BibTeX
@inproceedings{yang2024fine,
  author = {Mengyuan Yang and Mengying Zhu and Yan Wang and Linxun Chen and Yilei Zhao and Xiuyuan Wang and Bing Han and Xiaolin Zheng and Jianwei Yin},
  title = {{Fine-Tuning Large Language Model Based Explainable Recommendation with Explainable Quality Reward}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i8.28777},
}
Figure