TL;DR
Generative recommendation (GR) models excel at predicting unseen item transitions (generalization), while conventional item ID-based models are better at recalling seen transitions (memorization). This paper reveals that GR's superior "generalization" is actually driven by token-level memorization of shared semantic ID prefixes. By leveraging this insight, the authors introduce a simple, adaptive ensemble that combines both paradigms to achieve state-of-the-art sequential recommendation performance.
What Problem Does This Paper Address?
Sequential recommendation systems typically predict the next item a user will interact with based on their history. Traditional models like SASRec assign a unique ID to every item. Recently, Generative Recommendation (GR) models (like TIGER) have emerged as a powerful alternative. Instead of unique IDs, GR models tokenize items into strings of sub-item tokens (semantic IDs) and autoregressively predict the next item token-by-token.
While GR models show impressive overall performance gains, why they outperform traditional models has remained a black box. The common assumption is that GR models "generalize better." However, there has been no systematic way to verify this beyond comparing overall metrics. This paper addresses this gap by establishing a rigorous framework to isolate and analyze model performance on instances requiring pure memorization versus those requiring true generalization.
Methods
The authors tackle the problem through a three-part framework:
- Instance Categorization Framework: They categorize test data instances based on the item transitions (from historical items to the target item) observed during training.
- Memorization-related: The exact 1-hop transition was seen during training.
- Generalization-related: The transition is unseen but can be structurally inferred via patterns like Symmetry (reverse transition seen), Transitivity (connected via an intermediate item), Second-order Symmetry, or Substitutability (multi-hop shortcuts).
- Token-Level Lens (Prefix N-Gram Memorization): To understand the mechanics of GR models, the authors look at token-level behavior. They define an instance as token-memorizable if the training data contains transitions sharing the same semantic ID prefixes ($n$-grams), even if the exact items differ.
- Memorization-Aware Adaptive Ensemble: Recognizing that ID-based and GR models have complementary strengths, the authors propose a hybrid framework. At inference time, they use the Maximum Softmax Probability (MSP) of the ID-based model as a proxy indicator for memorization likelihood. If the ID model is highly confident, the system weights its prediction higher; otherwise, it leans on the GR model.
Datasets
The framework was evaluated using two representative models—TIGER (Generative) and SASRec (ID-based)—across seven widely used public sequential recommendation datasets:
- Amazon Reviews 2014: Sports and Outdoors, Beauty
- Amazon Reviews 2023: Industrial and Scientific, Musical Instruments, Office Products
- Steam
- Yelp
Key Insights and Ideas
- The Paradigm Split: Traditional ID-based models are excellent at memorizing exact item transitions but struggle with unseen ones. GR models show the exact opposite behavior: they dominate on generalization tasks but underperform on pure memorization.
- Generalization is Secretly Token Memorization: What looks like item-level generalization in GR models often reduces to token-level memorization. Because items share hierarchical semantic ID prefixes, GR models can leverage memorized token-level transitions to successfully navigate entirely unseen item-level transitions.
- The Dilution Effect: GR models struggle with pure memorization because of prefix sharing. When multiple items share the same prefix transition, the model spreads its probability mass across them, "diluting" its ability to confidently recall a specific, exact item transition.
- Codebook Size Matters: Denser codebooks (smaller token vocabularies) force more prefix sharing. This systematically boosts a model's generalization capability while degrading its memorization performance.
Key Results
- Performance Breakdown: TIGER underperformed SASRec on memorization subsets (e.g., $-43.6\%$ on Yelp, $-41.2\%$ on Sports) but significantly outperformed it on generalization subsets (e.g., $+58.8\%$ on Office, $+56.7\%$ on Beauty).
- Token Reduction Reality: On average, more than 5% of item-level generalization transitions reduce to 3-gram or lower prefix token memorization, and over 99% admit at least 1-gram prefix memorization.
- Ensemble Superiority: The proposed adaptive ensemble consistently outperformed both individual models and a naive fixed-weight ensemble across all seven datasets, effectively capturing the best of both worlds.
Limitations and Future Work
While the framework provides deep clarity, it relies on a predefined maximum hop count (set to 4 in these experiments) to evaluate multi-hop transitions, leaving a small fraction (<10%) of instances "uncategorized." Additionally, the token-level insights are closely tied to hierarchical semantic ID structures.
The authors note that future work should focus on developing advanced tokenization methods that explicitly optimize and balance the trade-offs between token-level memorization and item-level generalization.
Summary updated