Abstract
Traditional recommender systems excel at processing large-scale data but often lack interactivity and explainability. Chat-REC addresses these limitations by augmenting traditional systems with the reasoning capabilities of Large Language Models (LLMs). By transforming user profiles and interaction histories into natural language prompts, Chat-REC enables a conversational interface that provides personalized, explainable recommendations and handles cold-start scenarios effectively without model fine-tuning.
Introduction: The Limitations of Traditional Recommendation
Recommender systems (RS) are ubiquitous in digital platforms, yet they face three primary challenges:
- Lack of Interactivity: Users typically receive static lists and cannot easily provide feedback or ask follow-up questions.
- The "Black Box" Problem: The underlying logic for recommendations is often opaque, making it difficult for users to understand why specific items are suggested.
- Data Sparsity and Cold Starts: Performance degrades significantly for new users or when attempting cross-domain recommendations (e.g., suggesting books based on movie preferences).
While LLMs possess vast general knowledge, they are not natively designed to manage the massive, dynamic item catalogs of commercial databases. Chat-REC bridges this gap by using traditional RS for efficient candidate retrieval and LLMs for human-like reasoning and interface.
Methods: The Chat-REC Framework
Chat-REC operates as a multi-stage pipeline that integrates traditional recommendation algorithms with LLMs like ChatGPT.
The process involves several key stages:
- Candidate Generation: A traditional RS (e.g., LightGCN or LightFM) acts as a retriever, filtering the entire database down to a manageable candidate set (e.g., top 20 items).
- Prompt Construction: The system synthesizes the user's profile, historical interactions, the current query, and the candidate set into a natural language prompt.
- In-Context Learning (ICL): Instead of fine-tuning, Chat-REC leverages the LLM's ability to learn from the provided context. The LLM acts as a semantic re-ranker, filtering the candidate set based on its deep understanding of user preferences.
- Handling New Items: To address the LLM's knowledge cutoff, the system uses external embeddings for new items, calculating similarity to the user's history to inject relevant context into the prompt.
Datasets and Evaluation
The framework was evaluated using the MovieLens 100K dataset, which includes 100,000 ratings from 943 users across 1,682 movies. A sample of 200 users was used to test top-k recommendation performance and zero-shot rating predictions.
Key Insights and Results
Chat-REC demonstrates significant improvements over baseline models in both quantitative metrics and qualitative capabilities.
Quantitative Performance
- Top-5 Recommendation: Utilizing
text-davinci-003, Chat-REC outperformed the state-of-the-art LightGCN, achieving a Precision of 0.3240 (6.93% improvement) and an NDCG of 0.3802 (11.01% improvement). - Rating Prediction: In a zero-shot setting, Chat-REC achieved an RMSE of 0.785, significantly outperforming traditional Matrix Factorization (0.988) and Item-KNN (0.933).
Qualitative Capabilities
- Semantic Filtering: The LLM uses its internal knowledge of genres and themes to understand complex user preferences that collaborative filtering might miss.
- The "Top-1" Anchor: Including the traditional RS's top-ranked item in the prompt significantly boosts LLM performance, serving as a high-quality "hint" for re-ranking.
- Explainability and Interactivity: The system can explain its reasoning and handle multi-round feedback, refining suggestions based on user rejection.
- Ethical Awareness: The system can address ethical concerns, such as discussing diversity in a movie's cast when prompted.
Limitations and Future Work
Despite its strengths, Chat-REC faces several hurdles:
- Output Parsing: LLMs occasionally fail to follow strict output formats, necessitating retry mechanisms for automated pipelines.
- Latency and Cost: API-based LLM inference is slower and more expensive than traditional matrix operations, posing challenges for real-time scaling.
- Knowledge Cutoff: While external embeddings help, the system still relies on the LLM's "frozen" internal knowledge. Future iterations may involve tighter integration with real-time search or dynamic knowledge graphs.
Summary updated