[Paper Review] Adapting Large Language Models by Integrating Collaborative Semantics for Recommendation
This paper proposes LC-Rec, a novel LLM-based recommendation framework that integrates language and collaborative semantics via a tree-structured vector quantization method for item indexing and specialized alignment tuning tasks. By learning meaningful, discrete item indices and fine-tuning LLMs on joint semantics, LC-Rec achieves state-of-the-art performance in sequential recommendation without relying on candidate sets.
Recently, large language models (LLMs) have shown great potential in recommender systems, either improving existing recommendation models or serving as the backbone. However, there exists a large semantic gap between LLMs and recommender systems, since items to be recommended are often indexed by discrete identifiers (item ID) out of the LLM's vocabulary. In essence, LLMs capture language semantics while recommender systems imply collaborative semantics, making it difficult to sufficiently leverage the model capacity of LLMs for recommendation. To address this challenge, in this paper, we propose a new LLM-based recommendation model called LC-Rec, which can better integrate language and collaborative semantics for recommender systems. Our approach can directly generate items from the entire item set for recommendation, without relying on candidate items. Specifically, we make two major contributions in our approach. For item indexing, we design a learning-based vector quantization method with uniform semantic mapping, which can assign meaningful and non-conflicting IDs (called item indices) for items. For alignment tuning, we propose a series of specially designed tuning tasks to enhance the integration of collaborative semantics in LLMs. Our fine-tuning tasks enforce LLMs to deeply integrate language and collaborative semantics (characterized by the learned item indices), so as to achieve an effective adaptation to recommender systems. Extensive experiments demonstrate the effectiveness of our method, showing that our approach can outperform a number of competitive baselines including traditional recommenders and existing LLM-based recommenders. Our code is available at https://github.com/RUCAIBox/LC-Rec/.
Motivation & Objective
- To address the semantic gap between language semantics in LLMs and collaborative semantics in recommender systems.
- To enable LLMs to directly generate item recommendations from the full item set, without candidate filtering.
- To design a meaningful, non-conflicting, and extensible item indexing mechanism that captures item similarities.
- To develop alignment tuning tasks that deeply integrate language and collaborative semantics in LLMs.
- To fully leverage LLM capacity for sequential recommendation by bridging two distinct semantic spaces.
Proposed method
- Proposes a tree-structured vector quantization (VQ) method with uniform semantic mapping to assign discrete, meaningful, and conflict-free item indices.
- Designs a hierarchical indexing scheme where each level refines the semantic representation from coarse to fine-grained.
- Introduces three alignment tuning tasks: sequential item prediction, explicit index-language alignment, and implicit recommendation-oriented alignment.
- Uses the learned item indices as discrete tokens in the LLM’s autoregressive generation process to enable direct item generation.
- Employs contrastive learning and masked prediction objectives to align language semantics with collaborative semantics via item indices.
- Trains the LLM end-to-end on user interaction sequences, using item indices as input tokens and predicting the next item in the sequence.
Experimental results
Research questions
- RQ1How can we effectively map discrete item IDs into a semantic space compatible with LLMs’ language understanding?
- RQ2What kind of item indexing mechanism can preserve item similarity while avoiding conflicts and enabling scalability?
- RQ3How can we fine-tune LLMs to jointly learn language and collaborative semantics without sacrificing generalization?
- RQ4Can LLMs generate accurate item recommendations directly from the full item set using integrated semantics?
- RQ5To what extent does integrating collaborative semantics improve recommendation quality compared to purely language-based methods?
Key findings
- LC-Rec outperforms multiple competitive baselines, including traditional sequential recommenders and existing LLM-based models, on three large-scale recommendation datasets.
- The ablation study shows that each proposed alignment tuning task contributes significantly to performance, with the implicit recommendation-oriented task yielding the largest gain.
- The hierarchical index generation process demonstrates a coarse-to-fine semantic refinement, where higher-level indices contribute more to content changes than lower-level ones.
- Generated item titles progressively converge toward the ground truth as more index levels are used, confirming the effectiveness of the multi-level indexing scheme.
- The integration of collaborative semantics via indices leads to more relevant similar items than text embedding-based cosine similarity, especially in platform- and category-specific recommendations.
- The model maintains strong generalization and generates semantically coherent item titles even with partial index inputs, indicating robustness in low-resource settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.