Diffusion Generation vs. Speculative Decoding: Two Paths to Accelerate LLM Inference

    Large language model (LLM) inference is often bottlenecked by the serial dependency and memory bandwidth constraints of autoregressive generation. To overcome these limitations, the industry has explored two primary technical paths: accelerating the existing autoregressive paradigm using Multi-Token Prediction (MTP) and speculative decoding, and shifting to a new generation paradigm based on discrete diffusion. This article provides a systematic comparison of these two approaches, examining their technical principles, performance boundaries, engineering implementation details, and how developers can choose the right strategy based on their specific workloads and infrastructure.

    1. Why is LLM Inference Slow?

    Most mainstream large language models generate text using an autoregressive approach: the model outputs tokens one by one from left to right, with each step depending on all previously generated content. While this method offers mature training and stable output, it presents two significant bottlenecks during inference:

    1. Serial Dependency: The Nth token can only be computed after the (N-1)th token is generated, making it difficult to fully utilize the parallel computing power of GPUs.
    2. Memory Bandwidth Bound: Generating each token requires loading the model’s activation weights, but the actual computation is minimal. As a result, the decoding phase becomes a memory bandwidth-intensive task, leaving compute units largely idle.

    To break through these bottlenecks, the industry has formed two technical paths. The first retains the autoregressive paradigm but accelerates it through multi-token prediction and speculative decoding. The second replaces the generation paradigm entirely, adopting diffusion-based text generation.

    2. MTP and Speculative Decoding Are Not the Same Thing

    Many resources discuss MTP and speculative decoding together, but they address different problems and occur at different stages.

    2.1 MTP: Multi-Token Prediction Goals in the Training Phase

    MTP (Multi-Token Prediction) is a design for model architecture and training objectives. During training, in addition to predicting the next token, the model uses additional prediction heads to simultaneously forecast tokens at several subsequent positions. This allows each training sample to provide more supervisory signals, improving sample efficiency.

    These additional prediction heads can serve as drafts during inference, enabling self-speculative decoding. Therefore, MTP itself is a training-level design; it is not an acceleration component that directly takes effect during inference.

    2.2 Speculative Decoding: Drafting and Verification in the Inference Phase

    Speculative decoding is an inference algorithm. It first uses a draft model (a smaller model, a distilled model, or MTP prediction heads) to propose 4 to 8 candidate tokens in a single pass. The main model then performs a parallel forward pass to verify them.

    The verification process proceeds sequentially: tokens that align with the main model’s predictions are accepted. Upon encountering the first discrepancy, the subsequent candidates are truncated, and the main model provides the correct token before generation continues. Implementations using rejection sampling ensure that the final output distribution theoretically matches that of the main model, meaning the acceleration comes with no additional quality loss.

    A common analogy is adding a turbocharger to traditional writing. This analogy only applies to the speculative decoding path. MTP itself is not an inference acceleration add-on, and the two should not be conflated.

    2.3 Advantages and Limitations

    Advantages:

    • It does not alter the model structure or output distribution, meaning it is nearly non-intrusive to existing training frameworks, inference engines, and quantization schemes.
    • The main model is responsible for final confirmation, so acceleration does not come at the cost of quality.
    • It has been implemented in multiple mainstream inference frameworks with relatively mature supporting tools.

    Limitations:

    • The acceleration effect depends on the draft acceptance rate. In practice, the speedup ratio typically ranges from 1.5x to 2.5x, rarely achieving an order-of-magnitude improvement.
    • The generation skeleton remains serial from left to right, with each verification step still dependent on preceding context.
    • The draft module consumes extra VRAM and increases scheduling complexity.

    3. Diffusion Text Generation: Drafting First, Revising in Blocks

    3.1 From Image Diffusion to Discrete Diffusion

    Image diffusion models start from random noise and gradually generate images through multiple denoising rounds. Discrete diffusion applies this concept to text: the object of denoising shifts from continuous pixels to discrete tokens in a vocabulary.

    Discrete diffusion requires several key configurations:

    • Masking Schedule: Determines how many positions are masked or replaced at each step, defining the noise intensity.
    • State Transition Method: Describes how tokens switch between different states, typically defined by a transition matrix or masking rules.
    • Denoising Steps: More steps usually mean better quality but slower inference.
    • Sampling Temperature: Affects the randomness when sampling words from the predicted distribution at each step.

    Taking a recently released diffusion language model as an example, its public configuration includes: approximately 25B total parameters, utilizing a Mixture-of-Experts (MoE) architecture with about 3.8B parameters activated per inference. Each layer routes to 8 active experts out of 128, plus 1 shared expert. It supports ultra-long contexts up to 256K tokens, and the generation unit is a 256-token canvas.

    3.2 Block-Level Autoregressive and Canvas Sampling

    Diffusion-based text models generally do not generate an entire article at once. Instead, they use a block-autoregressive strategy:

    1. A 256-token unit serves as a canvas. Sequential dependency is maintained between blocks; a subsequent block can view previously generated content.
    2. The initial state of each block is a blank, mask, or noise placeholder.
    3. The model performs multiple rounds of parallel denoising on the entire block, correcting all positions within the block simultaneously in each round.

    This process can be understood conceptually: the first round determines the general idea of the paragraph; the second round fills in key sentences and core vocabulary; the third round fixes grammar and connects the context; the fourth round polishes details to ensure the paragraph flows smoothly. Note that this is merely an intuitive analogy. The intermediate states of the model are not human-readable drafts, and the denoising rounds do not correspond one-to-one with human writing stages.

    3.3 Source of Speed and the Boundaries of the Numbers

    Autoregressive decoding loads weights at each step but only computes a single token, resulting in low GPU utilization. Diffusion generation processes 256 positions in a single forward pass, shifting the decoding bottleneck from memory bandwidth to compute. Modern GPUs typically have more abundant compute power than bandwidth, so this shift can increase throughput.

    The MoE architecture only activates a small fraction of parameters, keeping the compute cost of a single forward pass low, which complements the parallel denoising process.

    Speed also depends on the number of denoising steps: fewer steps mean faster inference, but quality may degrade.

    The “up to approximately 4x” throughput improvement mentioned earlier comes from the vendor’s public claims. The original materials did not provide hardware models, batch sizes, sequence lengths, or measurement methodologies, so this figure cannot be directly reproduced. You should conduct baseline tests on your own hardware and business workloads before deployment.

    4. Systematic Comparison of the Two Paths

    Dimension MTP and Speculative Decoding Diffusion Text Generation
    Generation Paradigm Autoregressive, token-by-token confirmation Intra-block parallel denoising, inter-block autoregressive
    Source of Acceleration Verifying multiple candidate tokens at once Updating an entire 256-token block in one forward pass
    Output Distribution Speculative decoding matches the main model’s distribution under rejection sampling; MTP’s training goal itself does not directly equate to inference acceleration New paradigm; quality differences from the autoregressive baseline require separate evaluation
    Parallelism Limited by draft acceptance rate High intra-block parallelism, relies on abundant compute power
    Ecosystem Maturity High; widely supported by mainstream inference frameworks Early stage; toolchain and deployment solutions still maturing
    Common Speedup Ratio Typically 1.5x to 2.5x in practice Vendor claims up to ~4x, though measurement conditions are not fully disclosed

    The two are not mutually exclusive. Theoretically, diffusion models can also stack optimization techniques like quantization and speculative sampling, but current framework support is incomplete and requires item-by-item verification.

    5. Engineering Implementation Essentials

    5.1 Hardware and Deployment Form

    The high parallelism of diffusion generation is suited for GPU environments with abundant compute. Using the example model above, estimates require explicit assumptions: if stored in BF16 precision, the weights of a 25B parameter model require about 50GB of VRAM, which cannot fit on a single card and requires multi-GPU sharding. If 4-bit quantization is used, the weights take up about 12.5GB, meaning a single 24GB consumer-grade GPU can hold them, though additional space must be reserved for the KV cache and activation values.

    For cloud deployment, you can use container orchestration platforms to handle scheduling and elastic scaling for model services. Simultaneously, use monitoring and alerting to observe throughput, latency, and VRAM usage levels, and save inference logs for subsequent diagnostics. Specific choices should align with your team’s existing cloud environment.

    5.2 Quality Evaluation Cannot Solely Focus on Speed

    As a new paradigm, diffusion text generation requires careful validation in the following areas:

    • Long-text Consistency: Whether theme drift occurs at the seams between blocks.
    • Instruction Following and Formatted Output: The accuracy of structured outputs like JSON or code under parallel denoising.
    • Trade-off Between Denoising Steps and Quality: Finding the minimum number of steps acceptable for your business.

    It is recommended to establish an automated evaluation suite before going live, covering accuracy, fluency, and format compliance. Prepare several hundred or more samples for each task type and score them using unified criteria. When conducting A/B comparisons against an autoregressive baseline, use identical prompts and compare paired samples. If you want to detect a pass-rate difference of about 5 percentage points (baseline 80%, significance level 0.05, test power 80%), you need about 900 samples per group. Specific thresholds should be set by the business based on fault tolerance requirements.

    5.3 Compatibility and Selection Criteria

    MTP-based solutions can integrate into existing services with almost zero modification. Diffusion models, however, require dedicated samplers, scheduling logic, and KV cache management strategies, and existing framework support is still in its early stages. When making a selection, verify the following points:

    • Does the existing inference framework support the draft model or MTP prediction heads you intend to use? If yes, the implementation cost of speculative decoding is low.
    • Does the team have the capability to modify samplers and scheduling logic?
    • Are the business requirements for structured output strict? If so, complete evaluations before deciding to launch.
    • Can the team accept uncertainty regarding quality and ecosystem maturity?

    If the goal is stability and fast time-to-market, choose the mature autoregressive acceleration solutions. If the goal is maximum throughput and the team possesses engineering transformation capabilities, pilot the diffusion-based solution in a test environment.

    6. Summary and Outlook

    Both MTP and speculative decoding accelerate within the autoregressive paradigm. The former enhances the model at the training stage, while the latter uses drafting and verification at the inference stage. Diffusion generation rewrites the generation process, trading parallel denoising for higher throughput potential, at the cost of uncertainty in maturity and compatibility.

    Looking at trends, as discrete diffusion training technology advances and inference frameworks gradually provide support, block-level parallel generation is expected to combine with MoE, quantization, and speculative sampling to become part of the next-generation inference stack. For developers, the most pragmatic approach at this stage is to first measure the real workloads of your business, establish an evaluation baseline, and then compare the effects of the two paths on a small scale in a test environment.