Abstract
Generative recommendation (GR) models tokenize each action into a few discrete tokens (called semantic IDs) and autoregressively generate the next tokens as predictions, showing advantages such as memory efficiency, scalability, and the potential to unify retrieval and ranking. Despite these benefits, existing tokenization methods are static and non-personalized. They typically derive semantic IDs solely from item features, assuming a universal item similarity that overlooks user-specific perspectives. However, under the autoregressive paradigm, semantic IDs with the same prefixes always receive similar probabilities, so a single fixed mapping implicitly enforces a universal item similarity standard across all users. In practice, the same item may be interpreted differently depending on user intentions and preferences. To address this issue, we propose a personalized context-aware tokenizer that incorporates a user's historical interactions when generating semantic IDs. This design allows the same item to be tokenized into different semantic IDs under different user contexts, enabling GR models to capture multiple interpretive standards and produce more personalized predictions. Experiments on three public datasets demonstrate up to 11.44% improvement in NDCG@10 over non-personalized action tokenization baselines.
Introduction
In the burgeoning field of Generative Recommendation (GR), items are treated like words in a language. Instead of using a giant lookup table of unique IDs, GR models "tokenize" items into short sequences of discrete tokens called Semantic IDs. These IDs are usually derived from item features (like titles or descriptions). A model then predicts the next item by generating these tokens one by one, much like a Large Language Model (LLM) predicts the next word in a sentence.
The fundamental flaw in current GR systems is that tokenization is static. Whether a user views a high-end watch as a fashion statement, a functional tool, or a financial investment, the model assigns the same Semantic ID. Because autoregressive models assign similar probabilities to IDs that share the same prefix, a static mapping forces a "universal similarity" standard on all users. This ignores the reality that a user's intent—their personalized context—changes how they perceive an item's relationship to their past actions.
Methodology
The proposed Pctx (Personalized Context) framework moves from one-to-one item mapping to one-to-many personalized mapping through several key stages:
- Context Encoding: Pctx uses an auxiliary neural sequence model (specifically DuoRec) to compress a user's interaction history into a dense "context representation."
- Multi-Facet Clustering: Recognizing that an item can be interpreted in many ways, the model uses k-means++ clustering to group various user context representations into a small set of "centroids" or "facets" for each item.
- Personalized Tokenization: These context facets are fused with traditional item features (encoded via Sentence-T5) and passed through a Residual Quantized Variational AutoEncoder (RQ-VAE). This produces a set of possible Semantic IDs for a single item based on different user perspectives.
- Redundancy Management: To maintain generalizability, Pctx merges infrequent or duplicate IDs, ensuring the vocabulary remains manageable.
Experiments and Results
Pctx was evaluated on three categories from the Amazon Reviews dataset: Musical Instruments, Industrial & Scientific, and Video Games. These benchmarks are characterized by high sparsity and diverse user behaviors.
Performance Gains
Pctx consistently outperformed both traditional ID-based models (like SASRec) and existing generative models (like TIGER and ActionPiece). Notably, Pctx achieved a 11.44% improvement in NDCG@10 on the Scientific dataset compared to the best non-personalized baseline. This success stems from avoiding the "prefix trap," where static IDs force the model to treat items with shared prefixes as similar regardless of user intent.
Qualitative Explainability
In a qualitative analysis, researchers found that the personalized IDs generated by Pctx correspond to human-interpretable user preferences. For example, the model can distinguish between a player who interacts with StarCraft II within a "Story-driven Games" context versus a "Real-Time Strategy" context, assigning different semantic IDs that reflect these distinct facets of the same product.
Conclusion
Pctx represents a significant advancement in Generative Recommendation by treating items as "polysemous" entities whose meaning is determined by the surrounding context of user history. While the model currently uses a multi-stage training process, future work aims to explore end-to-end training of the tokenizer and recommendation model to further enhance performance and address cold-start challenges.
Summary updated