Diffusion Language Model for Recommendation
Source: arXiv:2607.21519 · Published 2026-07-23 · By Chengyi Liu, Yongqi Zhou, Junwei Pan, Zhixiang Feng, Chengguo Yin, Haijie Gu et al.
TL;DR
This paper addresses fundamental limitations in large language model (LLM)-empowered recommender systems that predominantly rely on autoregressive next-token prediction paradigms. Such autoregressive models emphasize sequential ordering of item tokens and generate recommendations left-to-right, which is misaligned with recommendation where user preferences arise from complex, combinatorial inter-item dependencies that are often order-insensitive. To overcome this, the authors propose DLMRec, a discrete diffusion language model tailored for recommendation. DLMRec leverages bidirectional, iterative denoising diffusion, enabling global context modeling and refinement of predictions at each step rather than committing irrevocably to a sequence. It introduces three key innovations: a collaborative-aware stochastic tokenizer that encodes multi-hop collaborative signals into discrete tokens suitable for diffusion; a curriculum-driven training strategy that progressively aligns denoising objectives with preference recovery including negative sampling for discriminative power; and a stability-aware voting mechanism aggregating iterative predictions to improve robustness.
Experiments on benchmark datasets such as MovieLens-1M demonstrate that DLMRec outperforms autoregressive baselines in Recall and NDCG metrics, while exhibiting more stable training dynamics. Ablations validate the importance of each design, including a stochastic tokenizer that captures semantic uncertainty at different graph propagation depths, curriculum learning, and voting for iterative refinement. Overall, the study establishes discrete diffusion language modeling as a compelling alternative to autoregressive models for recommender systems by better capturing global, combinatorial preference patterns and reducing error propagation in generation.
Key findings
- On MovieLens-1M, discrete diffusion model surpasses autoregressive counterpart in Recall@30 and NDCG@30 by ~10-15% relative improvement, showing better ranking quality (Fig. 2).
- Model stability during training is improved with diffusion framework, mitigating unstable convergence observed in autoregressive training.
- Collaborative-aware stochastic tokenizer (CAST) preserves multi-hop collaborative semantics by encoding different propagation depths into distinct discrete tokens without imposing sequential dependencies.
- Curriculum-driven training progressively aligns item- and token-level denoising tasks with recommendation preference recovery, improving final model performance.
- Incorporating negative samples in training enhances discriminative ability, enabling the model to better distinguish positive user-item interactions from plausible distractors.
- Stability-aware voting mechanism aggregates iterative denoising predictions, improving generation robustness and final recommendation consistency.
- Hop-wise temperature scheduling in stochastic quantization reflects semantic uncertainty, with lower-order hops receiving sharper assignments (low temperature) and higher-order hops softer probabilistic assignments (higher temperature).
- Inference time scales with the number of sampling steps and item token length, allowing trade-offs between efficiency and generation quality.
Threat model
n/a - The paper focuses on improving generative recommendation modeling performance rather than security or threat mitigation against adversaries.
Methodology — deep read
Threat Model & Assumptions: The paper focuses on the recommender system domain where adversarial threats are not explicitly discussed; instead, the 'adversary' is the challenge of noisy, sparse, and incomplete user interaction data. The main assumption is that user preferences have complex inter-item dependencies not well captured by sequential generation. The diffusion language model aims to better model this structure.
Data: Main benchmark datasets include MovieLens-1M and others not fully detailed in the excerpt. MovieLens-1M consists of one million user-item interactions, split into training, validation, and test sets as standard in recommender system research. Labels correspond to user-item interactions; preprocessing includes representing user histories as sequences and encoding multi-hop collaborative embeddings via LightGCN.
Architecture/Algorithm:
- The core novelty is applying a discrete diffusion language model (DLM) for recommendation, which iteratively denoises corrupted sequences of item tokens rather than predicting next tokens autoregressively.
- Collaborative-aware stochastic tokenizer (CAST): Multi-hop user/item embeddings extracted from LightGCN serve as inputs. Each hop embedding is stochastically quantized into discrete tokens by sampling from a similarity-based softmax distribution over a learnable codebook. Hop-wise temperature controls assignment sharpness.
- Curriculum-driven training: The diffusion model is trained to progressively denoise sequences with increasing masking difficulty, aligning the diffusion denoising objective with recommendation preference modeling. Negative samples are added to encourage discriminative learning.
- Stability-aware voting: At inference, iterative diffusion denoising steps produce multiple candidate tokens; a voting mechanism aggregates these predictions weighting stable tokens for the final recommendation.
Training Regime: Details mention training with a cross-entropy loss on masked tokens over varying timesteps, minibatch sizes and hyperparameters like temperature annealing in CAST, and balancing coefficients for codebook, commitment, reconstruction, and contrastive losses. The backbone LightGCN is pretrained. The LoRA technique is applied for parameter-efficient fine-tuning of the diffusion LLM. Exact epochs, batch sizes, and hardware are not detailed in the excerpt.
Evaluation Protocol: Metrics include Recall@K and NDCG@K, evaluated on held-out test sets. Baselines include an autoregressive generation model using the same LightGCN encoder and comparable parameter scale. Comparative experiments study reconstruction fidelity of tokenizer, ablate curriculum training and voting modules, and vary diffusion sampling steps. Stability and consistency of predictions across iterative refinements are analyzed. Cross-validation is not reported.
Reproducibility: Code and model implementations are publicly released at the provided GitHub repository https://github.com/ChengyiLIU-cs/DLMRec. The MovieLens-1M dataset is public. Other datasets are not explicitly listed. Pretrained LightGCN embeddings are used as backbone inputs.
Technical innovations
- A novel collaborative-aware stochastic tokenizer (CAST) that encodes multi-hop collaborative graph embeddings into discrete tokens with stochastic soft assignment, enabling diffusion modeling without imposing sequential dependencies.
- A curriculum-driven training strategy that aligns the diffusion denoising objective with recommendation preference recovery, progressively increasing masking difficulty and incorporating negative samples for discriminative learning.
- A stability-aware voting mechanism that aggregates and stabilizes predictions across iterative diffusion refinement steps, improving generation robustness and consistency compared to standard remasking-based diffusion decoding.
- Applying discrete diffusion language modeling, which breaks away from autoregressive left-to-right generation and allows bidirectional iterative refinement to better capture global, combinatorial user preference patterns.
Datasets
- MovieLens-1M — ~1 million interactions — public
Baselines vs proposed
- Autoregressive next-token model: Recall@30 ≈ 0.12 vs DLMRec: Recall@30 ≈ 0.14 (approximate from Fig. 2)
- Autoregressive next-token model: NDCG@30 ≈ 0.10 vs DLMRec: NDCG@30 ≈ 0.12 (approximate from Fig. 2)
Figures from the paper
Figures are reproduced from the source paper for academic discussion. Original copyright: the paper authors. See arXiv:2607.21519.

Fig 1: Comparison of structural properties in language and recommendation, and generative paradigms for recommendation.

Fig 2: Preliminary results on MovieLens-1M comparing autoregressive and discrete diffusion recommendation models. Both models

Fig 3 (page 3).

Fig 6: The effect of the number of sub-codebooks 𝐾and the number of tokens in each sub-codebook 𝐿

Fig 7: Effect of diffusion sampling steps 𝑆on three datasets

Fig 8: Inference time analysis of DLMRec on MovieLens-1M under different numbers of sampling steps and item token lengths. For

Fig 7 (page 22).

Fig 8 (page 22).
Limitations
- Limited discussion of adversarial robustness or evaluation against active attackers in recommendation contexts.
- Experiments primarily focus on standard collaborative filtering datasets (e.g., MovieLens-1M) without extensive real-world deployment or diverse domain validation.
- Details on training hyperparameters (batch size, epochs, computational resources) are incomplete, hindering exact reproducibility.
- The stochastic tokenizer introduces randomness which might affect inference consistency without detailed stability metrics.
- Potential latency impact of iterative diffusion sampling steps on real-time recommendation performance, though some inference time analysis is presented.
- The reliance on pretrained LightGCN embeddings may limit performance if such representations are suboptimal or unavailable.
Open questions / follow-ons
- How does the diffusion-based recommendation model perform under adversarial interactions or noisy user behavior attacks?
- Can the proposed stochastic tokenizer be extended to incorporate textual and multimodal metadata for richer collaborative semantics?
- What are the trade-offs between the number of diffusion sampling steps and recommendation latency in large-scale production environments?
- How well does the diffusion paradigm generalize to other recommendation domains beyond MovieLens, such as e-commerce or social media?
Why it matters for bot defense
While this paper is not directly about bot defense or CAPTCHA, it is highly relevant to bot-defense engineers working on behavioral modeling and bot-detection through recommender system signals. The proposed diffusion language modeling framework provides a new angle on capturing complex user-item interaction patterns beyond sequential signatures, potentially aiding detection of sophisticated bot behaviors that exploit traditional autoregressive recommendation engines. The collaborative-aware stochastic tokenizer, curriculum-driven alignment, and stability voting ideas could inspire novel approaches to robustly generate or evaluate user interaction sequences for anomaly detection. Additionally, the bidirectional iterative refinement in diffusion models counters error accumulation, which parallels challenges in modeling evolving bot strategies. Captcha systems integrated with recommendation or personalization engines could consider adopting such diffusion-inspired generative approaches to better distinguish genuine from automated behavior patterns, especially when semantic and global interaction features matter more than local sequence order.
Cite
@article{arxiv2607_21519,
title={ Diffusion Language Model for Recommendation },
author={ Chengyi Liu and Yongqi Zhou and Junwei Pan and Zhixiang Feng and Chengguo Yin and Haijie Gu and Jie Jiang and Yinghao Liu and Yujuan Ding and Qing Li and Wenqi Fan },
journal={arXiv preprint arXiv:2607.21519},
year={ 2026 },
url={https://arxiv.org/abs/2607.21519}
}