Object of study
semantic ID (SID)
A semantic ID (SID) is a short sequence of discrete codes assigned to an item from its content representation. In generative recommendation, a model can predict these codes to retrieve or recommend items.
What it is
A SID represents an item with an ordered tuple of codewords rather than a single random item ID. The codes are derived by quantizing an embedding of the item’s content, such as its text or image features. Similar items can share some codes, so their identifiers reflect aspects of their content.12
SIDs are used in generative retrieval and recommendation, where a model generates an item’s code sequence instead of selecting it through a separate nearest-neighbor search. A sequence of codes can represent many items: the number of possible unique SIDs depends on the number of codes in the sequence and the size of each codebook.13
How it works
First, an encoder turns an item’s content into a dense embedding. In residual quantization, an encoder maps the embedding to a latent vector z, which is the initial residual. At each level, the method selects the nearest codeword in that level’s codebook and subtracts it from the residual; the selected codeword’s index becomes the next part of the SID.14
The process repeats across the code levels, so later codes represent what remains after earlier codes have been selected. The SID is the ordered tuple of selected codeword indices, and the selected code vectors can be added together to form an approximation of the latent vector. A sequential recommendation model can then use a user’s past SIDs to predict the SID of a future item.12
Where it came from
Semantic IDs were introduced for generative recommendation in TIGER, described in “Recommender Systems with Generative Retrieval” by Rajput and colleagues in 2023. TIGER derived the codes from item content and trained a Transformer to predict the next item’s SID. Earlier work such as VQ-Rec also used content-derived discrete item codes, but focused on transferable recommendation rather than using the codes for generative retrieval.145
Versions and relatives
CoST is a contrastive quantization method built on an RQ-VAE structure. Instead of focusing on precisely reconstructing each item embedding, it trains the quantizer to preserve neighborhood relationships between items. SID construction can also be task-specific, using embeddings tuned for search or recommendation, or use a shared embedding space for both tasks.36
Strengths and limits
Because similar items can share codes, SIDs let a model share information across items rather than treating every item as unrelated. They can represent a large item catalogue with short sequences of discrete values, and content-derived codes can help models generalize to new or infrequent items.14
A reconstruction-focused quantizer can assign identical code sequences to similar items in dense regions, making those items harder to distinguish. The embedding space used to create SIDs also matters: embeddings tuned for search can hurt recommendation performance, and embeddings tuned for recommendation can hurt search performance.36
How recent papers use it
In “Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative Recommendation,” each item is represented by three codes drawn from codebooks of size 256. “IntentGR: Enhancing Intent for End-to-End Personalized Generative Retrieval in Search” uses SIDs as discrete code sequences that uniquely identify items in the valid SID space. “More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative Recommendation” represents an item as a sequence of semantic tokens. “Cluster-Guided Decoding with Trust-Region Constraints for Personalized Recommendation” uses hierarchical discrete codes for items.78910
Names and versions
- Also written as
- semantic identifiers (SIDs)
- Versions of it
- three-level SID codebooks (1 paper)
Papers that mention semantic ID (SID)
17 Nov 2026Used
Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative Recommendation
Each item is represented by three codes from codebooks of size 256.
17 Nov 2026Used
IntentGR: Enhancing Intent for End-to-End Personalized Generative Retrieval in Search
SIDs are discrete code sequences that uniquely identify items in the valid SID space.
17 Nov 2026Used
More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative Recommendation
A sequence of semantic tokens representing an item.
17 Nov 2026Used
Cluster-Guided Decoding with Trust-Region Constraints for Personalized Recommendation
The item's hierarchical discrete codes.
Sources
- 1Recommender Systems with Generative Retrievalarxiv.org
- 2Generative Recommendation with Semantic IDs: A Practitioner’s Handbookarxiv.org
- 3CoST: Contrastive Quantization based Semantic Tokenization for Generative Recommendationarxiv.org
- 4Better Generalization with Semantic IDs:A Case Study in Ranking for Recommendationsarxiv.org
- 5Learning Vector-Quantized Item Representation for Transferable Sequential Recommendersarxiv.org
- 6Semantic IDs for Joint Generative Search and Recommendationarxiv.org
- 7Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative RecommendationPaper explained on this site
- 8IntentGR: Enhancing Intent for End-to-End Personalized Generative Retrieval in SearchPaper explained on this site
- 9More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative RecommendationPaper explained on this site
- 10Cluster-Guided Decoding with Trust-Region Constraints for Personalized RecommendationPaper explained on this site
Every paragraph above was checked against the sources it cites before it was published.