Text Diffusion vs. Autoregressive Decoding: Three Paths to Faster LLM Inference

    This article explains why decoding, not prefill, is the speed bottleneck in LLM inference, and compares three ways to speed it up: speculative decoding with multi-token prediction, text diffusion with parallel denoising, and quantization-aware training (QAT). It breaks down per-step decode cost, explains how each technique works and where its limits lie, and shows how the three relate to and can be combined with one another. Readers will also find practical guidance on choosing, layering, and rolling out a decoding strategy, tuning knobs such as acceptance rate and denoising steps, and a clarification of why parallelism does not always mean faster. A closing note flags which claims are grounded in public sources and which need to be verified against official documentation.

    Introduction: Decoding Is the Real Speed Bottleneck for Generative Models

    In the inference cost of a large language model, the Prefill stage processes the entire prompt in one pass and can fully exploit the parallelism of matrix multiplications. What actually slows down end-to-end generation is the Decode stage: every token requires a complete forward pass, and that pass can’t start until the previous token has been produced. This serial dependency keeps compute utilization during decoding far below the hardware’s peak. As a result, generation speed is largely limited by memory bandwidth and the fixed overhead of each step. That’s why most optimization work in recent years has focused on decoding. Broadly, it falls into two categories:

    • Speculative acceleration: It keeps the “one token at a time” generation logic, but drafts first and verifies afterward. Multi-token prediction and speculative decoding are its typical representatives.
    • Parallel denoising: It changes the shape of decoding itself, so that a stretch of text is revised over and over at the same moment. Text diffusion models follow this route.

    These two are often discussed side by side, which makes it easy to assume they are competing solutions to the same problem. A more accurate framing: they act on different stages of the decoding pipeline, and they can be combined in many scenarios. Separately, quantization-aware training (QAT) addresses how expensive each step of computation is. It is orthogonal to the decoding path, so any paradigm can benefit from it. Once you understand this, you don’t have to keep second-guessing an either/or choice.

    1. The Starting Point: Why Autoregressive Decoding Can’t Easily Go Faster

    1.1 Serial Dependency Is the Fundamental Constraint

    Autoregressive models factorize the probability of a text into a product of step-by-step conditional probabilities:

    1. P(x_1, x_2, ..., x_n) = P(x_1) · P(x_2 | x_1) · ... · P(x_n | x_1, ..., x_{n-1})

    To generate the t-th token, the model needs the previous t-1 tokens as input. Even with KV Cache, which stores already-computed keys and values so the prefix isn’t recomputed, each token still requires a full forward pass. At any given moment, only “this one current position” can take part in the computation. Batch requests are also capped by available memory.

    The time per step can be roughly broken down into three parts:

    1. step time ≈ time to read weights (depends on memory bandwidth and quantized bit width)
    2. + compute time per step (depends on active parameters and sequence length)
    3. + kernel launch and scheduling overhead (depends on kernel count and operator efficiency)

    These three terms map neatly onto three common optimization directions:

    • Quantization-aware training attacks the first term.
    • Speculative decoding amortizes the third: one forward pass yields several tokens, spreading the fixed overhead across more outputs.
    • Parallel block generation changes how the second term unfolds. It lets more positions take part at the same moment, turning a memory-bound “data-movement” step into a more compute-intensive one.

    Once this division of labor is clear, the two technical routes are easier to place.

    1.2 Decoding Is Usually Bound by Memory Bandwidth

    In autoregressive decoding, the compute per step is roughly proportional to “active parameters × sequence length × 2.” The weight bytes that must be read per step are roughly “the number of parameters involved × quantized bytes per parameter.” The first is a compute metric (FLOPs); the second is a bandwidth metric (bytes).

    The ratio between them shrinks as the model gets larger, the sequence gets shorter, or the quantization width increases. Many decoding steps are stuck in a state where “bandwidth gives out before the weights can even be used.” The compute units sit idle waiting for data. This explains why both approaches work: cutting the number of weight reads needed per output token (speculative decoding) and cutting the bytes in the weights themselves (quantization). It also marks the payoff boundary for parallel block generation. Packing more positions into a single forward pass only pays off if the extra compute leads to fewer weight reads overall.

    2. Inside the Two Routes

    2.1 Route 1: Autoregressive + Multi-Token Prediction (Speculative Decoding)

    Basic idea. The main model remains a standard autoregressive model. During training or inference, you add an extra “draft” source. It proposes multiple candidate tokens at once, and the main model then verifies them in parallel.

    • Two kinds of draft source:
      • An independent, lightweight draft model.
      • A prediction head built into the main model itself, which produces outputs at several “lookahead” positions from the same backbone. This is the general approach of multi-token prediction (MTP).
    • Verification: Append the candidate sequence to the prefix. Compute the main model’s output distribution at the corresponding positions in parallel. Compare position by position and decide whether to accept each token or roll it back.

    Why the result is still correct. If the main model’s distribution at a candidate position matches the draft distribution, handling candidate tokens with the standard accept-reject rule produces exactly the same output distribution as sampling from the target model alone. In other words, this is not an approximation technique. It is an acceleration scheme that saves time without changing the distribution. A common engineering practice is to have the draft model use a different temperature, or run at lower precision, in exchange for a higher acceptance rate. The output distribution then shifts slightly, so any quality loss needs to be evaluated separately.

    Illustrative implementation (teaching pseudo-code):

    1. def speculative_decode(prompt, main_model, draft_model, gamma=4):
    2. """
    3. gamma: maximum number of candidate tokens drafted per round
    4. Returns: output sequence equivalent to greedy/sampled decoding with main_model alone
    5. """
    6. prefix = prompt
    7. while not done(prefix):
    8. # 1) Draft source: propose gamma candidate tokens at once
    9. candidates = draft_model.draft(prefix, k=gamma)
    10. # 2) Main model verifies the candidate positions in parallel; one forward covers gamma+1 positions
    11. verified = main_model.verify(prefix + candidates)
    12. # 3) Accept or roll back position by position; re-sample the rollback position from the main model's own distribution
    13. accepted = 0
    14. for i, c in enumerate(candidates):
    15. if verified.accept(i, c):
    16. accepted += 1
    17. else:
    18. break
    19. prefix = prefix + accepted_tokens(accepted) + verified.resample(accepted)
    20. return prefix

    The speedup ceiling is set by the acceptance rate. Suppose k candidates are drafted per round and the average acceptance rate is α. The expected accepted length per round is then roughly (1 - α^(k+1)) / (1 - α). In the ideal case, each forward pass produces that many tokens per round on average. The lower α is, the smaller the gain. When α is very low, the cost of drafting and verifying can even exceed the number of steps saved.

    Three characteristics are worth emphasizing:

    • Good compatibility: The main model’s weight format, training pipeline, and inference stack stay largely unchanged. What you add is a detachable “accelerator” that can be turned on or off at inference time as needed.
    • Controllable quality risk: In its standard form, the output distribution matches the main model’s. Any quality regression therefore comes mainly from implementation precision and numerical details, not from the algorithm itself.
    • Speedup depends heavily on task structure: Gains are clear where the draft model can “guess right”, such as code completion, formatted output, templated text, and long-document continuation. In tasks that require long-horizon reasoning with uncertainty at every step, the acceptance rate drops and the gains shrink.

    2.2 Route 2: Text Diffusion (Parallel Denoising Generation)

    Basic idea. Instead of treating generation as “appending tokens one by one, front to back”, you maintain a fixed-length “canvas”. Each position on the canvas starts as a special mask or placeholder. At each step, the model looks at both the settled content and the unsettled positions. It predicts the token distribution at all masked positions, then fills several of them at once according to some rule. After a number of rounds, the canvas is gradually filled in.

    Several published industry studies show that the denoising order at different confidence levels directly affects generation quality. Common approaches include:

    • Confidence-driven parallel unmasking: At each step, fill the positions with the highest predicted confidence and leave the rest for the next step. The fewer blanks remain, the more context the model can rely on, and the more accurate its predictions become.
    • Block autoregressive + multi-canvas sampling: Split long text into fixed-length blocks and denoise in parallel within each block. Keep some overlap or anchors between blocks so the new canvas can see the already-generated tail. This preserves global coherence.

    Intuitively, you can draw an analogy with image diffusion. At first you have a blur: the outline appears first, details are filled in gradually, and finally you get the image. Each step of text diffusion, by contrast, is “revising the whole draft at the same time”, not “adding one character at the end of a sentence”.

    Where the gains come from.

    • More effective output per forward pass: Filling several of 256 positions in one step, versus one token per step with autoregressive decoding.
    • Better suited to local or small-to-mid-scale deployment: The dependence on memory bandwidth is relatively less acute, so a noticeable speedup is easier to achieve on a single card.
    • Readable intermediate results: The denoising process itself produces an inspectable draft. This naturally suits interactive scenarios that need a “draft first, then iterate” workflow, such as structured output and code skeleton generation.

    The costs are equally clear.

    • Heavier compute per step: Each forward pass must cover all positions on the canvas, so a single step costs more than generating one position. You need “far fewer steps than the block length” to make up for it.
    • Quality is still constrained by the paradigm: Parallel filling means multiple positions can’t see each other’s final form at the same moment. Local consistency, such as long-distance coreference, strict formatting, and exact arithmetic, requires extra mechanisms.
    • Different ecosystem maturity: Training data, evaluation scripts, inference frameworks, and quantization toolchains built around autoregressive models are more mature. Diffusion-style models need their training objectives (masked-position prediction, multi-step denoising consistency) and post-training methods (such as preference optimization based on human feedback) redesigned. The engineering migration cost is clearly higher.

    3. A Unified View: Not Opposites, but Two Shapes of the Decoding Path

    The relationship between the two routes becomes clear once you separate “what to generate” from “how to generate”.

    On the generation objective, autoregressive models “predict the next token given a prefix”. Diffusion-style text models usually “predict the masked positions given partially known context”. Both estimate a conditional distribution; they differ only in the granularity of the visible information. Some industry research notes that under certain conditions, autoregressive modeling can be seen as an extreme case of diffusion-style modeling. For example, take “masking the entire suffix” as a special case and allow generating multiple positions in a single step. Conversely, autoregressive + multi-token prediction can be understood as “on a serial path, additionally predicting several lookahead positions in parallel”.

    On the execution side, the real difference lies in which part gets parallelized:

    • Speculative approaches put parallelism in the verification stage. The draft is generated sequentially and verification runs in parallel, but the output order remains left-to-right.
    • Diffusion-style approaches put parallelism in the generation stage. The output itself is filled in parallel, and ordering is approximated by denoising rules and overlap anchors.

    So the three can be combined:

    1. Quantization-aware training compresses weight bit width, reducing memory traffic per step.
    2. Speculative / multi-token prediction reduces the number of weight reads needed per output token.
    3. Parallel block denoising turns the output of one forward pass from 1 token into several, amortizing the fixed overhead.

    In theory, the gains of stacking all three can multiply. In real engineering, however, you also have to deal with practical constraints around memory, batching, and kernel efficiency. We’ll cover those in detail below.

    4. Comparing the Three Optimization Approaches

    Dimension Speculative multi-token prediction Text diffusion parallel denoising Quantization-aware training
    Changes generation logic No; output distribution can stay equivalent Yes; switches to parallel block filling No; only changes numerical precision
    Main source of speedup Amortizing fixed per-step overhead Producing multiple positions per step Reducing weight-read bytes
    Dependence on draft quality / masking strategy High (acceptance rate) Medium (denoising order and step count) Low
    Quality and predictability Equivalent to the main model in standard form Local consistency needs per-task evaluation Needs a calibration set and layer-by-layer sensitivity analysis
    Typical risk points Draft and main model diverge, causing rollbacks Long-range consistency, strict formatting Outliers and precision loss at low bit widths
    Compatibility with existing inference stacks Good Needs extra kernel and scheduling adaptation Good; widely supported by mainstream frameworks
    Suitable deployment forms Cloud and edge Single-machine/local deployment, small-to-mid-scale models Nearly all scenarios

    Don’t use this table to pick a single “best” option. Start by identifying where the bottleneck is: bandwidth, fixed overhead, or the shape of decoding. Each approach targets a different bottleneck. Getting the order wrong can noticeably hurt the return on investment.

    5. How to Combine Them: A Practical Layered Strategy

    Step 1: Build a solid foundation first. Whichever decoding route you ultimately choose, do quantization and inference-engine optimizations first. That includes operator fusion, KV cache management, and continuous batching. If you add complex schemes on top of a shaky base, implementation defects will eat up the gains.

    Step 2: Choose a decoding acceleration strategy for your scenario. For online services that need ultra-low per-token latency, reproducible results, and full alignment with existing evaluations, prefer speculative approaches. For scenarios that aim for local, single-machine throughput and can accept a “draft + refine” workflow, consider parallel block denoising.

    Step 3: Define your validation boundaries. Both quantization and speculation introduce slight shifts at the distribution level. Diffusion-style generation shifts come from the algorithm itself. Before launch, put three layers of validation in place:

    • End-to-end quality comparison.
    • Layer-by-layer / task-by-task degradation analysis.
    • Long-text consistency checks.

    A concrete rule of thumb. Look at the ratio of weight-read time to compute time within a single forward pass:

    • If memory bandwidth clearly saturates before compute does, the gains from speculation and quantization will be fairly direct.
    • If scheduling and kernel-launch overhead take up a large share of per-step time (for example, small models with short sequences in local setups), a parallel block approach that makes one forward pass produce more positions will show its advantage more easily.

    6. Practical Engineering Challenges

    Memory and batching. Speculative decoding creates “inconsistent acceptance lengths”. In the same batch, different requests produce different numbers of tokens per round, so you need variable-length scheduling and padding management. Parallel block denoising must hold the canvas and the intermediate states of each step in memory at the same time. Block parallelism and step count need to be tuned together.

    Kernels and operators. Parallel block generation requires “one forward pass processing multiple positions and outputting distributions for multiple positions”. Some inference frameworks ship default kernels optimized for single-token generation, so they need extra adaptation. At the scheduling level, the semantics of “filling multiple positions per step” also need to be mapped onto the existing request-batch model.

    Evaluation methods need to change too. Under parallel decoding, per-token latency and throughput no longer tell the whole story. A more sound approach is to evaluate with two metrics together: “average time per output token” and “end-to-end latency per request”. Expose acceptance rate, average denoising steps, and fill count per step as observable tuning parameters. On top of the monitoring, alerting, and logging services that cloud platforms generally provide, feeding these metrics into your regular observability setup lets you spot problems faster. One example: an acceleration strategy that actually slows things down under certain traffic.

    Operations and gradual rollouts. Make the decoding strategy a configurable switch. Roll it out gradually as a percentage of traffic, and keep a one-click rollback to standard autoregressive decoding. The first batch of traffic for a new strategy should ideally come from low-risk tasks, which makes it easy to compare quality and latency.

    7. A Common Misconception: Does Parallel Always Mean Faster?

    No, parallelism does not automatically make things faster. There is only one criterion: does the extra compute introduced by parallelism buy a reduction in the total number of weight reads?

    • If a canvas takes many steps to fill, and each step costs more than single-token generation, total time may actually go up.
    • If confidence-driven selection is too conservative and only one or two positions get filled per step, the parallelism advantage basically disappears.
    • If the number of denoising steps is set too high, quality gains plateau while latency keeps growing linearly. This is a classic diminishing-returns zone.

    In practice, treat “average number of denoising steps” as a tunable knob on the same level as temperature and top-p. Pick an operating point on the quality-latency curve rather than locking in one configuration for everything. The same goes for speculative approaches: a draft length k isn’t always better when larger. There is an optimal range strongly tied to the acceptance rate.

    8. Recommendations and Conclusion

    If the problem is “we already have a mature autoregressive inference stack and want to shave more latency without changing the model”, speculative multi-token prediction is the lowest-cost starting point. It involves small changes and controllable quality risk, and its gains are strongly tied to task structure.

    If the scenario is “single-machine or local deployment with limited memory bandwidth, where we want a large draft in one shot and then iterate”, parallel block denoising offers another approach. Be prepared for the extra investment in ecosystem adaptation and quality validation.

    If the bottleneck is really numerical precision and memory access, quantization-aware training is the main line of work. It doesn’t conflict with the other two.

    Back to the original question: the relationship between DiffusionGemma and MTP and QAT. MTP and QAT are “speedup engineering” applied to existing decoding paths. MTP reduces the overhead of amortizing serial steps, while QAT reduces memory traffic at each step. The route represented by DiffusionGemma, by contrast, tries to reshape decoding itself: it replaces left-to-right, token-by-token generation with block-level parallel denoising. The three are not substitutes. They are optimizations at different layers and can be stacked, but the gains from stacking must be verified through measurement.

    One point deserves an honest note: this article did not obtain complete internal technical documentation for these models. The parameter and mechanism descriptions above come from public sources and reasoning based on general principles. Specific implementation details (denoising order, training objectives, quantization schemes) should still follow the official releases. When making a selection, the reliable basis is always the quality-latency curves measured on your own business traffic, not any single marketing figure.