Three Approaches to Accelerating LLM Inference: Speculative Decoding, Quantization-Aware Training, and Discrete Diffusion

    This article examines three distinct technical paradigms for accelerating large language model (LLM) inference: speculative decoding and multi-token prediction (MTP), quantization-aware training (QAT), and emerging discrete diffusion-based text generation models. It explains the inherent bottlenecks of traditional autoregressive generation, analyzes the mechanisms, advantages, and limitations of each optimization approach, and provides a comparative framework to guide engineering decisions. The article concludes with practical selection advice based on production requirements, hardware constraints, and ecosystem maturity.

    Baseline: Autoregressive Generation and Its Inherent Bottlenecks

    Traditional large language models generate text in an autoregressive manner. Starting from the first token, the model strictly follows a left-to-right sequence, predicting the next token based on the existing context, then appending the result to the context to continue generating. This approach offers stable output quality and a mature ecosystem, but it suffers from two fundamental bottlenecks:

    • Serial dependency: The Nth token cannot be computed until the previous N–1 tokens are fully generated, making parallelization impossible.
    • Memory bandwidth constraints: During the decoding phase, generating each single token requires loading the entire model weights into memory. This leads to very low compute utilization, where throughput is limited by memory bandwidth rather than raw compute power.

    All optimization strategies discussed below essentially aim to alleviate these two bottlenecks at different levels.

    MTP and Speculative Decoding: Adding a Draft Accelerator to Autoregressive Models

    Multi-Token Prediction (MTP), along with its inference-side application known as Speculative Decoding, does not change the fundamental “write from left to right” logic of autoregressive generation. Instead, it introduces a “guess-then-verify” mechanism:

    1. The model (or a lightweight draft head) predicts multiple candidate tokens in a single forward pass — for example, 4 or 8 tokens at once.
    2. The main model verifies these candidates in parallel.
    3. Correctly guessed tokens are accepted directly; failure points roll back, and generation resumes from the error position.

    The defining characteristic of this approach is that the final output distribution remains strictly identical to the original autoregressive model. It is lossless in quality and offers high compatibility, allowing seamless integration into existing inference frameworks. However, its limitation is evident — it still cannot escape the per-token sequential dependency. The acceleration ratio depends heavily on the draft acceptance rate, typically ranging from 1.5× to 3×, with no dramatic upper bound.

    QAT: Compressing Cost at the Precision Dimension

    Quantization-Aware Training (QAT) addresses a different optimization dimension. It simulates the numerical errors introduced by low-precision computation (such as INT8 or INT4) during the training phase, allowing model weights to adapt to quantized representations. At inference time, the model can then run directly at low precision, yielding several benefits:

    • Significantly reduced memory footprint, enabling larger models to fit on the same hardware.
    • Lower memory bandwidth requirements, indirectly alleviating the bandwidth bottleneck in the decoding phase.
    • Full transparency to existing autoregressive inference pipelines, requiring minimal deployment changes.

    It is important to emphasize that QAT does not conflict with MTP or diffusion-based generation. These three approaches represent orthogonal optimization dimensions: QAT compresses the computation cost per token, MTP reduces the number of sequential steps required, and diffusion reconstructs the organizational pattern of generation itself. In practical engineering, QAT is commonly applied as a fundamental optimization layer that can be stacked with other techniques.

    Discrete Diffusion Generation: Shifting from Word-by-Word Writing to Whole-Passage Refinement

    Diffusion language models borrow concepts from image diffusion models, transforming generation from “token-by-token sequential writing” into “iterative denoising of an entire text block.” Taking a recently publicized discrete diffusion text model as an example, the typical process is as follows:

    • The model operates on a fixed-length canvas (e.g., 256 tokens) as its processing unit.
    • The canvas is initially filled with noise or placeholder tokens.
    • The model denoises the entire block in parallel, with multiple rounds of refinement — first establishing the gist of the passage, then generating key sentences, subsequently fixing grammar, adding details, and finally improving overall coherence.
    • Canvas blocks are connected in a block-autoregressive manner, maintaining contextual consistency for longer texts.

    This process closely parallels image generation — starting with a blurry shape, then clarifying outlines, filling in details, and ultimately producing a complete image — except the output objects are discrete tokens rather than pixels.

    Advantages: Because tokens within a block are updated in parallel, the decoding bottleneck shifts from memory bandwidth to compute. This effectively leverages the massive parallel compute power of modern GPUs. On hardware where compute is abundant but bandwidth is constrained, token throughput can yield several-fold improvements, with greater gains at higher intra-block parallelism levels.

    Limitations: As a new paradigm, its generation quality and stability still require validation across a wider range of tasks. Engineering complexities arise in sampling schedules, inter-block transitions, and long-range coherence management. The maturity of inference frameworks, fine-tuning tools, and deployment ecosystems remains far behind that of the autoregressive paradigm.

    Relationship Between the Three Approaches and Selection Recommendations

    To summarize the relationships with an analogy: MTP is “keeping the same writing method, just writing faster”; QAT is “making each writing action more resource-efficient”; and discrete diffusion is “adopting a completely different writing approach.” The comparison is as follows:

    Dimension MTP / Speculative Decoding QAT Discrete Diffusion
    Generation Paradigm Autoregressive (unchanged) Autoregressive (unchanged) Block-level parallel denoising
    Quality Impact Theoretically lossless Slight, controlled loss New paradigm, yet to be fully validated
    Source of Acceleration Reduces sequential steps Lowers bandwidth and compute costs Increased parallelism
    Ecosystem Compatibility High High Relatively low
    Stackability Can be combined with QAT Can combine with most methods Independent paradigm

    Engineering recommendations: For production systems that prioritize stability and require rapid deployment, QAT combined with speculative decoding is currently the most reliable option. For scenarios with abundant compute, clear bandwidth bottlenecks, and tolerance for new-stack risks — such as batch offline generation or long-document drafting — piloting diffusion-style generation is worth consideration. When deploying in the cloud, a general-purpose container platform paired with monitoring and alerting capabilities can support building elastic inference services, while object storage can manage model artifacts, allowing flexible switching and gray validation between different paradigms.

    Conclusion

    Optimization of large model inference is evolving from “single-dimensional techniques” toward a “multi-paradigm coexistence” landscape. Understanding the principled boundaries and applicable conditions of MTP, QAT, and diffusion generation matters more than chasing any specific model. Paradigms will iterate, but the three underlying trade-off principles — trading bandwidth for compute, serialization for parallelism, and precision for cost — will remain effective over the long term.