TL;DR
This paper introduces MDGR (Masked Diffusion Generative Recommendation), a framework that replaces the rigid, left-to-right autoregressive decoding typically used in generative recommenders with a flexible, order-agnostic masking-denoising process. By combining a parallel codebook, dynamic curriculum noise scheduling, and a two-stage parallel decoding strategy, MDGR captures global attribute dependencies and accommodates diverse user interests. The approach yields up to a 10.78% performance improvement offline and delivered a 1.20% revenue lift in a large-scale online production deployment.
What Problem Does This Paper Address?
Generative Recommendation (GR) is an emerging paradigm where items are represented by discrete Semantic IDs (SIDs)—sequences of tokens representing multi-dimensional attributes like brand, price, or category—rather than traditional atomic IDs. Typically, GR models use language model-like autoregressive (AR) decoding to predict these tokens one by one.
However, the authors identify three fundamental flaws in this autoregressive setup:
- Lack of Global Consistency: AR models generate tokens strictly from left to right, meaning they can only condition on the left prefix and fail to capture bidirectional dependencies among all attributes simultaneously.
- Rigid Decoding Paths: A fixed attribute generation order assumes all users prioritize attributes identically (e.g., always looking at Brand before Price), ignoring the inherent heterogeneity of user interests.
- Inference Inefficiency: Token-by-token decoding is slow, making it difficult to deploy in production environments with strict real-time latency constraints.
Methods
To overcome these limitations, the authors propose MDGR, which restructures the generative recommendation pipeline across three main pillars:
- Parallel Codebook: Instead of hierarchical residual quantization (which naturally biases generation toward a top-down order), MDGR uses Optimized Product Quantization (OPQ) to project item embeddings into independent semantic subspaces. This allows tokens to be generated in parallel and in any order.
- Diffusion-Based Training: Item generation is framed as a discrete masking-denoising process. To make training effective, the authors introduce two novel noise control strategies:
- Temporal Dimension (Global Curriculum Noise Scheduling): Early in training, the model is given easy tasks with few masked tokens. As training progresses, the masking ratio increases smoothly via a cosine schedule, presenting increasingly challenging reconstruction tasks.
- Sample Dimension (History-Aware Mask Allocation): Instead of masking tokens uniformly at random, it prioritizes masking semantic tokens that appear rarely in a user's interaction history, forcing the model to learn harder, personalized attributes.
- Two-Stage Parallel Inference: To balance speed and accuracy, decoding starts from a fully masked state and proceeds in two stages:
- Warm-up Stage: Decodes one token at a time based on the highest model confidence to lock in key semantic anchors.
- Parallel Stage: Switches to parallel prediction across multiple token groups, combined with a modified beam search to generate diverse Top-K recommendations efficiently.
Datasets
The model was evaluated on three distinct datasets:
- Amazon Electronics: A public subset of the Amazon Product Review corpus containing ~250K users, 90K items, and 2.1M interactions.
- Amazon Books: A larger public subset containing ~110K users, 180K items, and 3.1M interactions.
- Industrial Dataset: A massive, real-world dataset consisting of internal interaction logs from a major Southeast Asian e-commerce platform, featuring over 1 billion interactions from 18M users and 25M items.
Key Insights and Ideas
- Order-Agnosticism Matches Human Behavior: Recommender systems shouldn't force a single "reading order" on item attributes. By framing recommendation as a diffusion denoising process, the model can fill in attributes in whatever order makes the most sense based on the user's history.
- Curriculum Learning is Essential for Diffusion GR: Throwing a fully masked or highly noised sequence at a recommendation model early in training leads to poor convergence. Gradually ramping up the difficulty (temporal curriculum) combined with history-aware masking creates a highly effective training signal.
- The Warm-up Phase Solves Parallel Decoding Errors: Pure parallel decoding often suffers from error propagation because early predictions lack context. By using a brief "warm-up" phase to decode the single highest-confidence anchor token first, the model establishes a stable global context before accelerating via parallel decoding.
Key Results
Offline Performance
MDGR consistently outperformed ten state-of-the-art baselines (including TIGER, Cobra, and RPG). On the industrial dataset, it achieved a 10.45% improvement in Recall@5 and a 10.78% improvement in NDCG@5 over the strongest baseline.
Inference Efficiency
The two-stage parallel decoding strategy achieved a 14.24% to 36.30% QPS (Queries Per Second) uplift depending on the configuration, successfully reducing the cubic time complexity of standard autoregressive beam search.
Online Impact
In a live A/B test on a major e-commerce platform involving millions of users, MDGR delivered a 1.20% lift in advertising revenue, a 3.69% increase in Gross Merchandise Volume (GMV), and a 2.36% improvement in Click-Through Rate (CTR).
Limitations and Future Work
While the two-stage inference strategy significantly accelerates decoding compared to standard autoregressive models, it still requires multiple iterations ($R$ steps), which is computationally heavier than single-shot parallel methods.
Future work highlighted by the authors includes optimizing the noise sampling process and exploring more advanced, interest-aligned decoding strategies to further bridge the gap between user intent and token generation.
Summary updated