Abstract
CoRA (Collaborative LoRA) introduces a novel framework to transform Large Language Models (LLMs) into effective recommendation engines. Unlike traditional methods that inject collaborative signals into input prompts, CoRA embeds this information directly into the model's parameter space. By generating low-rank incremental weights from user-item interaction data, CoRA achieves state-of-the-art recommendation performance while mitigating catastrophic forgetting and semantic disruption.
Introduction: The Challenge of LLM-based Recommendation
Adapting LLMs for recommendation typically follows two paths: fine-tuning on recommendation-specific datasets or augmenting input prompts with collaborative features (e.g., user/item IDs or embeddings). However, these strategies suffer from two critical drawbacks:
- Knowledge Erosion: Fine-tuning often leads to "catastrophic forgetting," where the model loses its general linguistic and reasoning capabilities. Previous methods like TALLRec have shown performance drops of nearly 70% on standard NLP tasks after being adapted for recommendation.
- Semantic Disruption: Non-textual embeddings injected into prompts can break the natural language flow, confusing the model's internal representations and leading to nonsensical outputs.
Methods: Aligning Collaborative Information in Parameter Space
CoRA shifts the alignment of collaborative information from the input space to the parameter space. Instead of treating collaborative data as something for the model to "read," CoRA treats it as a contextual filter for the model's internal logic. The architecture consists of several key components:
- Collaborative Query Generator: Utilizing a pre-trained Collaborative Filtering (CF) model (e.g., Matrix Factorization or LightGCN), CoRA extracts user and item embeddings. These are processed through $N$ decoder blocks featuring cross-attention to generate collaborative queries.
- Parameter Space Alignment: Inspired by Low-Rank Adaptation (LoRA), these queries are transformed into incremental weights ($\Delta W$).
- Dynamic Weight Merging: For each specific user-item pair, unique low-rank weights are generated and merged into the LLM’s self-attention layers ($W^Q, W^K, W^V, W^O$).
- Frozen Backbone: The core LLM remains frozen throughout the process. Only the small query generator is trained, ensuring the model's fundamental world knowledge remains intact while it "perceives" collaborative signals through the updated weights.
Key Insights and Results
The researchers evaluated CoRA on widely-used benchmarks including ML-1M (MovieLens) and Amazon-Book. To verify the preservation of general intelligence, they also tested the model on five NLP benchmarks such as WikiFact and SocialIQA.
- Superior Accuracy: CoRA consistently outperformed state-of-the-art LLM-based recommenders and traditional CF models. On the Amazon-Book dataset, CoRA-MF achieved an AUC of 0.8179, a significant lead over traditional MF (0.7105).
- Cold-Start Resilience: In scenarios where users have few interactions, CoRA leverages the LLM's linguistic understanding of item titles to significantly outperform traditional collaborative filtering models.
- Preservation of General Intelligence: Unlike previous methods, CoRA maintains the backbone's original performance because the core parameters are never modified.
- Criticality of Output Weights: Ablation studies revealed that injecting collaborative information into the output weights ($W^O$) of the self-attention module is more critical for performance than updating query or key weights alone.
Conclusion and Future Directions
CoRA presents a robust method for personalizing LLMs without compromising their general-purpose utility. By treating collaborative information as a parameter-level adjustment rather than a textual prompt, the model achieves a more seamless integration of recommendation logic and linguistic reasoning. While currently optimized for the Vicuna-7B architecture, future work could explore scaling to larger architectures like Mixture-of-Experts (MoE) and potential applications in on-device collaborative learning, where personalized weights are generated locally on a user's device.
Summary updated