NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adapting Large Language Models by Integrating Collaborative Semantics for Recommendation

Bowen Zheng, Yupeng Hou, Hongyu Lu, Yu Chen, Wayne Xin Zhao, Ming Chen, Ji-Rong Wen

TL;DR

LC-Rec is a novel framework that adapts Large Language Models (LLMs) for recommendation systems by bridging the "semantic gap" between natural language and user-item interaction patterns. By combining a collision-free item indexing method with multi-task alignment tuning, LC-Rec allows LLMs to generate recommendations directly from an entire item catalog, outperforming traditional models by an average of 25.5%.

What Problem Does This Paper Address?

Large Language Models (LLMs) are masters of language semantics—they understand the relationship between words like "coffee" and "espresso." However, recommender systems rely on collaborative semantics—the hidden patterns in how users interact with items (e.g., people who buy a camera often buy a tripod).

The challenge is that these two worlds speak different languages. Recommender systems typically use discrete "Item IDs" which are meaningless to an LLM. Existing attempts to fix this usually fall into two camps:

  1. Text-based prompts: Describing items by title. This is slow, hits context window limits, and often fails to generate valid items from the catalog.
  2. Simple Indexing: Assigning random IDs to items. This loses the rich textual information and makes it hard for the LLM to learn the "meaning" of the ID.

The authors tackle this "semantic gap" by creating a way for LLMs to treat item indices as meaningful tokens that are deeply integrated into their existing linguistic knowledge.

Methods

The authors propose LC-Rec, which introduces two major innovations:

1. Learning-based Item Indexing

Instead of random IDs, LC-Rec uses a Residual-Quantized Variational AutoEncoder (RQ-VAE).

  • The Process: They take item descriptions and titles, turn them into embeddings using an LLM, and then quantize these embeddings into a tree-structured sequence of discrete indices (e.g., an item becomes <a_12><b_4><c_87><d_5>).
  • Uniform Semantic Mapping: A common problem with vector quantization is "collisions," where different items get the same ID. The authors use the Sinkhorn-Knopp algorithm to ensure that item indices are distributed uniformly, providing a unique and non-conflicting "vocabulary" for every item in the set.

2. Alignment Tuning

To make the LLM actually understand these new indices, they perform "Alignment Tuning" using three types of tasks:

  • Sequential Item Prediction: The primary goal—predicting the next item index sequence based on a user's history.
  • Explicit Index-Language Alignment: Forcing the model to translate: "What is the title of these indices?" and "What are the indices for this title?" This "grounds" the abstract IDs in natural language.
  • Implicit Recommendation-oriented Alignment: Using "asymmetric" tasks (e.g., inputting indices but asking for a title) and "intention-based" tasks (using GPT-3.5 to extract user motivations from reviews) to deepen the model's grasp of user preferences.

Datasets

The model was evaluated on three subsets of the Amazon Review Data:

  • Musical Instruments
  • Arts, Crafts and Sewing
  • Video Games

These datasets are standard in the field but were specifically chosen because they contain rich textual metadata (titles and descriptions) necessary for the indexing process.

Key Insights and Ideas

  • Hierarchical Semantics: Because the indices are tree-structured, the first index often represents a broad category (like "PlayStation games"), while subsequent indices refine the specific item. This allows the model to "narrow down" its search during generation.
  • Uniqueness is Critical: The "Uniform Semantic Mapping" isn't just a technical detail; it prevents the model from getting confused between similar items, which is a major failure point for previous generative recommendation models.
  • Asymmetry Drives Learning: The most effective tuning wasn't just asking the model to predict the next ID. By forcing the model to switch between IDs and text (asymmetric tasks), the authors effectively "fused" the collaborative and language semantic spaces.

Key Results

  • Superior Performance: LC-Rec outperformed all baselines, including traditional models like SASRec and other LLM-based models like P5 and TIGER.
  • Quantitative Gains: On the "Games" dataset, LC-Rec showed a 68.6% improvement in HR@1 (Hit Rate at 1) compared to the next best baseline.
  • Full Ranking Capability: Unlike many LLM recommenders that can only "re-rank" a small list of candidates, LC-Rec can generate the correct item from the entire item set (full ranking).
  • Zero-Shot Potential: Even without specific training on user intentions, the alignment tuning allowed the model to link item indices to abstract user needs (e.g., "a game with an open world") better than specialized retrieval models like DSSM.

Limitations and Future Work

  • Cold-Start Sensitivity: The indexing relies heavily on text descriptions. If an item has a poor description, its learned index might be less effective.
  • Computational Cost: Fine-tuning a 7B parameter model (LLaMA) is significantly more resource-intensive than training traditional lightweight recommendation models.
  • Future Directions: The authors plan to explore multi-turn chat scenarios, allowing users to refine recommendations through conversation. They also aim to investigate how to prevent "catastrophic forgetting," ensuring the LLM retains its general reasoning abilities while becoming a recommendation expert.

Summary updated

BibTeX
@inproceedings{zheng2024adapting,
  author = {Bowen Zheng and Yupeng Hou and Hongyu Lu and Yu Chen and Wayne Xin Zhao and Ming Chen and Ji-Rong Wen},
  title = {{Adapting Large Language Models by Integrating Collaborative Semantics for Recommendation}},
  booktitle = {ICDE},
  year = {2024},
  doi = {10.1109/icde60146.2024.00118},
}
Figure