Masked Diffusion Generative Recommendation

Lingyu Mu, Hao Deng, Haibo Xing, Jinxin Hu, Yu Zhang, Xiaoyi Zeng, Jing ZhangarXiv 2026

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:

  1. 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.
  2. 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.
  3. Inference Inefficiency: Token-by-token decoding is slow, making it difficult to deploy in production environments with strict real-time latency constraints.
Figure 1: (a) The codebook quantizes the multimodal informa- tion of an item into a sequence of semantic tokens, i.e., SIDs. (b) Autoregressive GR generates SIDs in a fixed left-to-right order. (c) Parallel GR generates all tokens in a single step. (d) Our masked diffusion GR denoises multiple positions in parallel, flexibly filling tokens without a fixed order.

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.
Figure 2: The overview of MDGR: a masked diffusion generative recommendation. (1) Codebook: we adopt an OPQ-based parallel codebook to obtain SIDs for items. (2) Training: we use an encoder–decoder architecture. Based on the current training stage, we first determine the number of masks via global curriculum noise scheduling, and then derive the masked positions for each sample using history-aware mask allocation. (3) Inference: we employ a warm-up–based two-stage parallel decoding strategy, combined with beam search, to jointly generate Top-B candidate items across multiple codebooks.

Datasets

The model was evaluated on three distinct datasets:

  1. Amazon Electronics: A public subset of the Amazon Product Review corpus containing ~250K users, 90K items, and 2.1M interactions.
  2. Amazon Books: A larger public subset containing ~110K users, 180K items, and 3.1M interactions.
  3. 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.

Table 2: Performance comparison on the Amazon Electronics, Amazon Books and Industrial datasets. "Improv." shows the relative improvement (%) over the base model. Best results are in bold and second-best are underlined.

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.

Ablation study showing the impact of warm-up steps and parallel decoding steps on QPS and Recall.

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

BibTeX
@misc{mu2026masked,
  author = {Lingyu Mu and Hao Deng and Haibo Xing and Jinxin Hu and Yu Zhang and Xiaoyi Zeng and Jing Zhang},
  title = {{Masked Diffusion Generative Recommendation}},
  year = {2026},
  eprint = {2601.19501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.19501},
}
Figure