LLaDA-Rec: Discrete Diffusion for Parallel Semantic ID Generation in Generative Recommendation

Teng Shi, Chenglei Shen, Weijie Yu, Shen Nie, Chongxuan Li, Xiao Zhang, Ming He, Yan Han, Jun XuarXiv 2025 · OpenReview

Abstract

Generative recommendation represents each item as a semantic ID, i.e., a sequence of discrete tokens, and generates the next item through autoregressive decoding. While effective, existing autoregressive models face two intrinsic limitations: (1) unidirectional constraints, where causal attention restricts each token to attend only to its predecessors, hindering global semantic modeling; and (2) error accumulation, where the fixed left-to-right generation order causes prediction errors in early tokens to propagate to the predictions of subsequent token. To address these issues, we propose LLaDA-Rec, a discrete diffusion framework that reformulates recommendation as parallel semantic ID generation. By combining bidirectional attention with the adaptive generation order, the approach models inter-item and intra-item dependencies more effectively and alleviates error accumulation. Specifically, our approach comprises three key designs: (1) a parallel tokenization scheme that produces semantic IDs for bidirectional modeling, addressing the mismatch between residual quantization and bidirectional architectures; (2) two masking mechanisms at the user-history and next-item levels to capture both inter-item sequential dependencies and intra-item semantic relationships; and (3) an adapted beam search strategy for adaptive-order discrete diffusion decoding, resolving the incompatibility of standard beam search with diffusion-based generation. Experiments on three real-world datasets show that LLaDA-Rec consistently outperforms both ID-based and state-of-the-art generative recommenders, establishing discrete diffusion as a new paradigm for generative recommendation.

Introduction: The Bottlenecks of Autoregressive Recommendation

Generative recommendation (GenRec) has emerged as a powerful paradigm, treating recommendation as a sequence-to-sequence task where a user's history is "translated" into the semantic ID of the next item. However, the reliance on Autoregressive (AR) architectures introduces significant limitations. AR models predict tokens sequentially from left to right, meaning each token can only attend to its predecessors. This unidirectional constraint prevents the model from capturing the global semantic structure of an item's ID.

Furthermore, AR decoding suffers from error accumulation. If an early token is predicted incorrectly, this error propagates through the entire sequence, with no mechanism for correction during inference. LLaDA-Rec addresses these challenges by reframing recommendation as a parallel generation task using discrete diffusion.

Comparison of Autoregressive and Discrete Diffusion generation processes.

Methodology: The LLaDA-Rec Framework

LLaDA-Rec introduces a discrete diffusion framework designed to capture deeper item relationships and eliminate error propagation through three core innovations.

The LLaDA-Rec framework overview, showing parallel tokenization, training masking strategies, and the inference process.

1. Parallel Tokenization (Multi-Head VQ-VAE)

Standard GenRec models often use hierarchical quantization (like RQ-VAE), where tokens have a strict hierarchy of importance. This is suboptimal for bidirectional modeling. LLaDA-Rec employs a Multi-Head VQ-VAE that splits item embeddings into multiple sub-vectors, quantizing them independently. This ensures all tokens are equally important, facilitating parallel generation and bidirectional attention.

2. Discrete Diffusion Training

Using a bidirectional Transformer backbone, LLaDA-Rec employs two masking strategies during training:

  • User-History Level Masking: Randomly masks tokens in the user's past to strengthen the model's understanding of inter-item sequential dependencies.
  • Next-Item Level Masking: Progressively masks the target item's tokens to help the model learn intra-item semantic relationships.

3. Adapted Beam Search for Diffusion

Standard diffusion models typically rely on random sampling. To meet the "top-k" ranking requirements of recommendation systems, the authors adapted the beam search algorithm to work with diffusion's adaptive generation order. In this mode, the model predicts high-confidence tokens first, regardless of their position, allowing for a "re-mask and re-predict" cycle that acts as a built-in error correction mechanism.

Experimental Evaluation

The model was evaluated on three subsets of the Amazon 2023 Review dataset: Industrial Scientific, Musical Instruments, and Video Games. LLaDA-Rec was compared against traditional ID-based models (SASRec, BERT4Rec) and state-of-the-art generative models (TIGER, LC-Rec, RPG).

LLaDA-Rec consistently outperformed all baselines. For instance, on the Game dataset, it achieved a Recall@10 of 0.0942, a significant improvement over the previous state-of-the-art generative model, LC-Rec (0.0891). Ablation studies highlighted that bidirectional attention is the most critical component; replacing it with causal attention led to a sharp drop in performance, confirming the importance of global semantic modeling.

Discussion and Key Insights

  • The "Gestalt" of Semantic IDs: Unlike natural language, semantic ID tokens collectively define an item. Bidirectional attention allows tokens to attend to both "past" and "future" tokens, capturing a more holistic representation.
  • Confidence-First Generation: By filling in the highest-confidence tokens first and re-evaluating remaining positions, LLaDA-Rec effectively corrects potential early-stage errors.
  • Efficiency vs. Accuracy: While diffusion allows for controllable generation steps (potentially faster than AR), there is a trade-off. Reducing the number of steps significantly (e.g., to 1 step) leads to performance degradation.

Conclusion and Future Work

LLaDA-Rec establishes discrete diffusion as a superior paradigm for generative recommendation by overcoming the unidirectional and error-propagation constraints of autoregressive models. Future work will focus on achieving high accuracy with single-step generation, improving the quality of initial item embeddings, and scaling the framework to billion-scale industrial systems.

Summary updated

BibTeX
@misc{shi2025llada,
  author = {Teng Shi and Chenglei Shen and Weijie Yu and Shen Nie and Chongxuan Li and Xiao Zhang and Ming He and Yan Han and Jun Xu},
  title = {{LLaDA-Rec: Discrete Diffusion for Parallel Semantic ID Generation in Generative Recommendation}},
  year = {2025},
  eprint = {2511.06254},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.06254},
}
Figure