TL;DR
Large Language Model (LLM)-based recommenders often represent items using discrete "Semantic Identifiers" (SIDs), but they typically initialize these IDs randomly and align them coarsely at the item level. TS-Rec introduces fine-grained, token-level semantic initialization and alignment, bridging the gap between discrete structural codes and the LLM’s native language space. This fine-grained integration significantly accelerates training convergence and delivers substantial performance gains across multiple real-world benchmarks.
What Problem Does This Paper Address?
Modern recommender systems are shifting from discriminative models to generative ones powered by LLMs. Instead of computing embedding similarities, these generative recommenders autoregressively predict the next item by generating a sequence of discrete tokens called Semantic Identifiers (SIDs). Think of SIDs as hierarchical "zip codes" that group similar items together based on their features.
However, current LLM-based generative recommenders face two major bottlenecks:
- Semantically Meaningless Initialization: When new SID tokens are introduced to the LLM's vocabulary, their embeddings are initialized via random sampling. This creates a massive distributional gap between the new SID space and the LLM's pre-trained language space.
- Coarse-grained Alignment: Existing Supervised Fine-Tuning (SFT) methods align the entire SID sequence with an item's global text (like its title). They completely ignore what individual tokens within the sequence mean. For example, if a token represents a broad category like "electrical components," a standard LLM often fails to realize this, instead hallucinating a specific item when queried about that single token.
Methods
To inject fine-grained semantics into the recommendation pipeline, the authors propose TS-Rec, which consists of two primary components:
1. Semantic-Aware Embedding Initialization (SA-Init)
Instead of random initialization, SA-Init grounds new SID tokens in language before training begins:
- Clustering: Items sharing the same SID token are grouped into a cluster.
- Extraction: A teacher LLM (e.g., DeepSeek) analyzes a sample of items from the cluster and generates a textual description along with a list of core keywords describing their shared traits.
- Projection: These keywords are tokenized using the recommender LLM's native tokenizer, and their pre-trained embeddings are mean-pooled to initialize the new SID token's embedding vector.
2. Token-level Semantic Alignment (TS-Align)
During the SFT stage, TS-Rec introduces a bidirectional token-level instruction tuning dataset ($\mathcal{D}_{\text{token}}$) to complement standard item-level recommendation objectives:
- Task 1 (Semantic-to-Token): The model is given a cluster description and asked to identify the corresponding SID token.
- Task 2 (Token-to-Semantic): Given an individual SID token, the model must generate its high-level category description.
The final training objective optimizes recommendation, item-level alignment, and token-level alignment simultaneously in a mixed multi-task batch.
Datasets
The authors evaluated TS-Rec on three public subsets of the widely used Amazon review dataset:
- Industrial and Scientific (45,324 interactions)
- Office Products (48,656 interactions)
- Toys and Games (140,943 interactions)
All datasets were preprocessed by filtering out users and items with fewer than five interactions and organizing sequences chronologically.
Key Insights and Ideas
- Starting Inside the Semantic Space Matters: Randomly initialized SIDs start far outside the LLM's native distribution, making alignment an uphill battle. SA-Init places SID tokens directly inside the LLM's semantic space from day one, drastically lowering early-stage evaluation loss.
- Deep Initialization Accelerates Convergence: Tracking training dynamics revealed that initializing all three hierarchical levels of the SID sequence (SA-Init 3) yields much faster convergence and stronger Hit Ratios compared to only initializing the top level.
- A Stronger Foundation for RL: In modern "SFT-then-RL" recommendation pipelines, reinforcement learning is highly sensitive to initial policy stability. Because TS-Rec provides a robust semantic understanding during SFT, it acts as a superior backbone that prevents unstable reward signals during subsequent RL optimization.
Key Results
- State-of-the-Art Performance: TS-Rec consistently outperformed traditional sequential models (SASRec, Caser) and generative baselines (TIGER, LC-Rec). It achieved relative improvements in HR@5 and NDCG@5 of up to 9.76% on Industrial, 9.45% on Office, and 13.07% on Toys.
- Enhanced Bidirectional Comprehension: In generative retrieval probing tasks, TS-Rec improved the exact-match accuracy of translating titles to SIDs by up to 120.89% and reconstructing titles from SIDs by up to 138.34% compared to standard item-level SFT.
- RL Synergy: When integrated into MiniOneRec (a state-of-the-art generative recommendation RL framework), replacing the baseline backbone with TS-Rec led to relative performance gains of up to 15.68% in ranking quality (NDCG@3).
Limitations and Future Work
While TS-Rec successfully bridges the semantic gap during the initialization and SFT phases, the authors note that preserving and refining these token-level semantics during the subsequent Reinforcement Learning (RL) phase remains an open challenge.
To address this, future work will focus on:
- Developing semantic reward functions that explicitly penalize the model if it generates SID tokens that deviate from their cluster-level meanings during RL alignment.
- Extending TS-Rec to multimodal recommendation by extracting token-level semantics from visual and behavioral item data alongside textual descriptions.
Summary updated