Speculative Sampling for LLM Inference Acceleration: MTP vs. Independent Draft Models

    This article explains why autoregressive LLM decoding is often memory-bandwidth bound and how speculative sampling can produce multiple tokens per verification step. It compares two main approaches—multi-token prediction (MTP) heads trained jointly with the main model and standalone lightweight draft models trained after the main model is frozen—and covers the decoding loop, architectural trade-offs, and engineering considerations for deployment.

    1. Background: Why LLM Inference Needs to Produce Multiple Tokens at Once

    Autoregressive large language model decoding is typically serial: each forward pass produces only one token, and the next token depends on the result of the previous step. In memory-bandwidth-constrained scenarios, GPU compute is often heavily underutilized—model weights are loaded repeatedly, but only one token is computed. This memory-bound characteristic is exactly where various inference acceleration approaches find their opportunity.

    In recent years, a class of acceleration paradigms known as speculative sampling has emerged. Its core idea can be summarized as follows: use a very low-cost draft mechanism to guess multiple future tokens first, and then let the main model verify these guesses in parallel in a single pass. Because verifying multiple tokens costs roughly the same as generating a single token with the main model, overall throughput can improve by several times as long as the draft acceptance rate is high enough. Recently, research teams have also integrated this idea into end-to-end inference acceleration solutions, attracting broad discussion in the community. To evaluate such solutions objectively, it is necessary to first understand the two mainstream technical routes behind them.

    2. Route 1: MTP—Multi-Token Prediction Heads Trained Jointly with the Main Model

    Multi-token prediction (MTP) is an approach that internalizes the ability to predict multiple future tokens into the model itself. A typical implementation works as follows:

    1. Shared backbone representations: Lightweight prediction modules, usually single-layer or few-layer Transformer heads, are attached to the main model. These modules share the hidden representations of the main model’s backbone network.
    2. Joint training: The MTP heads are optimized together with the main model during pre-training or post-training. The learning objective is to predict the tokens at positions N+1, N+2, and N+3 given the preceding context.
    3. Drafting at inference time: During decoding, these prediction heads first quickly produce several candidate tokens, which are then verified in parallel by the main model.

    Advantages: The draft is naturally aligned with the main model. The vocabulary, tokenization, and representation space are fully consistent, and there is no need to maintain a second model. The acceptance rate is usually reliable.

    Limitations: MTP capability must be “built into” the model during training. If the main model has already been finalized and released without MTP heads, it is difficult to add them afterward. In addition, the prediction heads are tightly coupled with the main model, making upgrades and iteration less flexible.

    3. Route 2: Standalone Lightweight Draft Models—A Decoupled Post-Training Option

    Unlike MTP, the other route uses a fully independent lightweight draft model. Its architectural characteristics are:

    • The draft model is a much smaller independent network, for example below a few billion parameters, with its own backbone.
    • It receives hidden representations or context from the main model as input and learns to mimic the main model’s next-token distribution.
    • The key difference is training timing: The draft model can be trained separately after the main model is completely frozen, without changing any weights of the main model.

    This characteristic brings direct engineering value:

    1. Existing models can benefit: Any main model that has already been trained and has no built-in speculative capability can gain acceleration by training an additional draft model, greatly reducing retrofit costs.
    2. Low training cost: The draft model is small and can be trained with the main model’s output distribution as a distillation target under relatively limited compute.
    3. Independent iteration: If acceptance rates are low on certain task types, targeted training data can be added and the draft model can be updated while the main model remains unchanged.

    4. Decoding Loop: How a Single Forward Pass Yields Multiple Tokens

    Taking a combination of a “medium-sized main model + standalone draft model” as an example, a complete speculative decoding loop usually includes the following steps:

    1. 1. Draft phase (low cost, multiple steps possible):
    2. The draft model autoregressively generates K candidate tokens
    3. based on the current context
    4. (K commonly ranges from 2 to 8, balancing acceptance rate and benefit)
    5. 2. Verification phase (single main-model forward pass):
    6. Concatenate [current token + K candidate tokens] into one sequence,
    7. and run one parallel forward pass through the main model to obtain
    8. the "true" probability distribution at each position
    9. 3. Accept/reject decision:
    10. Compare the draft distribution with the main model distribution
    11. position by position, and apply rejection-sampling rules to decide
    12. how many tokens to accept;
    13. starting from the first rejected position, resample a token from
    14. the main model distribution as a correction
    15. 4. Loop advancement:
    16. Each iteration produces at least 1 token,
    17. and in the best case produces K+1 tokens

    It is worth emphasizing that this verification mechanism mathematically guarantees that the final output distribution is exactly the same as decoding with the main model alone. Speculative sampling is a lossless acceleration method and does not sacrifice generation quality. This is also its core selling point compared with lossy compression methods such as quantization and distillation.

    5. Architecture Comparison: MTP vs. Standalone Draft Models

    Dimension MTP Route Standalone Draft Model Route
    Draft source Prediction heads attached to the main model Independent lightweight model
    Training timing Requires joint training with the main model Can be trained separately after the main model is frozen
    Adaptation to existing models Difficult; requires retraining the main model Friendly; add-on training is sufficient
    Deployment complexity Single-model deployment, relatively simple Requires deploying two models together
    Iteration flexibility Tightly bound to the main model Can be updated and optimized independently
    Typical acceptance rate Usually higher Depends on distillation quality and requires tuning

    From the workflow perspective, both routes share the same logic in the “verify—accept—correct” stage. The difference lies mainly in how the draft is generated. Understanding this point makes it clear why the community places high value on the property that “a draft model can still be trained after the main model is frozen”—it moves the barrier to speculative sampling from the “model design stage” to the “deployment optimization stage.”

    6. Key Engineering Considerations

    In practical deployment, the following factors directly determine the acceleration effect:

    1. Trade-off between acceptance rate and candidate length: The longer the draft model guesses, the greater the theoretical benefit, but the acceptance rate decays rapidly with position. In engineering practice, candidate length is usually adjusted dynamically according to task characteristics; tasks with strong determinism, such as code and math, can use more aggressive settings.
    2. Capability alignment of the draft model: The draft model needs to perform high-quality distillation of the main model’s output distribution. The training corpus should cover actual business scenarios; otherwise, the acceptance rate will drop noticeably.
    3. Compatibility with batching and concurrency: When speculative sampling is combined with continuous batching, scheduling logic becomes significantly more complex and requires framework-level support.
    4. Control of verification overhead: The sequence length during main-model verification increases, so targeted optimization is needed in KV cache management and kernel implementations to prevent verification costs from eroding the acceleration gains.
    5. Monitoring metrics: It is advisable to continuously collect metrics such as average accepted length, tokens produced per loop, and end-to-end tokens/s as a basis for tuning.

    7. Conclusion and Outlook

    An objective evaluation of this type of inference acceleration solution can be summarized in three points. First, speculative sampling itself is a widely validated lossless acceleration paradigm with a solid theoretical foundation. Second, the greatest value of the standalone draft model route lies in decoupling—it allows existing large models to enjoy acceleration benefits without retraining, which is significant from an engineering perspective. Third, actual gains depend heavily on draft quality and scenario matching, so systematic tuning and monitoring are required during deployment.

    For teams looking to optimize the throughput of self-hosted inference services, a recommended path is to first build a reproducible benchmark environment on a container platform, use logging and monitoring alerting to continuously track acceptance-rate metrics, and then choose the MTP or standalone draft route based on workload characteristics. As lightweight draft model training methods and inference framework scheduling capabilities continue to evolve, speculative sampling is expected to become one of the default configurations for LLM serving.