TL;DR
This paper introduces CoLLM, a novel approach that integrates collaborative filtering information into Large Language Models (LLMs) for recommendation systems. By treating collaborative signals as a distinct modality and mapping them into the LLM's embedding space, CoLLM significantly improves recommendation performance for both new (cold-start) and established (warm-start) users, outperforming existing LLM-based and traditional methods.
What Problem Does This Paper Address?
The rise of Large Language Models (LLMs) has opened exciting new avenues for recommendation systems (LLMRec). LLMs, with their impressive understanding of language and world knowledge, are particularly promising for addressing the "cold-start" problem, where recommendations are difficult due to a lack of user-item interaction data. However, existing LLMRec methods often over-rely on the textual semantics of items and users, neglecting a crucial piece of information: the collaborative signals derived from user-item interaction patterns. This oversight leads to suboptimal performance, especially for "warm-start" users who have a history of interactions. The paper aims to bridge this gap by proposing a method that effectively integrates collaborative information into LLMs, thereby enhancing recommendation quality across both cold and warm scenarios.
Methods
CoLLM introduces a novel way to inject collaborative information into LLMs without modifying the LLM's core architecture. The approach involves three key components:
- Prompt Construction: Recommendation data is framed as natural language prompts. Crucially, alongside item titles and user interaction history, user and item IDs are included as placeholders to represent collaborative information.
- Hybrid Encoding: This is the core innovation. For textual content, the standard LLM tokenization and embedding lookup are used. For the collaborative information (user/item IDs), a Collaborative Information Encoding (CIE) module is employed. This module first uses a traditional collaborative filtering model (like Matrix Factorization or LightGCN) to generate user and item embeddings that capture collaborative signals. These embeddings are then mapped into the LLM's token embedding space using a Multilayer Perceptron (MLP). This effectively creates a new "modality" for the LLM.
- LLM Prediction: The LLM, now equipped with both textual and collaborative embeddings, generates recommendations. To make this process more efficient and focused on recommendation tasks, the paper utilizes LoRA (Low-Rank Adaptation) for fine-tuning, which adds a small number of trainable parameters.
The training process is a two-step procedure: first, the LoRA module is tuned using only textual information to learn recommendation basics. Second, the CIE module is tuned to effectively map collaborative information into the LLM's embedding space, while keeping other components frozen.
Datasets
The paper evaluates CoLLM on two widely used recommendation datasets:
- ML-1M (MovieLens-1M): A dataset of user ratings for movies, with ratings converted to binary labels (positive/negative).
- Amazon-Book: A book recommendation dataset from Amazon, also converted to binary labels.
The datasets were split into training, validation, and testing sets based on interaction timestamps to simulate real-world scenarios and prevent data leakage. For the Amazon-Book dataset, users and items with fewer than 20 interactions were filtered out to ensure data quality.
Key Insights and Ideas
- Collaborative Information as a Modality: The paper frames collaborative signals not just as features, but as a distinct "modality" that LLMs can process, similar to how they handle text or images.
- Externalizing Collaborative Models: Instead of trying to force LLMs to learn collaborative filtering from scratch, CoLLM leverages existing, well-trained collaborative models. This is more efficient and allows for flexibility in choosing the best collaborative model.
- Mapping to LLM Space: The key technical challenge is making collaborative embeddings understandable to the LLM. The CIE module's mapping layer is crucial for bridging this gap.
- Two-Step Tuning for Cold-Start: The staged training approach is vital. First, learning from text alone helps the LLM build a foundation for recommendations, which is essential for cold-start scenarios. Then, incorporating collaborative information refines performance for all users.
- LLM's Weakness in Warm-Start: The results highlight that even fine-tuned LLMs struggle to match traditional collaborative models in warm-start scenarios without explicit collaborative integration.
Key Results
- Superior Performance: CoLLM consistently outperforms strong baselines, including traditional collaborative methods (MF, LightGCN, SASRec, DIN) and existing LLMRec methods (ICL, Prompt4NR, TALLRec), on both ML-1M and Amazon-Book datasets across AUC, UAUC, and NDCG metrics.
- Warm-Start Improvement: CoLLM significantly boosts performance in warm-start scenarios, where traditional LLMRec methods falter. For instance, on ML-1M warm-start, CoLLM achieves a higher AUC than MF and TALLRec.
- Cold-Start Competitiveness: While LLMRec methods generally excel in cold-start, CoLLM maintains comparable performance to TALLRec, demonstrating it doesn't sacrifice cold-start capabilities while improving warm-start performance.
- Efficiency: CoLLM introduces only a modest increase in training time (around 15.5%) and inference time (around 12.5%) compared to TALLRec, making it practical for real-world applications.
- Flexibility: The paper shows that CoLLM's performance is positively correlated with the underlying collaborative model used, indicating its flexibility in adopting various collaborative techniques.
Limitations and Future Work
- Computational Cost: While CoLLM is more efficient than some LLMRec approaches, LLMs inherently have high computational costs. The authors acknowledge this and suggest leveraging existing acceleration techniques.
- LLM Backbone Dependence: The current experiments are primarily conducted on Vicuna-7B. Future work will explore CoLLM's effectiveness with other LLM backbones.
- Incremental Learning: The authors plan to investigate CoLLM's capabilities for incremental learning, adapting to evolving collaborative information over time.
- Dataset Specificity: While tested on two datasets, further validation on a wider range of datasets would strengthen the generalizability claims.
Summary updated