Camila Reyes 8 min readNearly every familiar language model generates text through the same fundamental ritual: predict the next token, append it, and repeat. This autoregressive design is remarkably effective, but it imposes an irreversible order on generation. The opening is written before the ending exists. A weak decision made early becomes part of the context for every decision that follows.
Diffusion language models propose a different process. Rather than extending a sequence from left to right, they begin with a corrupted or largely unknown sequence and iteratively reconstruct it. Multiple positions can change during each step. The model can establish a rough global structure, resolve confident regions, and revisit uncertainty elsewhere.
This is not merely a faster way to produce the same text. It changes the geometry of generation: which decisions may happen together, which errors can be revised, and how constraints might enter the process.
From next-token prediction to denoising
An autoregressive model represents the probability of a sequence as a chain of conditional predictions. Each token depends on all preceding tokens. During inference, that dependency forces sequential decoding even when the hardware could process many positions in parallel.
A diffusion model replaces this chain with two processes. A forward process progressively corrupts complete training examples. A learned reverse process attempts to recover the original examples from corrupted versions.
Image diffusion commonly corrupts continuous pixel values with Gaussian noise. Language is discrete: a token such as harbor cannot be made slightly more like garden by adding numerical noise in any linguistically reliable way. Text systems therefore often use discrete corruption. Tokens may be replaced by a mask, substituted with random tokens, or transformed according to a defined transition process.
Suppose the original sequence is:
The rover returned samples before sunset.
At one corruption level, the input might become:
The [MASK] returned [MASK] before sunset.
At a more severe level:
[MASK] [MASK] returned [MASK] [MASK] [MASK].
The model is trained to infer clean tokens while receiving information about the corruption level. By seeing many sequences at many levels, it learns how partial local evidence and global structure relate.
What happens during generation
Generation begins with a sequence canvas. Its positions may all be masked, or initialized according to another corruption scheme. The model predicts token distributions for many unresolved positions simultaneously. A decoding policy then decides which predictions to accept and which positions should remain uncertain.
- Initialize: Create a fixed or estimated number of token positions, usually in a highly corrupted state.
- Predict: Run the model across the complete canvas and obtain candidate distributions for unresolved positions.
- Select: Accept some predictions, often favoring positions with higher confidence.
- Revise: Preserve, remask, or alter positions according to the sampling algorithm.
- Repeat: Continue until the sequence is resolved or the inference budget is exhausted.
Consider the masked canvas:
[MASK] [MASK] [MASK] [MASK] [MASK] [MASK] [MASK]
An early pass might propose:
The [MASK] will [MASK] the contract [MASK]
A later pass could establish:
The committee will review the contract tomorrow
Another pass may revise both grammar and detail:
The committee will revise the contract tomorrow.
The exact behavior depends on the architecture and sampler. Some systems unmask tokens monotonically. Others permit already generated positions to be reconsidered. That distinction matters: parallel filling alone is not equivalent to genuine iterative revision.
The scheduler quietly controls the result
The model receives most attention, but the corruption schedule and decoding schedule determine much of the system’s behavior. A schedule defines how uncertainty changes across training or inference. Too aggressive a schedule can force premature commitments. Too cautious a schedule consumes extra model passes without proportionate improvement.
| Design choice | What it controls | Principal trade-off |
|---|---|---|
| Corruption process | What kind of reconstruction the model learns | Simple masking is tractable but may not represent every useful edit |
| Number of denoising steps | How many opportunities the sequence has to improve | More steps can improve refinement but add latency |
| Commitment rule | Which predicted tokens become fixed | Early commitment saves work but can preserve mistakes |
| Remasking policy | Whether weak tokens can be reconsidered | Revision adds flexibility but can destabilize settled regions |
| Sequence-length strategy | The size of the initial canvas | Fixed canvases simplify parallelism but complicate variable-length output |
Confidence is especially delicate. A model can be highly confident and wrong, while dependencies between positions make independent token confidence misleading. If two words only make sense together, accepting one without the other may lead decoding toward an awkward local solution. Better selection may therefore consider groups of tokens, structural constraints, or expected improvement rather than raw confidence alone.
Why parallel generation does not guarantee lower latency
The intuitive advantage is clear: an autoregressive model must generate token one, then token two, then token three. A diffusion model can predict many positions in a single pass. Yet wall-clock performance depends on more than the number of sequential steps.
Each denoising pass processes the broader sequence. If generation requires many full passes, the total computation can remain substantial. Autoregressive inference also benefits from the KV cache, which avoids recomputing attention states for earlier tokens. A diffusion system that repeatedly revisits the canvas cannot always exploit the same caching pattern.
The practical comparison involves at least four quantities:
- Sequential depth: how many dependent model calls are required.
- Work per call: how much of the sequence each pass recomputes.
- Hardware utilization: whether parallel predictions keep accelerators efficiently occupied.
- Quality at a fixed budget: whether fewer refinement steps preserve the required accuracy and coherence.
This makes diffusion particularly interesting where long outputs can be resolved in relatively few iterations, or where predictable latency matters more than streaming the first words immediately. Autoregressive models retain an experiential advantage for chat: they can begin streaming before the answer is complete. A diffusion model may perform meaningful work before it has stable text to reveal.
Constraints can become part of the canvas
Iterative generation creates a distinctive opening for constrained outputs. Known tokens can be held fixed while unknown regions are reconstructed around them. This resembles infilling, but the model may coordinate multiple gaps at once rather than completing each gap in isolation.
Imagine generating a product description that must preserve a model number, include an approved phrase, and avoid changing a legal sentence. Those regions can be anchored while surrounding positions are denoised. For code, a function signature or interface definition could remain fixed as the body is constructed. For structured data, parts of a schema could constrain which tokens are valid at particular positions.
There is an important caveat. Token-level constraints do not automatically produce semantic correctness. Locking the phrase compatible with Series K guarantees its presence, not the truth of the claim. Enforcing valid punctuation or a schema does not guarantee that fields agree. Constraint mechanisms reduce the space of possible outputs; they do not validate the world represented by those outputs.
Where the architecture remains awkward
Variable length is a foundational challenge. Left-to-right generation has a natural stopping mechanism: emit an end token. A diffusion model often starts with a canvas, so it must know, predict, or adapt the output length. Padding, length prediction, insertion and deletion operations, or end-token handling each introduce complications.
Long-form coherence is another test. Parallel access to the whole sequence suggests global planning, but visibility is not the same as reasoning. The model still needs to maintain entities, causal order, argument structure, and stylistic consistency across many positions. Repeated refinement can also oscillate: repairing one passage may weaken another.
Other limits are operational rather than conceptual:
- Training objectives and inference procedures can diverge, creating errors the model did not encounter in the same form during training.
- Bidirectional attention over a large canvas can make each refinement pass expensive.
- Existing serving infrastructure is heavily optimized for autoregressive decoding and KV-cache management.
- Evaluation is unsettled because equal step counts do not imply equal computation, latency, or user experience.
- Intermediate states may expose unstable or contradictory text if a product streams them too early.
These constraints suggest that near-term systems may be hybrid rather than doctrinaire. An autoregressive component might plan length or structure; diffusion could fill or revise blocks; a verifier could check the completed artifact.
The product opportunity is revision, not merely speed
The most revealing question is not whether diffusion can win a token-per-second contest. It is what becomes possible when generation is designed as editable state rather than an irreversible stream.
Interfaces could expose stable and unstable regions differently. A writing system might preserve approved passages while regenerating transitions across an entire document. A coding environment could resolve several related placeholders together. A planning tool could hold non-negotiable constraints fixed while repeatedly reconstructing the remaining schedule. Translation could anchor names, regulated terminology, and formatting while refining sentence structure around them.
This also creates a new control surface for users. Instead of choosing only a prompt and a temperature, they might specify which regions are immutable, which may be revised, how much inference to spend, and what structural conditions must hold before generation stops.
The open questions are consequential. Can models learn reliable confidence well enough to know what should be revised? Can adaptive schedulers spend computation only where uncertainty remains? Can variable-length generation become as natural as emitting an end token? Can serving systems reuse computation across revisions? And can products make iterative generation legible without showing users a distracting sequence of half-formed drafts?
Autoregressive generation made text feel like speech: immediate, sequential, and committed. Diffusion makes it look more like composition. The emerging opportunity lies in that difference. A model that can reconsider the whole artifact is not simply writing faster. It is offering software a new primitive: generation with revision built into the act itself.
This post was drafted with AI assistance and reviewed against our editorial policy before publication. Corrections are made at the source, on the page, with the date shown.
From our own rounds
Measured on The Curator, from real sessions people played on this site — not a third-party dataset.
- Rounds played here
- 126
- Questions per round
- 1.7
Rate this article
Discussion
Comments are moderated. Read our editorial policy.