TL;DR
This paper introduces LETTER, a novel learnable item tokenizer for Large Language Models (LLMs) in generative recommendation. LETTER addresses the limitations of existing tokenization methods by integrating hierarchical semantics, collaborative signals, and code assignment diversity, leading to significant improvements in recommendation performance.
What Problem Does This Paper Address?
Generative recommendation, powered by LLMs, aims to predict future user preferences by generating recommendations. A critical bottleneck in this process is item tokenization: converting recommendation data (items) into a format that LLMs can understand and generate. Current methods, such as using simple item IDs, textual descriptions, or codebook-based identifiers, fall short. Item IDs lack semantic richness, making it hard to generalize to new items. Textual identifiers can be too coarse or too specific, failing to capture nuanced relationships. Codebook-based methods, while better, often suffer from imbalanced code assignments, leading to biased recommendations and a lack of collaborative signal integration. This paper tackles the challenge of creating an ideal item identifier that effectively bridges the gap between recommendation data and LLM capabilities.
Methods
The core contribution is LETTER (a LEarnable TokEnizer for generaTivE Recommendation). LETTER is built upon a Residual Quantized Variational Autoencoder (RQ-VAE) to capture hierarchical semantics. The novelty lies in its three regularization objectives:
- Semantic Regularization: Uses RQ-VAE to encode item content (titles, descriptions) into a hierarchical code sequence, allowing for coarse-to-fine-grained semantic representation.
- Collaborative Regularization: Aligns the quantized semantic embeddings from RQ-VAE with collaborative filtering (CF) embeddings (e.g., from LightGCN) using a contrastive loss. This ensures items with similar user interaction patterns have similar token representations.
- Diversity Regularization: Aims to mitigate code assignment bias by encouraging a more uniform distribution of code embeddings. This is achieved by clustering code embeddings and applying a diversity loss that pulls embeddings from the same cluster closer and pushes those from different clusters apart.
Additionally, the paper proposes a ranking-guided generation loss to augment the ranking ability of LLM-based recommenders, which penalizes hard-negative samples more heavily.
Datasets
The paper evaluates LETTER on three real-world recommendation datasets:
- Instruments: From the Amazon review datasets, focusing on music gear.
- Beauty: From the Amazon review datasets, focusing on beauty products.
- Yelp: A popular dataset comprising business interactions.
The authors follow standard pre-processing techniques, including filtering sparse users/items and using a leave-one-out strategy for evaluation.
Key Insights and Ideas
- The "Ideal" Identifier: The paper clearly articulates that an ideal item identifier for LLM-based recommendation needs to integrate hierarchical semantics, collaborative signals, and diverse code assignments. This multi-objective perspective is crucial.
- Bridging Semantics and Collaboration: LETTER's collaborative regularization is a key innovation. Instead of just relying on semantics, it actively aligns item representations with user behavior patterns, a critical aspect often missed by purely semantic or ID-based methods.
- Combating Recommendation Bias: Diversity regularization directly addresses the inherent bias in codebook-based methods where certain codes are overused. This leads to fairer and potentially more diverse recommendations.
- Ranking Matters: The proposed ranking-guided generation loss highlights that optimizing solely for next-token prediction might not be enough for recommendation. Explicitly incorporating ranking objectives can significantly boost performance.
Key Results
- Overall Performance: LETTER consistently outperforms baseline LLM-based generative recommender models (TIGER and LC-Rec) across all three datasets, achieving state-of-the-art results. For instance, LETTER-TIGER and LETTER-LC-Rec show significant improvements in Recall@10 and NDCG@10 compared to their non-LETTER counterparts.
- Component Effectiveness: Ablation studies confirm that each regularization component (semantic, collaborative, diversity) contributes positively to performance. Combining all three, along with the ranking-guided loss, yields the best results.
- Code Assignment Uniformity: Visualizations demonstrate that diversity regularization leads to a more uniform distribution of code assignments, mitigating the bias observed in methods without this component.
- Collaborative Signal Integration: Experiments show that LETTER's quantized embeddings lead to better ranking performance when used in a CF model, and items with similar collaborative signals exhibit more similar code sequences.
Limitations and Future Work
- Hyperparameter Sensitivity: While LETTER shows robustness, performance is influenced by hyperparameter choices (identifier length, regularization strengths, cluster number, temperature). The paper provides extensive analysis to guide these choices.
- Future Directions: The authors suggest several promising avenues:
- Incorporating richer user behaviors (beyond sequential interactions) into tokenization.
- Extending LETTER for cross-domain recommendation and open-ended recommendation scenarios.
- Combining user instructions in natural language with LETTER's tokenized item representations for more personalized and context-aware recommendations.
Summary updated