How do diffusion language models generate text, and why haven't they displaced autoregressive models?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
A diffusion language model generates by iterative denoising instead of left to right. The dominant text variant is masked diffusion: start from a sequence of mask tokens, have a bidirectional transformer predict every masked position at once, commit the most confident predictions, leave or re-mask the rest, and repeat for a set number of steps. Training generalises masked language modelling: sample a masking ratio between 0 and 1, mask that fraction, and train the model to recover the originals, which yields a bound on likelihood. LLaDA showed this scales to 8B and competes with similarly sized autoregressive models, and Inception's Mercury and Google's Gemini Diffusion pitched it on speed.
Full worked answer with diagram
A diffusion language model generates by iterative denoising instead of left to right. The dominant text variant is masked diffusion: start from a sequence of mask tokens, have a bidirectional transformer predict every masked position at once, commit the most confident predictions, leave or re-mask the rest, and repeat for a set number of steps. Training generalises masked language modelling: sample a masking ratio between 0 and 1, mask that fraction, and train the model to recover the originals, which yields a bound on likelihood. LLaDA showed this scales to 8B and competes with similarly sized autoregressive models, and Inception's Mercury and Google's Gemini Diffusion pitched it on speed.
Why it can be fast: each step updates many tokens in parallel, so a 500-token answer might take tens of passes rather than 500 sequential decodes. Autoregressive decode is memory-bandwidth-bound; diffusion trades it for fewer, compute-heavier passes, which suits GPUs at low batch. Bidirectional context during generation also makes infilling and editing natural.
Why it has not taken over:
- Quality per step. Tokens committed in the same step are predicted independently and can contradict each other, so cutting steps degrades coherence. The speed and quality knobs are the same knob.
- Caching. Bidirectional attention means every step recomputes over the whole sequence. Block-wise schemes recover caching by denoising one block at a time, left to right, which hands back part of the autoregressive structure.
- Output length is awkward: you choose it up front or bolt on mechanisms to extend it.
- Post-training recipes, RL for reasoning, and serving stacks are all built around autoregression, and porting them is open work.
- At high batch, autoregressive serving is already compute-efficient, which erases much of the speed advantage.
Practical read: a credible option for latency-critical, short-to-medium generation such as code completion and edits, and a design space worth tracking. Not the default for frontier reasoning.
Worth sketching. The loop is the whole idea, and the commit step is where both the speedup and the coherence risk come from.
flowchart LR
S["L mask tokens"] --> P["bidirectional model predicts<br/>every masked position"]
P --> C{"confident enough?"}
C -->|"yes"| K["commit those tokens"]
C -->|"no"| M["keep masked"]
K --> N{"steps left?"}
M --> N
N -->|"yes"| P
N -->|"no"| O["final sequence"]
What a good answer covers
- A diffusion language model generates by iterative denoising instead of left to right
- The dominant text variant is masked diffusion
- Training generalises masked language modelling
- LLaDA showed this scales to 8B and competes with similarly sized autoregressive models, and Inception's…
- Why it can be fast: each step updates many tokens in parallel, so a 500-token answer might take tens of…
Interviewer follow-ups to expect
Why do tokens committed in the same denoising step risk being mutually inconsistent?
How does block-wise diffusion recover KV caching, and what does it give up?
Which product would you pilot a diffusion LM on first, and what would you measure?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep