Abstract
Generative Recommendation (GR) has emerged as a promising paradigm, representing items as tuples of discrete semantic tokens (Semantic IDs) and framing recommendation as a sequence generation task. However, existing GR models primarily rely on autoregressive (AR) modeling, which suffers from sequential bottlenecks, local context bias, and data inefficiency in sparse environments. We present MaskGR, a framework that replaces AR modeling with discrete masked diffusion. By treating recommendation as a denoising task, MaskGR enables parallelized inference, captures global item relationships more effectively, and demonstrates superior robustness to data sparsity. Our evaluations across multiple benchmarks show that MaskGR achieves a significant improvement in ranking accuracy, including a 21.9% average increase in NDCG@5 over state-of-the-art baselines.
Introduction
Traditional recommendation systems often rely on discriminative models that calculate similarity between user and item embeddings. Generative Recommendation (GR) shifts this focus by assigning each item a unique "Semantic ID" (SID)—a sequence of discrete tokens derived from item metadata. Models like TIGER then learn to generate the next item's SID given a user's interaction history.
While effective, the standard Autoregressive (AR) approach in GR has limitations. AR models generate tokens sequentially, which is computationally expensive during inference. Furthermore, they are prone to "local bias," where the model focuses on the immediate preceding token rather than the broader context of the item or the user's history. Finally, in the common scenario of sparse user-item interactions, AR models struggle to generalize from limited training sequences.
The MaskGR Framework
MaskGR addresses these challenges by employing a masked diffusion process over discrete semantic IDs. Instead of predicting the next token in a sequence, the model learns to reconstruct original SIDs from a corrupted input where tokens are randomly masked.
Training: Discrete Masked Diffusion
During training, a sequence of SIDs representing a user's history and the target item is partially masked with a probability $t \sim \text{Unif}[0, 1]$. The model, an encoder-only Transformer, is tasked with predicting the original tokens at the masked positions. This denoising objective forces the model to learn bidirectional dependencies across the entire sequence, capturing global relationships that AR models might miss.
Inference: Parallelized Denoising
Inference in MaskGR is an iterative process. Starting from a fully masked target SID, the model predicts the values of all masked tokens in parallel. To ensure high-quality generation, MaskGR employs a Greedy Uncertainty Strategy: in each step, it only "unmasks" (fixes) the tokens it is most confident about. Confidence is measured by the probability gap between the top two predicted tokens. This allows the model to refine its predictions over multiple steps, typically achieving optimal performance in far fewer steps than the total number of tokens.
Key Advantages
Data Efficiency: The "Super Data Learner"
One of MaskGR's most significant strengths is its resilience to data sparsity. In AR modeling, a sequence of length $L$ provides $L$ training samples. In contrast, the random masking scheme in MaskGR provides an exponential number of possible corrupted versions for every training sequence. This "combinatorial augmentation" allows the model to extract significantly more signal from sparse datasets, making it a "super data learner" compared to its AR counterparts.
Global Context and Inference Speed
By avoiding the left-to-right constraint, MaskGR captures "global" item relationships. This is particularly evident in coarse-grained retrieval tasks (e.g., Recall@40), where MaskGR significantly outperforms AR models. Additionally, the ability to unmask multiple tokens per forward pass enables a flexible trade-off between inference speed and accuracy. MaskGR can achieve competitive performance with 50% fewer function evaluations (NFEs) than sequential models.
Experimental Results
MaskGR was evaluated on four public benchmarks: Amazon Beauty, Sports, Toys, and MovieLens-1M. Item SIDs were generated using residual k-means clustering on Flan-T5-XXL text embeddings.
Experimental results demonstrate that MaskGR consistently outperforms the state-of-the-art TIGER model. On average, MaskGR achieved a 21.9% increase in NDCG@5. Notably, the performance gap widened at higher $K$ values, confirming the model's superior ability to rank the long tail of relevant items. In robustness tests, when 75% of training data was removed, MaskGR's performance remained significantly more stable than TIGER's.
Conclusion and Future Work
MaskGR represents a significant step forward for generative recommendation, proving that masked diffusion is a viable and often superior alternative to autoregressive modeling. While the current iteration may occasionally generate "invalid" SIDs (hallucinations), future work will explore constrained beam search and iterative error correction to ensure that all generated tokens map to valid items in the catalog.
Summary updated