Token-level Collaborative Alignment for LLM-based Generative Recommendation
Preprint
Abstract
Large Language Models (LLMs) have demonstrated strong potential for generative recommendation by leveraging rich semantic knowledge. However, existing LLM-based recommender systems struggle to effectively incorporate collaborative filtering (CF) signals, due to a fundamental mismatch between item-level preference modeling in CF and token-level next-token prediction (NTP) optimization in LLMs. Prior approaches typically treat CF as contextual hints or representation bias, and resort to multi-stage training to reduce behavioral semantic space discrepancies, leaving CF unable to explicitly regulate LLM generation. In this work, we propose Token-level Collaborative Alignment for Recommendation (TCA4Rec), a model-agnostic and plug-and-play framework that establishes an explicit optimization-level interface between CF supervision and LLM generation. TCA4Rec consists of (i) Collaborative Tokenizer, which projects raw item-level CF logits into token-level distributions aligned with the LLM token space, and (ii) Soft Label Alignment, which integrates these CF-informed distributions with one-hot supervision to optimize a soft NTP objective. This design preserves the generative nature of LLM training while enabling collaborative alignment with essential user preference of CF models. We highlight TCA4Rec is compatible with arbitrary traditional CF models and generalizes across a wide range of decoder-based LLM recommender architectures. Moreover, it provides an explicit mechanism to balance behavioral alignment and semantic fluency, yielding generative recommendations that are both accurate and controllable. Extensive experiments demonstrate that TCA4Rec consistently improves recommendation performance across a broad spectrum of CF models and LLM-based recommender systems.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- LLM4DSR: Leveraging Large Language Model for Denoising Sequential RecommendationACM Transactions on Information Systems, 2025
- TokenRec: Learning to Tokenize ID for LLM-Based Generative RecommendationsIEEE Transactions on Knowledge and Data Engineering, 2025
- MSL: Not All Tokens Are What You Need for Tuning LLM as a Recommender2025
- Recommender Systems Meet Large Language Model Agents: A SurveyFoundations and Trends® in Privacy and Security, 2025
- CoLLM: Integrating Collaborative Embeddings Into Large Language Models for RecommendationIEEE Transactions on Knowledge and Data Engineering, 2025
- A survey on large language models for recommendationWorld Wide Web, 2024
- TALLRec: An Effective and Efficient Tuning Framework to Align Large Language Model with Recommendation2023
- Contrastive Learning for Cold-Start Recommendation2021
- LightGCN2020
- Self-Attentive Sequential Recommendation2018