A Large Language Model Enhanced Conversational Recommender System

Yue Feng, Shuchang Liu, Zhenghai Xue, Qingpeng Cai, Lantao Hu, Peng Jiang, Kun Gai, Fei SunarXiv 2023

Abstract

Conversational Recommender Systems (CRSs) aim to provide personalized recommendations through natural language interactions. However, balancing dialogue flow with recommendation accuracy remains a significant challenge. This paper introduces LLMCRS, a framework that utilizes a Large Language Model (LLM) as a central controller to manage specialized expert models. By decomposing the CRS task into four distinct stages—sub-task detection, model matching, execution, and response generation—and employing Reinforcement Learning from Performance Feedback (RLPF), LLMCRS achieves state-of-the-art performance in both recommendation utility and conversational quality.

Introduction: The Challenge of Conversational Recommendation

Traditional CRSs often struggle to manage the transition between different conversational phases, such as eliciting user preferences, providing recommendations, and explaining choices. Most existing systems attempt to handle these tasks using a single end-to-end model, which frequently results in a trade-off between natural language fluency and recommendation precision.

Dialogue flow and sub-task management in a CRS

The core problem lies in three areas: effective sub-task management, the execution of specialized recommendation logic, and maintaining response coherence. LLMCRS addresses these by positioning the LLM as an intelligent "manager" rather than a standalone engine.

Methods: LLM as a Controller

The LLMCRS framework adopts a modular approach where the LLM orchestrates specialized "expert models" through a four-stage workflow.

The four-stage LLMCRS workflow and RLPF optimization
  1. Sub-Task Detection: The LLM identifies the current conversational need (e.g., preference elicitation vs. recommendation) using schema-based and demonstration-based instructions.
  2. Model Matching: The controller selects the most appropriate expert model from a library to handle the detected sub-task.
  3. Sub-Task Execution: The chosen expert model (such as a Knowledge Graph-based recommender) performs the specific computation and returns raw data.
  4. Response Generation: The LLM synthesizes the expert output into a natural, contextually relevant response.

To align the LLM's linguistic output with recommendation utility, the authors introduced Reinforcement Learning from Performance Feedback (RLPF). This fine-tuning process uses a reward signal derived from system performance metrics like HIT (recommendation accuracy) and BLEU (dialogue fluency), ensuring the "manager" prioritizes helpful outcomes over mere sentence completion.

Key Results and Insights

Evaluated on the GoRecDial and TG-ReDial benchmarks, LLMCRS (using LLaMA-7b) demonstrated significant improvements over baselines like KGSF.

  • Recommendation Accuracy: On GoRecDial, LLMCRS achieved a HIT@1 of 0.0635, surpassing previous benchmarks.
  • Dialogue Diversity: The system's "Distinct-2" scores reached 0.2903, nearly tripling the performance of non-LLM baselines, indicating much less repetitive and more engaging dialogue.
  • Qualitative Performance: Case studies highlighted the system's ability to handle complex, multi-constraint requests (e.g., specific directorial styles combined with genre constraints) that traditional models often misunderstood.

Conclusion

LLMCRS demonstrates that LLMs are most effective in recommendation contexts when acting as orchestrators of specialized tools. While the system faces challenges regarding computational overhead and the quality of available expert models, the decomposition of tasks and the use of RLPF provide a robust path forward for building more controllable and high-performing conversational agents.

Summary updated

BibTeX
@misc{feng2023large,
  author = {Yue Feng and Shuchang Liu and Zhenghai Xue and Qingpeng Cai and Lantao Hu and Peng Jiang and Kun Gai and Fei Sun},
  title = {{A Large Language Model Enhanced Conversational Recommender System}},
  year = {2023},
  eprint = {2308.06212},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.06212},
}
Figure