Abstract
Conversational Recommender Systems (CRSs) aim to provide personalized recommendations by capturing user preferences through interactive dialogues. Explainability in CRSs is crucial as it enables users to understand the reasoning behind recommendations, increasing system transparency and trustworthiness. However, current CRSs often leverage knowledge graphs (KGs) or language models to extract and represent user preferences as latent vectors, which limits their explainability. Large language models (LLMs) offer powerful reasoning capabilities that can bridge this gap by generating human-understandable preference summaries. However, effectively reasoning over user preferences in CRSs remains challenging as LLMs pre-trained on large-scale corpora may not be well-suited for analyzing user preferences. While KGs provide rich domain knowledge, integrating them with LLMs encounters a significant modality gap between structured KG information and unstructured conversations. In this paper, we propose COMPASS, a plug-and-play framework that synergizes LLMs and KGs to reason over user preferences, enhancing the performance and explainability of existing CRSs. COMPASS employs a two-stage training approach: first, it bridges the gap between the structured KG and natural language through novel graph entity captioning pre-training. Next, COMPASS optimizes user preference reasoning via knowledge-aware instruction fine-tuning, where the LLM learns to reason and summarize user preferences from dialogue histories and KG-augmented context. This enables COMPASS to perform knowledge-aware reasoning and generate interpretable user preferences that can seamlessly integrate with existing CRS models for improving recommendation performance and explainability. Our experiments on benchmark datasets demonstrate the effectiveness of COMPASS in improving various CRS models.
Introduction
In the world of Conversational Recommender Systems (CRSs), the goal is to interact with users to identify their specific needs. Traditionally, these systems have operated as "black boxes," representing complex user desires as latent vectors—numerical strings that are interpretable by machines but opaque to humans. This lack of transparency hinders user trust and system debugging.
The COMPASS (Compact Preference Analyzer and Summarization System) framework addresses this by moving toward human-readable reasoning. By combining Large Language Models (LLMs) with Knowledge Graphs (KGs), COMPASS generates textual summaries of user preferences, bridging the gap between abstract embeddings and natural language.
Methodology: The COMPASS Framework
The core challenge in integrating KGs with LLMs is the "modality gap"—the difference between structured graph data and unstructured conversational text. COMPASS employs a two-stage training paradigm to align these modalities and enable effective reasoning.
1. Graph Entity Captioning (Pre-training)
To bridge the modality gap, COMPASS uses a Relational Graph Convolutional Network (R-GCN) to encode KG entities. The LLM is then trained to "caption" these entities, translating graph embeddings into natural language descriptions. This process teaches the LLM to interpret the structured relationships within the KG.
2. Knowledge-aware Instruction Fine-tuning
The LLM is fine-tuned to synthesize dialogue history with KG-augmented context. Using a "coarse-to-fine" prompt structure, the model generates a four-part summary:
- Reasoning: The underlying logic for the inference.
- Overall Preferences: Long-term user tastes.
- Current Interests: Immediate needs identified in the current session.
- Recommendation: Specific items aligned with the user profile.
3. Adaptive Gating Mechanism
To ensure versatility, COMPASS uses an Adaptive Gating Mechanism. This allows the textual preference summary (encoded via BERT) to be integrated into existing CRS architectures without requiring a complete redesign, making it a truly "plug-and-play" solution.
Experimental Setup
The framework was evaluated on two prominent movie recommendation datasets:
- ReDial: A large-scale dataset containing over 11,000 conversations.
- INSPIRED: A specialized dataset of 999 conversations incorporating social science-based recommendation strategies.
- Knowledge Source: A KG constructed from IMDB data, linking movies to genres, actors, and directors.
Key Insights and Results
The research highlights several critical findings:
- Text as a Universal Interface: Representing preferences as text captures nuances that latent vectors often miss, benefiting both human interpretability and model performance.
- KG and LLM Synergy: The KG acts as a "factual anchor," preventing the hallucinations often seen in standalone LLMs and providing the precision necessary for accurate recommendations.
- Performance Gains: COMPASS demonstrated significant improvements across various models. For instance, it boosted the Hit Ratio (HR@10) of the KBRD model on the INSPIRED dataset by 44.76%. Even for state-of-the-art models like MSCRS, it provided a 7.78% improvement.
- User Preference: Qualitative evaluations using LLM-simulated users showed a 75% preference for COMPASS-generated recommendations due to their superior alignment and explainability.
Conclusion and Future Work
COMPASS represents a significant step toward transparent and effective conversational AI. By leveraging the reasoning power of LLMs and the factual depth of KGs, it transforms the "black box" of user preferences into an interpretable dialogue.
Future research will focus on reducing the computational overhead of real-time LLM generation and expanding the framework to more complex domains, such as medical or financial advice, where KG structures are more intricate.
Summary updated