cs.IRFeb 18, 2026

Variable-Length Semantic IDs for Recommender Systems

Authors: Kirill Khrylchenko

Organizations: HSE University, Moscow, Russia

Abstract

Generative models are increasingly used in recommender systems, both for modeling user behavior as event sequences and for integrating large language models into recommendation pipelines. A key challenge in this setting is the extremely large cardinality of item spaces, which makes training generative models difficult and introduces a vocabulary gap between natural language and item identifiers. Semantic identifiers (semantic IDs), which represent items as sequences of low-cardinality tokens, have recently emerged as an effective solution to this problem. However, existing approaches generate semantic identifiers of fixed length, assigning the same description length to all items. This is inefficient, misaligned with natural language, and ignores the highly skewed frequency structure of real-world catalogs, where popular items and rare long-tail items exhibit fundamentally different information requirements. In parallel, the emergent communication literature studies how agents develop discrete communication protocols, often producing variable-length messages in which frequent concepts receive shorter descriptions. Despite the conceptual similarity, these ideas have not been systematically adopted in recommender systems. In this work, we bridge recommender systems and emergent communication by introducing variable-length semantic identifiers for recommendation. We propose a discrete variational autoencoder with Gumbel-Softmax reparameterization that learns item representations of adaptive length under a principled probabilistic framework, avoiding the instability of REINFORCE-based training and the fixed-length constraints of prior semantic ID methods.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Learning Variable-Length Tokenization for Generative Recommendation

    May 18, 2026Minhao Wang, Bowen Wu, Wei ZhangResidual VQGenerative Recommendation

  2. VaLiDRec: Variable-Length LLM-Aligned Semantic IDs for Generative Recommendation

    Jul 28, 2026Shutong Qiao, Wei Yuan, Tong Chen +3Semantic ID RecommendationGraph Prompt Learning