Abstract
Generative recommendation models leveraging Large Language Models (LLMs) typically rely on sequential item identifiers, which suffer from high inference latency and the "local optima" trap during beam search. This paper introduces SETRec, a novel framework that represents items as order-agnostic sets of tokens. By integrating collaborative filtering (CF) data with semantic attributes and employing a simultaneous generation strategy, SETRec eliminates sequential bottlenecks. Experimental results across multiple datasets demonstrate that SETRec achieves up to a 20x speedup in inference while significantly outperforming existing state-of-the-art generative recommendation models, particularly in cold-start scenarios.
Introduction
Generative recommendation treats the task of predicting a user's next interaction as a sequence-to-sequence problem, similar to language translation. While this approach benefits from the reasoning capabilities of LLMs, the method of "tokenizing" items remains a significant challenge. Current approaches generally fall into two categories: token-sequence identifiers, which are slow and prone to errors, and single-token identifiers, which often fail to capture complex item relationships.
The Problem: Sequential Bottlenecks and Local Optima
Traditional sequence-based identifiers represent items as a fixed string of tokens (e.g., "Category > Brand > Model"). This structure forces the LLM to generate recommendations step-by-step. A critical flaw in this approach is the "local optima" issue: if a beam search algorithm discards the correct initial token because it has a slightly lower probability than an alternative, the model can never recover the correct item path.
Furthermore, the autoregressive nature of these models leads to high inference latency, as the time cost scales with the length of the identifier sequence.
Methodology: The SETRec Framework
To address these limitations, the researchers developed SETRec, which shifts from sequence-based identifiers to Order-Agnostic Set Identifiers.
Multi-Dimensional Tokenization
SETRec represents each item as a set of continuous tokens rather than a fixed string. This set includes:
- Collaborative Filtering (CF) Tokens: These capture user behavior patterns and item popularity.
- Semantic Tokens: Extracted from item metadata (titles, descriptions) using an autoencoder to capture the item's inherent meaning.
Simultaneous Generation and Order-Agnosticism
Instead of predicting tokens one by one, SETRec uses learnable "query vectors" to generate all tokens in the set simultaneously. This is supported by a Sparse Attention Mask during training, which ensures that tokens within the same item do not depend on each other's order, effectively enforcing the order-agnostic nature of the identifier.
Experimental Evaluation
The framework was evaluated on four real-world datasets: Amazon Toys, Beauty, Sports, and Steam. These datasets provided a mix of rich textual metadata and dense user interaction history. The study specifically measured performance in "warm-start" (items seen in training) and "cold-start" (new items) scenarios.
Key Results
- Efficiency: SETRec achieved a 15x to 20x speedup in inference compared to sequence-based methods like TIGER and LETTER.
- Accuracy: The model consistently outperformed baselines in Recall@N and NDCG@N metrics across all datasets.
- Cold-Start Performance: By leveraging semantic tokens, SETRec's performance on new items in the Steam dataset was nearly double that of traditional sequence-based competitors.
- Scalability: Performance improved as the underlying LLM size increased (e.g., from Qwen 1.5B to 7B), suggesting that larger models are better at interpreting the semantic tokens provided by SETRec.
Conclusion
SETRec represents a significant advancement in generative recommendation by moving beyond the constraints of sequential identifiers. By treating item IDs as order-agnostic sets and enabling simultaneous token generation, the framework resolves the "local optima" trap and drastically reduces inference time. Future work will explore the use of discrete order-agnostic tokens and the application of this framework to open-domain recommendation systems.
Summary updated