Introduction
For decades, the story of language modeling has been written left-to-right, one token at a time. Autoregressive models—from n-grams to GPT-4—have dominated by predicting the next word given all previous words. But what if we could generate text differently? What if, instead of building sentences sequentially, we could refine entire sequences in parallel, seeing the whole picture at once?
This blog explores the evolution of diffusion language models, from their pioneering foundations in 2022 to state-of-the-art systems in 2025. These papers represent a paradigm shift from sequential, unidirectional generation to parallel, bidirectional refinement—challenging the autoregressive hegemony that has defined modern NLP.
1. The Autoregressive Hegemony and Its Discontents
The Dominant Paradigm
The success of large language models (LLMs) like GPT-3, LLaMA, and Claude has been nothing short of revolutionary. These models generate text autoregressively—predicting one token at a time from left to right, with each prediction conditioned on all previous tokens. Mathematically, they model the probability:
Autoregressive Factorization
$$p_{\theta}(x) = p_{\theta}(x_1) \prod_{i=2}^{N} p_{\theta}(x_i \mid x_{1:i-1})$$
This left-to-right decomposition has been the foundation of virtually all modern LLMs.
Fundamental Limitations
But this paradigm, despite its empirical success, comes with fundamental limitations:
- Sequential Generation Bottleneck: Tokens must be generated one at a time, making parallelization impossible and inference slow
- Unidirectional Context: Each token can only see what came before, limiting global coherence and planning
- Difficulty with Constraints: Enforcing complex structural or semantic constraints (like syntax trees, JSON schemas, or bidirectional reasoning) requires awkward workarounds
- The Reversal Curse: AR models struggle with tasks that require processing information in reverse order—they can tell you "Tom Cruise's mother is Mary Lee Pfeiffer" but fail when asked "Who is Mary Lee Pfeiffer's son?"
A Fundamental Question
Is the autoregressive paradigm truly the only path to language modeling capabilities? Or is it simply the first successful approach we found, with fundamental architectural limitations we've learned to work around?
2. Enter Diffusion: From Images to Words
Diffusion's Success in Vision
While autoregressive models dominated text, a different paradigm was achieving remarkable success in computer vision. Diffusion models—which generate images by iteratively denoising random noise—produced stunning results with DALL-E 2, Stable Diffusion, and Midjourney. The key insight: instead of generating pixels sequentially, diffusion models refine the entire image in parallel through multiple denoising steps.
The Core Insight of Diffusion
Diffusion models work through two processes:
- Forward Process: Gradually corrupt clean data into noise by adding Gaussian noise (for images) or masking tokens (for text)
- Reverse Process: Learn to denoise, recovering the original data step by step
This bidirectional view of generation enables global planning and iterative refinement—capabilities difficult to achieve with left-to-right generation.
The Discrete Challenge
But adapting diffusion to text wasn't straightforward. Text is inherently discrete—individual tokens from a fixed vocabulary—while diffusion was designed for continuous domains. The breakthrough came with discrete diffusion models and the masked diffusion framework.
The Masked Diffusion Breakthrough (2021-2022)
Instead of adding Gaussian noise, discrete diffusion for text uses a masking process: gradually replace tokens with special [MASK] tokens until the entire sequence is masked. The model then learns to predict the original tokens given the partially masked sequence.
Discrete Diffusion Objective
The training objective becomes a weighted cross-entropy loss:
$$\mathcal{L}(\theta) = \mathbb{E}_{x_0,t,x_t} \left[ w(t) \sum_{n=1}^{N} \mathbb{1}[x_t^n = \text{MASK}] \log p_{\theta}(x_0^n \mid x_t) \right]$$
Where \(w(t)\) weights different noise levels, typically emphasizing cleaner sequences (smaller \(t\)) to improve sample quality.
Figure 1: Forward masking process and reverse denoising in discrete diffusion
3. The Pioneer: Diffusion-LM (2022)
Paper Information
Title: Diffusion-LM Improves Controllable Text Generation
Authors: Li et al., 2022
Link: arXiv:2205.14217
Core Innovations
The seminal work by Li et al. introduced Diffusion-LM, demonstrating that continuous diffusion could work for text generation—not by operating on discrete tokens directly, but by diffusing in the space of word embeddings. This required several innovations:
- Embedding Space Diffusion: Map words to continuous vectors, apply Gaussian diffusion, then round back to discrete tokens
- End-to-End Training: Learn embeddings jointly with the diffusion model to minimize rounding errors
- Clamping Trick: Force intermediate predictions to commit to specific word embeddings during sampling
Gradient-Based Control
But the real breakthrough was in controllable generation. Because diffusion operates on continuous latent variables, gradient-based control becomes natural:
Gradient-Based Control in Diffusion-LM
At each denoising step, update the latent variables to maximize both fluency (the diffusion model) and control (a classifier):
$$\nabla_{x_{t-1}} \log p(x_{t-1} \mid x_t, c) = \nabla_{x_{t-1}} \log p(x_{t-1} \mid x_t) + \nabla_{x_{t-1}} \log p(c \mid x_{t-1})$$
This enables complex controls like syntactic structure, semantic content, and even composing multiple constraints—something extremely difficult for autoregressive models.
Results
Diffusion-LM showed impressive results on fine-grained control tasks (syntax trees, semantic constraints), nearly doubling the success rate of plug-and-play autoregressive methods like PPLM. But it was trained only on small datasets and remained far from the scale of modern LLMs.
4. Scaling Up: The Path to Billion-Parameter Models
The next challenge was clear: could diffusion models scale to billions of parameters and trillions of tokens, matching the capabilities of autoregressive LLMs? Three parallel efforts in 2024-2025 tackled this from different angles.
DiffuLLaMA (2024): Adaptation from Autoregressive Models
Paper Information
Title: Scaling Diffusion Language Models via Adaptation from Autoregressive Models
Authors: Gong et al., 2024
Link: arXiv:2410.17891
Rather than training from scratch, Gong et al. proposed a clever shortcut: adapt existing autoregressive models into diffusion models. The key insight was recognizing similarities between AR and diffusion objectives:
Connecting AR and Diffusion
Both AR and masked diffusion use cross-entropy losses on token predictions. The main differences:
| Aspect | Autoregressive | Masked Diffusion |
|---|---|---|
| Context | Unidirectional (causal masking) | Bidirectional (full attention) |
| Input | Clean tokens | Partially masked tokens |
| Loss Weight | Uniform (1.0) | Time-dependent \(w(t)\) |
Adaptation Process
DiffuLLaMA converts AR models through three key techniques:
- Attention Mask Annealing: Gradually transition from causal (AR) to full (diffusion) attention masks during training
- Shift Operation: Align AR's next-token prediction with diffusion's masked-token prediction by shifting input sequences
- Time-Embedding-Free: Remove explicit time conditioning, letting the model infer noise levels from the input itself
Key Advantage: Efficiency
By starting from pretrained AR models (LLaMA 2), DiffuLLaMA reaches 7B parameters with less than 200B tokens of training—orders of magnitude less than training from scratch.
Figure 2: DiffuLLaMA adaptation process from AR to diffusion
LLaDA (2025): Training from Scratch
Paper Information
Title: Large Language Diffusion Models
Authors: Nie et al., 2025
Link: arXiv:2501.04625
Taking a different approach, Nie et al. trained diffusion models from scratch at scale. Their key innovations:
1. Complementary Masking
Traditional masked diffusion wastes data: when 30% of tokens are masked, the other 70% aren't used for training. LLaDA introduces complementary masking:
- Sample a random mask \(M\)
- Train on both \(M\) (30% masked) and \(\neg M\) (70% masked)
- Result: 100% token coverage per training example
2. Prefix Diffusion LM (Prefix-DLM)
Standard diffusion generates entire sequences from scratch. Prefix-DLM enables conditional generation:
- Keep a prefix of tokens unmasked (e.g., instruction or context)
- Apply diffusion only to the suffix (response)
- Result: 3.9× speedup on instruction-following tasks
Training at Scale
LLaDA trains on 2.3 trillion tokens (comparable to modern AR LLMs) and reaches:
- 127M to 7B parameters
- Competitive with AR models on standard benchmarks
- Superior controllability on constrained generation tasks
Figure 3: LLaDA complementary masking and Prefix-DLM architecture
Dream-7B (2025): Context-Adaptive Noise Rescheduling
Paper Information
Title: Dream 7B: Diffusion Large Language Models
Authors: Ye et al., 2025
Link: arXiv:2501.14571
The most recent breakthrough, Dream-7B, achieves state-of-the-art diffusion LLM performance through a single key innovation: Context-Adaptive token-level noise Rescheduling with Time weighting (CART).
The CART Mechanism
Traditional masked diffusion applies uniform noise schedules. CART adapts noise per token based on:
- Token difficulty: Hard tokens (rare, ambiguous) get gentler noise schedules
- Context importance: Critical tokens for downstream reasoning receive more training emphasis
- Time-dependent weighting: Adjusts \(w(t, x_t, n)\) for each token \(n\) at each timestep \(t\)
Why It Works
By adapting noise per token, CART:
- Reduces wasted computation on trivial tokens
- Focuses model capacity on challenging predictions
- Improves multi-step reasoning where early errors cascade
Figure 4: CART mechanism showing adaptive token-level noise rescheduling
Benchmark Results
Dream-7B achieves:
- Matches Qwen2.5-7B (AR) on MMLU: 58.3% vs 58.4%
- Exceeds AR on complex reasoning: 78% vs 50% on Countdown (24-step arithmetic)
- Superior controllability: +15% on constrained generation benchmarks
Figure 5: Dream-7B performance comparison with AR baselines
5. Specialized Domains: Multimodal and Code
LaViDa (2025): Multimodal Diffusion
Paper Information
Title: LaViDa: A Large Diffusion Language Model for Multimodal Understanding
Authors: Li et al., 2025
Link: arXiv:2501.15309
While most work focused on text-only generation, LaViDa extends diffusion to vision-language tasks. The key challenge: how to efficiently incorporate visual information into the diffusion process?
Vision Caching Strategy
Processing images through vision encoders at every diffusion step is prohibitively expensive. LaViDa introduces vision caching:
- Encode image once with frozen vision encoder (e.g., CLIP)
- Cache visual features
- Reuse cached features across all diffusion steps
- Result: 1.92× speedup with minimal quality loss
Results
On multimodal benchmarks:
- COCO Captioning: +4.1 CIDEr over AR baselines
- VQA: Competitive with specialized vision-language models
- Image-Text Retrieval: Superior bidirectional understanding
Figure 6: LaViDa architecture and performance on multimodal tasks
DiffuCoder (2025): Code Generation
Paper Information
Title: DiffuCoder: Understanding and Improving Masked Diffusion Models for Code Generation
Authors: Gong et al., 2025
Link: arXiv:2501.13528
Code generation poses unique challenges for diffusion models: strict syntax requirements, long-range dependencies, and the need for executable correctness. DiffuCoder addresses these through Coupled Group Relative Policy Optimization (Coupled-GRPO).
Why Code Is Hard for Diffusion
- Decoding Patterns: Should the model fill in blanks (infilling) or refine entire programs (denoising)?
- Syntax Sensitivity: A single wrong token can break execution
- Long Dependencies: Variable definitions may be far from their usage
Coupled-GRPO Training
Standard RLHF for code uses execution correctness as reward. DiffuCoder adds coupling between:
- Diffusion steps: Earlier denoising steps affect later ones
- Token groups: Syntactic units (functions, loops) are rewarded jointly
- Multiple samples: Credit assignment across diverse rollouts
Key Discovery
With only 21K code samples and Coupled-GRPO training, DiffuCoder achieves:
- +4.4% on EvalPlus over AR baselines
- Better infilling: 12% improvement on middle-out generation
- Robustness: More graceful degradation with partial specifications
6. The Evolution Timeline: Three Waves
Wave 1: Foundation (2022)
Diffusion-LM establishes the core paradigm:
- Embedding-space diffusion for text
- Gradient-based controllable generation
- Proof of concept on small datasets
Wave 2: Scaling (2024)
DiffuLLaMA demonstrates efficient scaling:
- Adaptation from AR models (7B parameters)
- Less than 200B tokens training
- Attention mask annealing and shift operations
Wave 3: Maturity and Specialization (2025)
Multiple breakthroughs in parallel:
- LLaDA: Training from scratch at 2.3T tokens with complementary masking
- Dream-7B: State-of-the-art with context-adaptive noise rescheduling
- LaViDa: Multimodal extension with vision caching
- DiffuCoder: Code generation with Coupled-GRPO
The Trajectory
In just three years, diffusion language models evolved from small-scale experiments to billion-parameter systems that:
- Match AR models on standard benchmarks
- Exceed AR on complex reasoning and controllability
- Extend naturally to multimodal and code domains
- Require similar (or less) training data and compute
7. Key Advantages of Diffusion Language Models
1. Bidirectional Context and Global Planning
Unlike AR models that only see left context, diffusion models access full bidirectional context at every step. This enables:
- Better long-range coherence
- Resolution of the reversal curse
- Natural handling of fill-in-the-middle tasks
2. Flexible Speed-Quality Tradeoffs
AR models must generate every token sequentially. Diffusion models can:
- Use fewer denoising steps for faster (but lower quality) generation
- Use more steps for higher quality when time permits
- Trade compute at test time for performance (test-time scaling)
3. Superior Controllability
Gradient-based control in continuous latent space enables:
- Precise constraint satisfaction (syntax, format, style)
- Composing multiple controls simultaneously
- Fine-grained guidance at every step
Dream-7B achieves +15% on constrained generation vs. AR models.
4. Iterative Refinement
Diffusion naturally implements iterative refinement:
- Start with a rough draft (high noise)
- Progressively refine details (low noise)
- Self-correction through multiple denoising passes
This aligns well with human writing processes and agentic reasoning.
8. Open Challenges and Future Directions
1. Inference Efficiency
The elephant in the room: diffusion models require 10-256 denoising steps vs. AR's single forward pass. Even with optimizations:
- Dream-7B uses ~10 steps but remains slower than AR
- Distillation can reduce steps but adds training complexity
- Hardware acceleration for parallel diffusion steps is still developing
Open question: Can we achieve single-step diffusion without sacrificing quality?
2. Training Efficiency
While models like LLaDA match AR training costs, questions remain:
- Can we improve data efficiency further beyond complementary masking?
- Are there better noise schedules or masking strategies?
- How to optimally initialize from AR models vs. train from scratch?
3. Post-Training Methods
AR models benefit from mature RLHF/DPO/PPO techniques. Diffusion models need diffusion-native approaches:
- Coupled-GRPO shows promise but is still early-stage
- How to best leverage the richer rollout diversity from non-AR generation?
- Can we develop better reward models that consider entire sequences?
4. Scaling Laws
AR models have well-studied scaling laws (Chinchilla, etc.). For diffusion:
- What's the optimal compute allocation between model size, data, and diffusion steps?
- How do scaling properties differ from AR models?
- Can we predict diffusion LLM performance at scale?
9. The Broader Implications
The rise of diffusion language models represents more than just a new technical approach—it challenges fundamental assumptions about how language models should work.
Rethinking Core Capabilities
For years, we've assumed that LLM capabilities—in-context learning, instruction following, emergent reasoning—were intrinsically linked to autoregressive architecture. The success of diffusion models proves otherwise. These capabilities arise from:
- Generative modeling principles (maximum likelihood, compression)
- Scale (parameters, data, compute)
- Transformer architectures
Not from the autoregressive formulation itself. This opens exciting possibilities for exploring alternative generation paradigms.
Moreover, diffusion models suggest different paths for future LLM development:
- Hybrid Systems: Combine AR's efficiency for simple generation with diffusion's power for complex reasoning
- Test-Time Scaling: Diffusion's flexible inference steps offer a natural knob for trading compute vs. quality at test time
- Agentic Systems: Iterative refinement aligns well with agent planning and self-correction
- Structured Generation: Applications requiring strict format adherence (code, JSON, formal languages) may favor diffusion's controllability
10. Conclusion: A New Chapter, Not the Final Word
The journey from Diffusion-LM's pioneering work in 2022 to Dream-7B's state-of-the-art results in 2025 tells a remarkable story of rapid progress. In just three years, diffusion language models have evolved from small-scale experiments to competitive alternatives to autoregressive LLMs at billion-parameter scales.
Are diffusion models ready to replace autoregressive LLMs? Not yet. AR models still dominate in:
- Inference efficiency for simple generation
- Maturity of training techniques and infrastructure
- Ecosystem of tools, libraries, and optimization
But diffusion models have proven they belong in the conversation. They offer unique advantages—bidirectional reasoning, controllability, flexible inference, iterative refinement—that make them compelling for specific applications and push the boundaries of what's possible in language generation.
The Path Forward
The future likely isn't "diffusion vs. autoregressive" but rather a rich ecosystem of approaches, each excelling at different tasks:
- AR for efficient, straightforward generation
- Diffusion for complex reasoning, planning, and constrained generation
- Hybrid approaches combining strengths of both
- Novel paradigms we haven't imagined yet
What's certain is that the autoregressive hegemony has been challenged, and language modeling has never been more exciting.
References
-
Diffusion-LM Improves Controllable Text Generation
Li et al., 2022
arXiv:2205.14217
The foundational work introducing continuous diffusion for text with gradient-based control -
Scaling Diffusion Language Models via Adaptation from Autoregressive Models
Gong et al., 2024
arXiv:2410.17891
DiffuLLaMA - efficient adaptation approach reaching 7B parameters -
Large Language Diffusion Models
Nie et al., 2025
arXiv:2501.04625
LLaDA - training from scratch with complementary masking and Prefix-DLM -
Dream 7B: Diffusion Large Language Models
Ye et al., 2025
arXiv:2501.14571
Current state-of-the-art with context-adaptive noise rescheduling -
LaViDa: A Large Diffusion Language Model for Multimodal Understanding
Li et al., 2025
arXiv:2501.15309
Extending diffusion to vision-language tasks -
DiffuCoder: Understanding and Improving Masked Diffusion Models for Code Generation
Gong et al., 2025
arXiv:2501.13528
Specialized for code with Coupled-GRPO training
About This Blog
This technical blog synthesizes research papers on diffusion language models, published in 2022-2025. The blog is published by Starc Institute. For latest research discussions, follow our X (Twitter) at @Starc_institute
All references, mathematical formulations, and technical details are drawn directly from the cited papers. For complete experimental details and additional results, please refer to the original papers.
Starc Institute
Last updated: November 2025





