LLM Inference Acceleration: From Autoregressive to Diffusion Decoding

    This article examines two technical routes for accelerating large language model inference: multi-token prediction and speculative decoding within the autoregressive paradigm, and discrete diffusion decoding that replaces sequential generation with parallel denoising. It explains why autoregressive decoding is serial and bandwidth-bound, describes how draft-and-verify decoding works, and outlines how block-autoregressive discrete diffusion with MoE can produce multiple tokens per forward pass. It also compares output quality, engineering compatibility, speedup ceilings, and practical deployment scenarios, and offers selection guidance for existing systems and new high-throughput services.

    1. Background: Why Autoregressive Generation Has a Speed Ceiling

    For a long time, mainstream large language models have generated text autoregressively (AR): the model outputs one token at a time from left to right, and every new token requires a full forward pass. This approach has three natural advantages: a clear training objective (next-token prediction), rigorous probabilistic modeling, and stable generation quality. But its weakness is equally clear: generating N tokens requires N serial forward passes, and the cost of each pass is hard to compress because the i-th token depends strictly on the previous i-1 tokens.

    Even with KV Cache to avoid recomputing historical context, the serial nature of autoregression remains unchanged. In the decoding stage, where memory bandwidth is often the bottleneck, each forward pass must move all model weights from memory to compute units but produces only one token. The compute-to-bandwidth ratio is extremely low, and hardware utilization is poor. This is the fundamental reason large-model inference is “slow and expensive,” and it is the target that various inference acceleration techniques aim to address.

    The industry has mainly explored two routes around this pain point: one is to keep the generation method unchanged but produce several tokens at once, represented by multi-token prediction (MTP) and speculative decoding; the other is to replace the generation method entirely and use parallel denoising instead of sequential generation, represented by discrete diffusion language models. Recently, diffusion-style language models in the tens-of-billions parameter range using mixture-of-experts (MoE) architectures have brought the second route into a stage where it can genuinely compete with mainstream dense/MoE autoregressive models, making it worth deeper analysis.

    2. Route One: MTP and Speculative Decoding—Adding a “Draft Accelerator” to Autoregression

    2.1 Core Principle

    The idea behind MTP (Multi-Token Prediction) and its engineered form, speculative decoding, can be summarized in one sentence: the order of writing stays the same, but the model guesses several steps ahead; accepted guesses are taken in batch, and rejected guesses are rolled back.

    The workflow is as follows:

    1. The model (or a lightweight draft module) predicts the next k candidate tokens at once based on the current context (typically 4 to 8).
    2. The target model performs one parallel verification over these k candidate positions: because an autoregressive model can compute probability distributions for multiple positions in one forward pass, the verification cost is close to a normal forward pass.
    3. Comparing from front to back, tokens accepted by the target model (or accepted under a sampling rule) are adopted directly. At the first rejected position, the process rolls back and regenerates from that position.

    A simplified pseudocode representation:

    1. def speculative_step(context, draft_model, target_model, k):
    2. # 1. Draft stage: quickly guess k tokens
    3. drafts = draft_model.generate(context, n_tokens=k)
    4. # 2. Verification stage: one forward pass by the target model, parallel scoring
    5. probs = target_model.forward(context + drafts)
    6. # 3. Accept/reject
    7. accepted = []
    8. for i, tok in enumerate(drafts):
    9. if accept(tok, probs[i]): # decide according to sampling rule
    10. accepted.append(tok)
    11. else:
    12. accepted.append(sample(probs[i]))
    13. break
    14. return accepted # length 1 to k+1

    2.2 Advantages and Limits

    The biggest advantages of this route are compatibility and quality stability:

    • It does not change the model’s output distribution and can theoretically guarantee that generation results match pure autoregressive sampling exactly (lossless acceleration).
    • It can be layered on top of any existing autoregressive model with low engineering modification cost and without retraining the base model.
    • It is fully compatible with existing training frameworks, inference engines, and deployment toolchains.

    But its ceiling is also clear: the speedup ratio depends on the draft’s “hit rate.” In highly predictable text scenarios such as code completion and templated text, 4 to 6 tokens may be accepted at once. In open-ended creation and complex reasoning scenarios, the hit rate drops sharply, and the speedup often falls back to 1.5 to 2 times. Fundamentally, it remains locked into left-to-right serial logic; it reduces the number of serial steps but does not eliminate serial dependencies.

    3. Route Two: Discrete Diffusion—Turning “Writing” into “Revising”

    3.1 Core Principle

    Discrete diffusion language models borrow the idea of image diffusion models but operate in a discrete token space. Their generation process can be compared to: first laying out a canvas filled with “noise/masks,” then revising repeatedly until the final text converges.

    Taking the latest publicly described diffusion-style MoE language model as an example, its typical configuration is roughly: total parameters about 25B, about 4B parameters activated per forward pass, support for 256K ultra-long context, and a hybrid strategy of “block-autoregressive multi-canvas sampling” during generation:

    1. The output is divided into “canvas” blocks of 256 tokens.
    2. For each canvas, all tokens are initially masked. Over several denoising iterations, the model in parallel predicts and gradually determines the values at these positions; each round can “light up” multiple high-confidence positions at once.
    3. After the current canvas converges, the next block is generated with it as context. Autoregressive dependency remains between blocks, but the interior of each block is parallel.

    The key change is that one forward pass can produce dozens or even hundreds of tokens, rather than one. This directly changes the compute-to-bandwidth ratio and allows GPU compute to be fully utilized in the decoding stage for the first time.

    3.2 Synergy with MoE Architectures

    It is worth noting that such models generally choose MoE architectures (for example, 8 of 128 experts activated each time, plus 1 shared expert), and this is not a coincidence:

    • Each forward pass in diffusion decoding must process predictions for 256 positions, far more computation than single-point prediction in autoregression. MoE uses sparse activation to reduce the cost of a single forward pass to roughly the level of 4B activated parameters, making “large-step parallel generation” computationally feasible.
    • Shared experts handle general syntax and semantic modeling, while routed experts handle domain-specific knowledge. Combined with multi-round denoising, this can maintain long-text consistency during parallel revision.

    3.3 Advantages and Costs

    Advantages:

    • A jump in throughput: parallel denoising increases the number of tokens produced per forward step by more than an order of magnitude, making it especially suitable for high-concurrency, batch inference server-side scenarios.
    • Global correctability: once autoregression writes something wrong earlier, it can only continue with the error. Diffusion models can revise early positions during denoising, naturally supporting “bidirectional context” modeling.
    • Friendlier to long outputs: generating 1,000 tokens no longer means 1,000 serial forward passes, and the latency growth curve with length is flatter.

    Costs and challenges:

    • Quality polishing is harder: the training objectives and sampling schedules of discrete diffusion (number of denoising steps, how many tokens to confirm per round) form a new hyperparameter space, and poor tuning can cause local incoherence.
    • Ecosystem maturity is low: existing inference engines, quantization schemes, and fine-tuning toolchains are mostly designed around autoregression, and the engineering infrastructure for diffusion models still needs time to catch up.
    • Latency-throughput tradeoff: more denoising rounds improve quality, but additional steps erode the speed gains from parallelism, so tradeoffs must be made by scenario.

    4. Essential Comparison of the Two Routes

    Dimension MTP / Speculative Decoding Discrete Diffusion Decoding
    Generation paradigm Still autoregressive, left-to-right Parallel denoising within blocks, bidirectional modeling
    Source of speedup Fewer serial steps (by guessing) Parallel output per step (by revising)
    Output quality Can be lossless relative to the target model Depends on training and sampling schedule
    Engineering compatibility High; can layer on existing models Low; requires a new training and inference stack
    Speedup ceiling Typically 2–3x The theoretical ceiling is an order of magnitude higher
    Best-fit scenarios General, low-risk upgrades High-throughput server-side, long-form generation

    An analogy: MTP gives a traditional writer a “stenographer” who drafts the following text in advance and lets the writer confirm it; the writing workflow is unchanged. Diffusion decoding instead changes the creative method—first building an entire paragraph framework, then polishing it repeatedly, with all sentences in the framework editable at the same time.

    5. Practical Guidance for Engineering Selection

    1. Existing systems should prioritize MTP/speculative decoding: if a business already runs stably on autoregressive models, introducing a draft model or a multi-token prediction head is the lowest-cost speedup method, and it does not change the output distribution, so regression risk is low. When deploying on cloud platforms, it can be combined with container platforms for elastic scaling and monitoring/alerting to observe draft hit rates for quick results.
    2. New high-throughput services can watch the diffusion route: for batch text generation, ultra-long content production, and other scenarios that are latency-insensitive but throughput-sensitive, parallel decoding in diffusion-style models can bring structural cost advantages and is worth small-scale validation.
    3. The two are not mutually exclusive: block-autoregressive diffusion models themselves show that the two routes can be combined—maintaining sequential dependency at the macro level and introducing parallelism at the micro level. Future inference engines will most likely support multiple decoding strategies simultaneously and dynamically schedule them according to request characteristics.

    6. Conclusion

    MTP and discrete diffusion represent two philosophies for accelerating large-model inference: the former cultivates within the existing paradigm, trading compatibility for deterministic gains; the latter reconstructs the generation paradigm, trading ecosystem rebuilding costs for order-of-magnitude throughput space. For developers, understanding the principle boundaries and applicable scenarios of both is more important than chasing a specific model—because the competition in inference efficiency has only just begun, and paradigm-level innovation will continue to emerge.