Does Positional Encoding Matter for Semantic ID-based Generative Recommendation?
Yuqing Liu, Huiyuan Chen, Jingru Cheng, Geo Zhang, Philip S. Yu
Abstract
Semantic IDs have emerged as an effective representation for generative recommendation, where each item is represented by multiple discrete codes. These codes are typically serialized along the user interaction sequence into a flattened token sequence for generative modeling. However, such a formulation couples two structurally different sources of positional variation: the sequential order of user interactions and the hierarchical order induced by residual quantization. We argue that these two structures should be modeled on their respective positional axes. Based on this insight, we propose SimPos, a simple structure-aware positional modeling method that replaces the Transformer backbone's positional encoding with separate interaction-level and residual-level attention biases, requiring no additional learnable parameters. Experiments on four real-world recommendation datasets with different backbones and residual tokenizers show that SimPos consistently outperforms existing positional encoding methods, with relative gains of up to +24.88% in Recall@5. These results indicate that positional encoding matters in semantic ID-based generative recommendation, and that directly inheriting it from the Transformer backbone is suboptimal. Our code and data are available at https://github.com/KevinC2015/SimPos.
Create a lesson
Metadata
- Categories
- cs.IR, cs.LG
- Comments
- Code: https://github.com/KevinC2015/SimPos
Related papers
Aligning Where It Matters: Critical-Branch Preference Optimization for LLM-based Generative Recommendation
Shared title terminologycs.IRRuifeng Ren, Shaojie Zhu, Yudong Li et al.
Semantic IDs Are Interfaces: Stability-Constrained Evolution for Continual Generative Recommendation
Shared title terminologycs.IRJinfeng Xu, Zheyu Chen, Ziyue Peng et al.
Structure Diffusion Quantization: Learning Stable Coarse-to-Fine Semantic IDs for Generative Recommendation
Shared title terminologycs.IRCong Xu, Zihan Liao, Lingxiao Wei et al.
From Category to Venue: Progressive Category-Collaborative Semantics Aligned Generative POI Recommendation
Shared title terminologycs.IRYuxi Huang, Silin Zhou, Wenwen Zhao et al.
LAMP: Language-Aligned Multi-Intent Parallel Decoding of Semantic IDs for Generative Recommendation
Shared title terminologycs.IRYixuan Xu, Yuheng Chen, Fan Zhang et al.
Jev-GR: Autoregressive Semantic ID Prediction with a Decision LLM for Generative Recommendation
Shared title terminologycs.IRJingyu Li, Chenhao He, Qiuyi Xin et al.