Variable-Length Semantic IDs for Recommender Systems

Kirill Khrylchenko
2/18/2026
cs.IRcs.CLcs.LG

No official code found. Best implementation: KhrylchenkoKirill/varlen_semantic_ids (21 stars, MIT, last commit 2026-02-19).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Variable-Length Semantic IDs for Recommender Systems

211PythonFeb 19, 20268 months agoMIT

Similar Papers

Cite this paper

@article{khrylchenko2026variablelength,
  title  = {Variable-Length Semantic IDs for Recommender Systems},
  author = {Kirill Khrylchenko},
  year   = {2026},
  eprint = {2602.16375},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.16375v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.16375.svg)](https://codeofpaper.com/paper/2602.16375)

Discussion