TL;DR
The authors present iLLaDA, an 8B parameter masked diffusion language model trained from scratch using fully bidirectional attention. By scaling pre-training to 12T tokens and optimizing the training and evaluation recipes, iLLaDA bridges the performance gap with state-of-the-art autoregressive models, demonstrating that diffusion is a highly competitive paradigm for large language models.
What Problem Does This Paper Address?
Modern Large Language Models (LLMs) are overwhelmingly dominated by the autoregressive (AR) paradigm, which predicts text sequentially from left to right. While highly successful, AR models suffer from inherent limitations, such as the "reversal curse" (difficulty recalling information in reverse order) and a lack of bidirectional context during generation.
Diffusion language models offer a promising non-autoregressive alternative by treating text generation as a iterative denoising process. However, early large-scale attempts like LLaDA lagged significantly behind top-tier AR models like Qwen2.5. This paper addresses the scaling and architectural bottlenecks of diffusion LLMs to see if they can truly compete with the AR status quo.
Methods
iLLaDA builds upon the masked diffusion formulation but introduces several critical updates across architecture, post-training, and inference:
- Architectural Modernization: Unlike its predecessor LLaDA, which used standard multi-head attention, iLLaDA adopts Grouped-Query Attention (GQA). This significantly reduces the memory footprint of KV-cache-like states during diffusion sampling. Additionally, it ties the input and output embeddings to save parameters.
- Variable-Length Training: The model supports a maximum sequence length of 8192 tokens and utilizes a FlashAttention-based variable-length attention kernel to pack sequences efficiently without padding.
- Unified SFT Masking: During Supervised Fine-Tuning (SFT), instead of only masking the response region, iLLaDA applies random masks to the entire continuous prompt-response sequence. This naturally supports variable-length block generation during inference.
- Confidence-Based Scoring: For multiple-choice tasks, rather than relying on standard log-likelihood upper bounds, the authors introduce a deterministic rule that iteratively reveals tokens based on the model's highest confidence predictions.
The architectural differences between iLLaDA and the original LLaDA are outlined below:
Datasets
- Pre-training: A massive corpus comprising 12 Trillion tokens (a substantial scale-up from LLaDA's 2.3T tokens).
- Supervised Fine-Tuning (SFT): An instruction corpus containing approximately 25 Billion tokens, trained over 12 epochs.
- Evaluation Benchmarks: The model was evaluated on standard benchmarks including MMLU, MMLU-Pro, MMLU-Redux, BBH, ARC-Challenge, HellaSwag, PIQA, GSM8K, MATH, HumanEval, and MBPP.
Key Insights and Ideas
- The SFT Data-Reuse Effect: A major finding is that diffusion models benefit extraordinarily from training over multiple SFT epochs. While AR models typically overfit quickly when exposed to repeated data, iLLaDA's performance on reasoning-heavy tasks steadily improved all the way up to 12 epochs. This suggests diffusion models are excellent "data learners" in data-constrained regimes.
- Bidirectional Superiority in Base Models: When trained on sufficient data, a bidirectional diffusion base model can match or exceed a similarly sized AR model. Because iLLaDA can look both forward and backward during its generation steps, it achieves superior performance on tasks requiring complex contextual understanding.
Key Results
- Base Model Comparisons: iLLaDA-Base achieves an average score of 63.9 across benchmarks, outperforming LLaDA-Base (51.1) and Dream 7B (61.4). Remarkably, it slightly outperforms the autoregressive Qwen2.5 7B Base (63.3), securing the top spots on MMLU (74.8), BBH (71.3), ARC-C (60.8), and GSM8K (81.9).
- Instruct Model Comparisons: iLLaDA-Instruct shows massive jumps over LLaDA, improving by 14.5 points on MATH and 16.5 points on HumanEval. While it beats other diffusion models, it still lags behind Qwen2.5 7B Instruct overall (67.1 vs 77.1 average score), which the authors attribute to Qwen's extensive reinforcement learning alignment.
The full instruction-tuned results are summarized in the table below:
Limitations and Future Work
The primary limitation of iLLaDA-Instruct is the lack of Reinforcement Learning (RL) alignment (e.g., GRPO or DPO tailored for diffusion models), which prevents it from fully matching AR instruct models. Additionally, due to compute constraints, the study was limited to the 8B parameter scale.
The authors also noted that iLLaDA-Instruct occasionally falls into repetitive reasoning loops on highly complex problems. They mitigated this by dynamically increasing the probability of emitting a </think> token as generation length grows, but a more fundamental architectural or algorithmic fix remains open for future work.
Summary updated