TL;DR
Most large language model (LLM)-based recommendation systems rely on an autoregressive paradigm, forcing a strict left-to-right order on user preferences that are inherently order-insensitive and combinatorial. This paper introduces DLMRec, a discrete diffusion language model tailored for recommendation that leverages bidirectional context and iterative denoising to capture complex item dependencies. By replacing next-token generation with a diffusion process, DLMRec avoids error propagation and significantly improves recommendation accuracy and training stability.
What Problem Does This Paper Address?
Generative recommendation using LLMs has become highly popular due to the models' strong semantic reasoning capabilities. However, almost all current approaches inherit the standard autoregressive (next-token prediction) paradigm from natural language processing. The authors argue that this is fundamentally suboptimal for recommendation for two main reasons:
- Objective Mismatch: Language has strict sequential and compositional rules (word order changes meaning). In contrast, a user’s interaction history is a noisy behavioral trace where the exact order of items is often incidental. What matters most are the combinatorial relationships and structural dependencies between items.
- Prefix Constraints & Error Propagation: Autoregressive models only look at past items (left-to-right context) when generating the next one. Furthermore, once they make a mistake early in the sequence, that error propagates and degrades all subsequent recommendations.
To bridge this gap, the paper explores discrete diffusion language models (DLMs) as an alternative, framing recommendation not as a text-continuation problem, but as a preference-recovery denoising problem.
Methods
The proposed framework, DLMRec, adapts discrete diffusion to recommendation through three novel components:
- Collaborative-Aware Stochastic Tokenizer (CAST): Traditional tokenizers either discard graph structure or introduce artificial sequential dependencies. CAST uses a Graph Neural Network (LightGCN) backbone to extract multi-hop collaborative embeddings. It then applies a topology-stochastic assignment mechanism with a hop-aware temperature schedule. This maps graph semantics into discrete tokens while preserving structural uncertainty (softer assignments for deeper, more abstract graph layers).
- Curriculum-Driven Training Strategy: Denoising is aligned with preference learning via a two-stage curriculum. Stage 1 (Item-level Masking) forces the model to align discrete collaborative tokens with textual item descriptions using an easy-to-hard masking schedule. Stage 2 (Token-level Masking) shifts to fine-grained preference denoising, introducing a pairwise ranking loss in the embedding space using hard negative mining to pull predictions closer to ground-truth items.
- Stability-Aware Voting Mechanism: Standard diffusion decoding repeatedly discards intermediate predictions. DLMRec tracks token stability across refinement steps. Confident, stable tokens are committed early, while unstable ones continue soft refinement. A final voting consensus aggregates evidence across the entire generation trajectory to ensure robust outputs.
Datasets
The authors evaluated DLMRec using the standard Split-by-Timepoint evaluation protocol on three public benchmarks:
- LastFM: A music artist recommendation dataset containing 1,865 users, 3,517 items, and 74,154 interactions.
- MovieLens-1M: A movie rating dataset containing 6,035 users, 3,201 items, and 574,684 interactions.
- Amazon-Beauty: A sparse product review dataset containing 18,028 users, 10,266 items, and 138,527 interactions.
Item titles and artist names were utilized as textual metadata to build hybrid recommendation prompts.
Key Insights and Ideas
- Recommendation as Denoising: The core conceptual shift is treating recommendation as recovering a latent preference structure from sparse, noisy, or incomplete observations, rather than predicting a strict sequence continuation.
- Bidirectional Context Wins: Allowing the LLM to look both "forward" and "backward" across a user's history captures global item dependencies much more effectively than prefix-constrained causal masking.
- Preserving Graph Uncertainty: Hard vector quantization creates rigid semantic boundaries. By injecting stochasticity proportional to graph depth, CAST retains the natural fuzziness and multi-faceted nature of high-order user-item relationships.
Key Results
- State-of-the-Art Performance: DLMRec consistently outperformed traditional GNNs, sequential recommenders, and strong LLM baselines (like LLaRa, CoLLM, and TokenRec) across all datasets.
- Substantial Gains: Compared to the strongest LLM baseline (LLaRa), DLMRec achieved average improvements of 6.75% in Recall and 5.19% in NDCG. Compared to a standard discrete diffusion language model baseline (LLaDaRec), it boosted performance by 11.83% and 6.37% respectively.
- Stable Training Dynamics: Preliminary tests highlighted that while autoregressive models suffer from performance degradation (overfitting/loss divergence) in later epochs, the diffusion objective maintains highly stable training curves.
- Inference Efficiency: Thanks to the stability-aware voting mechanism, DLMRec reaches its peak performance in just 2 to 3 refinement steps, making its inference latency lower than autoregressive token-generation models (like TokenRec) under identical parameter scales.
Limitations and Future Work
- Computational Overhead: Although DLMRec requires fewer steps than standard autoregressive generation, it still relies on multiple forward passes through an 8B parameter backbone during inference. This remains computationally heavy compared to traditional lightweight GNN recommenders.
- Future Directions: The authors suggest exploring codebook scaling laws, further optimizing inference efficiency via model distillation techniques, and extending the discrete diffusion paradigm to cross-domain recommendation setups.
Summary updated