Discrete Diffusion vs. Autoregression: Comparing Two LLM Generation Paradigms

    A newly released open-weight language model uses discrete diffusion instead of token-by-token autoregression, marking a shift in how large language models generate text. This article compares the two generation paradigms, explains how MTP and speculative decoding accelerate autoregressive decoding, how discrete diffusion reconstructs generation through whole-block parallel denoising, and how both relate to quantization-aware training (QAT). It also covers the benefits, costs, engineering trade-offs, and practical guidance for choosing between them based on quality, latency, and serving constraints.

    A research team recently released the first open-weight language model built on discrete diffusion. It evolved from its predecessor’s sparse mixture-of-experts (MoE) architecture with roughly 26 billion total parameters, of which only about 3.8–4 billion are activated per token. The real shift in this generation isn’t the parameter count — it’s how the model generates text.

    Over the past two years, the main thread of LLM inference acceleration has been “keep token-by-token autoregression, and accelerate around it”:

    • Mixture-of-experts (MoE) reduces the compute per step;
    • KV cache and paged memory management cut redundant computation and memory waste;
    • Grouped-query attention and sliding-window attention ease the memory-access pressure of long contexts;
    • Low-bit quantization and quantization-aware training (QAT) compress weights;
    • Multi-token prediction (MTP) and speculative decoding produce several tokens per forward pass.

    This generation took a different route: instead of generating one token at a time, it repeatedly denoises and refines a fixed-length “canvas” (referred to here as a token canvas, 256 tokens per block), then advances block by block autoregressively.

    Many people ask: how does this relate to the MTP and QAT we already know? To answer that, we need to separate two layers that are easy to conflate — the “generation method” and the “acceleration technique.”

    1. Why the Generation Method Itself Became an Optimization Target

    Standard autoregressive decoding can be summarized as “write one character per step”:

    • At step t, using the t−1 tokens already generated as input, the model outputs a probability distribution over the next token;
    • A token is sampled for step t, appended back to the context, and we move to step t+1.

    This strict sequential dependency has two consequences.

    First, generating a response of length L requires at least L sequential forward passes, each waiting for the previous one to finish. Even if the compute for a single token is small, the round-trip latency accumulates token by token and shows up directly in streaming output speed.

    Second, the decoding stage is typically memory-bandwidth bound. Every token generated requires moving all weights from memory into the compute units, leaving the compute largely idle. This means increasing the number of tokens produced per forward pass is often more effective than shrinking the compute of a single pass.

    This has led the industry to two lines of thinking:

    • Approach 1: Don’t change the generation method; reduce the average number of forward passes per token. Typical examples are MTP-driven speculative decoding, and prompt caching, which exploits the fact that fixed text tends to follow high-confidence markers like a period.
    • Approach 2: Change the generation method so a single forward pass covers more positions. The typical example is the parallel denoising of discrete diffusion language models.

    It’s worth emphasizing that the diffusion discussed here is a text generation paradigm. It shares the same origin as the continuous diffusion models in the image domain — neural networks that repeatedly denoise to reconstruct pixels — but it operates on discrete tokens. It is neither “using a diffusion model to draw pictures” nor related to quantization or model compression.

    2. Route 1: Autoregression + MTP / Speculative Decoding, Adding a Draft Accelerator to “Word-by-Word Writing”

    2.1 Basic Principle

    The key to speculative decoding is distinguishing “draft” from “verify”:

    1. Draft: a lightweight source proposes several candidate tokens at once. This source can be a smaller model from the same family, an n-gram retrieval, or a prediction head attached to the main model itself that predicts more than one token ahead (i.e., MTP).
    2. Verify: feed the “original context + draft” into the main model as a whole, and a single forward pass produces the true prediction distribution at each draft position in parallel.
    3. Decide: compare from left to right, accepting the consecutive matching portion directly.
    4. Correct: the first mismatch is replaced by the main model’s true prediction, all subsequent draft tokens are discarded, and the next round begins.

    The following illustrative code uses greedy decoding as an example:

    1. def speculative_generate(target, draft, prefix, draft_len=5, max_new=256):
    2. ids = list(prefix)
    3. while len(ids) - len(prefix) < max_new:
    4. # 1) The draft source proposes draft_len candidate tokens at once
    5. guesses = draft.sample(ids, draft_len)
    6. # 2) The target model runs one forward pass, verifying the whole draft in parallel
    7. logits = target.forward(ids + guesses) # shape: [seq, vocab]
    8. preds = logits.argmax(dim=-1)
    9. preds = preds[len(ids) - 1: len(ids) - 1 + draft_len]
    10. # 3) Compare position by position: accept the consecutive hits directly
    11. n = 0
    12. while n < draft_len and preds[n] == guesses[n]:
    13. n += 1
    14. # 4) Accept the hits; fall back to the main model's prediction at the first error
    15. ids.extend(guesses[:n])
    16. if n < draft_len:
    17. ids.append(preds[n])
    18. elif len(ids) - len(prefix) < max_new:
    19. # When the whole draft is hit, the main model's "extra prediction" yields one more token for free
    20. ids.append(preds[draft_len])
    21. return ids

    Overall, this mechanism can be understood as:

    A lightweight “guessing” model produces the draft, and the main model grades the whole draft in one pass. Correct answers are adopted as-is; the first wrong answer is replaced with the main model’s standard answer, the rest of the draft is discarded, and the next round begins.

    Under greedy decoding, the accepted tokens are exactly identical to what the main model would decode independently. Under random sampling, a rejection-sampling-style correction is needed: the rejection probability equals the positive part of the difference between the two distributions, so the final output follows the main model’s own distribution.

    2.2 Where the Speedup Comes From and Where the Ceiling Is

    • Comes from fewer sequential steps: a round advances at most draft_len + 1 tokens. The context-related KV cache is still maintained in the standard way, so the integration cost is relatively manageable.
    • The ceiling is set by the draft hit rate: the higher the hit rate, the farther it advances per round on average. The more the draft source is aligned with the target model, and the better it’s trained or aligned, the higher the hit rate usually is. A rough approximation is:

      Average accepted tokens per round ≈ (1 − p^(k+1)) / (1 − p), where p is the hit rate of a single draft token and k is the number of draft tokens per round

      If p is 0.8 and k is 4, it advances about 2.95 tokens per round on average. At this point the marginal benefit of increasing k further is small, while it adds verification overhead.

    • The bottleneck may shift: in compute-constrained or high-concurrency serving, the extra compute of verifying the whole draft dilutes the gains, and in the extreme it can even be slower than standard decoding.

    2.3 Suitable Scenarios and Limitations

    • Advantages:
      • The main model confirms output token by token as usual; the generation distribution is unchanged and output quality is essentially lossless;
      • Compatible with existing inference stacks;
      • Most natural for interaction modes that rely on strict token-by-token order, such as replay and streaming output.
    • Limitations:
      • Still bound by the “token-by-token confirmation” logic; it must verify one place at a time, so there’s a ceiling on speedup;
      • Requires maintaining an extra draft source, adding memory usage or model-loading cost.

    3. Route 2: Discrete Diffusion, Reconstructing the Generation Process with “Whole-Block Denoising”

    3.1 Basic Principle

    Discrete diffusion language models redefine generation as a “denoising” process:

    1. Initialize: a canvas of length N is first filled with special tokens such as masks, meaning “not yet determined.”
    2. Predict: feed the prefix context and the whole canvas into the model at once, getting the token distribution for every position in the canvas in parallel.
    3. Denoise: fix some positions to the predicted tokens by a certain rule, keep the rest (or re-mask them), and move to the next round.
    4. Converge: once the whole canvas is filled, use it as the new prefix context and start the next block.

    This ability shares the same origin as “masked token prediction” during model pre-training. It can be understood as: what the language model learns is filling in a covered word based on context. Token-by-token autoregression masks only one word at a time, whereas diffusion-style generation first masks a whole block and then repeatedly fills it in.

    Illustrative code:

    1. def diffuse_generate(model, prompt, block_len=256, steps=32):
    2. prefix = list(prompt)
    3. while not reached_stop(prefix):
    4. # 1) Initialize: the whole canvas is all masks
    5. canvas = [MASK] * block_len
    6. # 2) Iterative denoising: each round covers the whole block in one forward pass
    7. for _ in range(steps):
    8. logits = model.forward(prefix + canvas) # one forward pass covers the whole block
    9. dist = logits[-block_len:] # prediction distribution at each canvas position
    10. best = dist.argmax(dim=-1)
    11. # 3) Fix high-confidence positions by confidence, re-mask the rest
    12. fixed = confident_enough(dist) # illustrative: temperature/threshold/keep ratio
    13. canvas = [t if fixed[i] else MASK
    14. for i, t in enumerate(best)]
    15. if all(fixed):
    16. break
    17. # 4) Advance autoregressively between blocks
    18. prefix.extend(canvas)
    19. return prefix

    From the “word-by-word writing” perspective:

    Writing one token at a time is the “muscle memory” of current mainstream models. Diffusion models change it to first draw N blanks on the paper, and each round let the model fill in every blank with its most confident answer at that moment; high-confidence positions are locked, and low-confidence ones are left to be revised next round.

    3.2 Three Features of the Engineering Configuration

    Block length and iteration count are configurable. The canvas block length and iteration steps can be adjusted independently, which gives flexibility at the inference level:

    • Increasing the block length covers more tokens in parallel within a block, reducing forward passes, but each round of denoising becomes harder;
    • Shortening the block length makes each block converge faster, but increases the number of blocks and the overhead between them;
    • Adjusting the iteration steps trades off “quality” and “speed” to tune the inference budget.

    Parallel within a block, serial between blocks. In its macro structure it’s still autoregressive: blocks can’t be generated out of order, only left to right. The difference is that the smallest generation unit changes from a single token to a whole canvas.

    Often combined with a sparse expert architecture. Sparse experts keep the compute per position controllable, making “one forward pass covering more positions” feasible.

    Taking a model of this generation recently made public by a certain team as an example, its documentation gives the following core configuration:

    Item Configuration
    Total params / activated params per token ~25 billion / ~3.8 billion
    Layers 30
    Context length 256K
    Canvas block length 256 tokens
    Expert configuration 128 routed experts, 8 activated per token, plus 1 shared expert

    A notable detail: the documentation describes sparsity in terms of “activated parameters” rather than “activated tokens.” Combined with phrases like “per canvas block” and “multi-canvas sampling,” this suggests that a single forward pass computes the activated parameters across all positions in the canvas. Inference cost therefore correlates more with the “total number of forward passes” than with the “number of generated tokens,” which is also an important reason diffusion models need to be combined with sparse experts to control per-step overhead.

    3.3 Benefits and Costs

    Benefits

    • Far fewer forward passes: sequential dependency changes from “one step per token” to “several steps per canvas block.”
    • More balanced load: each forward pass covers a whole block, with larger, more regular matrices, better using the headroom from “idle compute during decoding.”
    • Latency adjustable on demand: block length and iteration steps are both tunable knobs, so the same model can be tuned for different service-level targets.

    Costs

    • Intermediate states can’t be directly reused by the KV cache: canvas content keeps changing during denoising, so each round must re-encode it together with the long prefix. The longer the prefix, the more pronounced this repeated overhead.
    • Parallelism has a quality cost: with less certain context to reference, the quality of filling in words in parallel is usually worse than “seeing the exact preceding word before writing the next.” This must be compensated by more iterations, confidence scheduling, and autoregressive progression between blocks.
    • More complex scheduling: it needs to decide “which to fill first, which later, when to stop,” involving hyperparameters like confidence thresholds, keep ratios, and stopping strategies. The optimal configuration can vary significantly across tasks.
    • The engineering ecosystem is still nascent: the token-by-token presentation of streaming output, and compatibility with existing inference frameworks and quantization schemes, all need additional validation.

    4. What Exactly Is the Relationship with MTP and QAT?

    Three dimensions can make this clear:

    Dimension Focus Typical techniques Changes the generation method?
    Numerical representation How many bits model parameters are stored and computed in Low-bit quantization, quantization-aware training (QAT) No
    Acceleration mechanism How to reduce the serial steps of decoding MTP, speculative decoding, prompt caching No
    Generation paradigm How many output positions a single forward pass covers Token-by-token autoregression vs. discrete diffusion parallel denoising Yes

    4.1 With MTP: Both “Reduce Serial Steps,” but at Different Levels

    MTP and speculative decoding sit at the “acceleration mechanism” layer; their core is still an autoregressive model. Using writing as an analogy, it still writes one word at a time, only it first drafts a few words and then has the main model check them: everything that passes is accepted, and content after the first error is scrapped and redone. The advantage is good compatibility with existing systems and essentially unchanged output quality; the limitation is that it can’t escape the “left-to-right, word-by-word confirmation” logic, so the speedup ceiling is limited.

    Diffusion models sit at the “generation paradigm” layer, replacing word-by-word confirmation with whole-block parallel denoising. But as noted above, they’re still autoregressive between blocks.

    So the precise relationship is: diffusion models are not a replacement for MTP; the two are at different levels and can be combined. For example:

    • Within a canvas, use confidence-driven iterative denoising to complete parallel generation;
    • Between blocks, use something like speculative decoding to verify candidate blocks and accept high-quality ones early;
    • You can also use a small autoregressive draft model to provide block-level candidates for a diffusion model.

    It should be clear that such combinations currently remain mostly in the research direction, and the actual gains need to be evaluated against specific implementations rather than assumed.

    4.2 With QAT: It Solves a Different Problem

    QAT stands for quantization-aware training. It simulates the numerical error of low-bit quantization during the training or fine-tuning stage, letting the model adapt to a low-precision representation in advance, so it can run with less memory and bandwidth at inference — usually trading lower bits for performance at comparable output quality. It answers “how many bits per parameter,” unrelated to “how to generate.”

    Putting the three together:

    • QAT makes each parameter “lighter”;
    • MTP makes the wait per token “shorter”;
    • Diffusion makes each forward pass produce more.

    The three can be stacked; a diffusion model can also use quantization-aware training. However, the English abbreviations for “diffusion” and “quantization” happen to be similar, and since some new models release quantized versions alongside them, they’re easy to conflate. When reading technical documentation, be sure to check the full name and context of the term.

    5. Selection Advice: There’s No Absolute “Faster,” Only Scenario Matching

    1. Set the metrics first, then discuss the solution. Online conversation usually cares more about time-to-first-token and streaming speed; batch offline tasks value throughput more; scenarios sensitive to output quality must use quality metrics as a constraint. Switching models changes both quality characteristics and the speed curve, so a comparison on a single speed dimension alone is inadequate.
    2. Quality first, smooth streaming experience. Try autoregression + MTP / speculative decoding first; the output distribution is unchanged and the integration cost is relatively manageable.
    3. Need to drastically cut per-token latency, or memory/bandwidth is tight. You can evaluate parallel denoising solutions, focusing on three questions:
      • On the target task (long-form writing, structured output, code generation, etc.), how quality interacts with iteration steps and block length;
      • The extra overhead of “re-encoding” under long prefixes;
      • Compatibility with the inference framework.
    4. Build a unified evaluation loop. Fix random seeds and hyperparameters, and cover metrics like “draft hit rate, average accepted tokens per round, denoising iteration count, time-to-first-token, throughput, memory usage, task accuracy.” You can rent elastic compute on cloud platforms such as Baidu AI Cloud, or connect to hosted inference services with already-deployed QAT-quantized model versions to validate quickly. The actual gains and quality loss of quantized versions also need to be measured.
    5. Pay attention to engineering details.
      • The diffusion solution trades intra-block parallelism for speed, so there needs to be extra interaction design between output order and token-by-token streaming;
      • The speculative decoding solution needs attention to the memory and model-management cost introduced by the draft source.

    6. Conclusion

    The two routes can each be summarized in one sentence:

    • MTP / speculative decoding is a “draft accelerator” for autoregressive models; it doesn’t change the way of writing;
    • Discrete diffusion changes “word-by-word writing” into “whole-block repeated revision”; the generation paradigm changes, but between blocks it’s still autoregressive;
    • QAT isn’t on the same dimension as these two; it solves the problem of parameter precision and inference cost.

    Understanding the layered relationship among these three is more important than memorizing any single term. At a stage where generation paradigms are still evolving rapidly, what really determines results is often not “which new paradigm is used,” but whether it matches the quality requirements, latency targets, and engineering conditions of the business scenario.