Summary
Autoregressive sampling appends an element conditioned on the retained prefix; conventional diffusion sampling revises a complete provisional state. Both can require dependent rounds even when a model call contains parallel computation. Compare output support, streaming behavior, quality, and actual work, not a modality stereotype.
The two paradigms produce very different production tradeoffs:
| Aspect | Autoregressive | Diffusion |
|---|---|---|
| State change | Append under the ordinary sampler | Revise provisional positions |
| Outer dependence | Next prefix depends on sampled elements | Next state depends on the previous transition |
| Within-call work | Architecture-dependent matrix parallelism | Architecture-dependent whole-state work |
| Likelihood | Normalized factors under the chosen representation | Bounds/estimates depend on the model and objective |
Reference drawing
Learning objective
Append one new position or revise the whole provisional sample
Derivation
Autoregressive
The model factorizes the joint distribution by the chain rule:
Given prefix A, let , , and . Then , and ordinary sampling needs three dependent append calls. Teacher-forced scoring knows the targets, allowing parallel positions in suitable causal-transformer implementations without revealing future targets. Teacher forcing does not remove every architecture’s sequential dependencies.
Diffusion
Gaussian diffusion trains a reverse model using corrupted states. Sampling begins from a chosen noise prior and applies valid reverse transitions. A three-transition teaching sampler can revise all four positions each round, but its rounds remain dependent. The AR product above supplies no diffusion likelihood.
Require an Immediately Usable Prefix
New task: Release B before C or D exists.
Picture and change: The append state AB is already a valid prefix; a conventional whole-state intermediate remains provisional.
Check: One append releases B; one denoising transition does not generally finalize the first position.
Use when: Streaming is an explicit service requirement.
Compare Actual Call Costs
New task: Compare three-call fixtures costing two versus five milliseconds per call.
Picture and change: Multiply evaluated calls by call cost; account for overhead separately.
Check: Totals are six versus fifteen milliseconds despite equal round counts.
Use when: Quality is separately qualified; these invented costs are not a performance benchmark.
For a Gaussian schedule, and . Training can construct and fit a noise predictor by squared error. A conventional reverse parameterization is
Use with the sampler’s declared variance and endpoint policy. A finite forward schedule need not make its terminal marginal exactly standard Gaussian.
When AR vs. diffusion
| Modality | Possible model families |
|---|---|
| Text/code | AR, discrete diffusion, hybrids |
| Images/audio/video | AR, diffusion, flows, hybrids |
| Structures | Representation-dependent generative models |
Hybrid and emerging approaches
- Latent diffusion: noising in a learned representation.
- Discrete diffusion: categorical corruption/reconstruction, including LLaDA.
- Flow matching: learn a probability-path vector field.
- Consistency models: train compatible few-step mappings under their specified objectives.
Common pitfalls
- Incompatible measures. Probability masses, densities, and variational bounds are not interchangeable likelihood reports.
- Invalid skipping. Removing trained timesteps without a compatible sampler need not preserve a valid transition or quality.
- Round-count rankings. Work, batching, hardware, and quality matter separately.