Speculative Decoding for LLM Inference Acceleration: A Deep Dive into Draft Model Architectures
Speculative decoding accelerates autoregressive LLM inference by using a cheap draft model to propose candidate tokens and the main model to verify them in parallel. This article explains the three-stage workflow, then compares two draft architectures: an embedded MTP-style module jointly trained with the main model, and an independent lightweight draft model post-trained after the main model is frozen, such as Eagle-family designs that concatenate multi-depth features. It analyzes the trade-offs among modeling capacity, draft latency, acceptance rate, and serial draft steps, and offers practical guidance for deployment selection.
1. Fundamentals of Speculative Decoding
The bottleneck in autoregressive inference for large models is that generating each token requires a full forward pass through the main model, while single-step computation leaves much of the GPU’s parallel capacity underutilized. Speculative decoding uses this idle compute: a lower-cost Draft Model quickly produces several candidate tokens, and then the Main Model (Target Model) verifies these candidates in parallel in a single pass.
The overall workflow can be summarized in three steps:
- Draft stage: The Draft Model autoregressively generates k draft tokens quickly.
- Verification stage: The Main Model concatenates the draft tokens with the context into one forward pass and outputs the probability distribution for each position in parallel.
- Acceptance/rollback stage: Positions are compared one by one according to an acceptance criterion. Accepted tokens are adopted directly. At the first rejected position, the Main Model resamples and corrects it, which also naturally produces a new regular token.
Because verification is a batched forward pass, its latency is close to generating a single token. As long as draft acceptance is not too low, multiple tokens can be produced per round, yielding several-fold end-to-end throughput improvement without theoretical loss of output-distribution correctness.
2. Scheme 1: Embedded Draft Module Jointly Trained with the Main Model
A representative approach in this category follows the Multi-Token Prediction (MTP) idea: draft capability is an auxiliary module of the main model and is jointly trained with the main model during pretraining.
2.1 Architecture Characteristics
- Source: Semantic representations are extracted from the final hidden layer of the Main Model. After projection and additive mixing with token embeddings, they are fed into a lightweight but structurally complete decoding module, which may be isomorphic to the main model, such as a full Block including expert networks and attention.
- Training method: The module is jointly trained with the Main Model and shares the vocabulary and semantic space, so the draft and main distributions are naturally aligned and acceptance rates are usually high.
- Positioning: It is an embedded accessory of the main model, not a standalone model.
2.2 Inference Flow
Taking a 61-layer main model as an example, a single inference round can be represented as:
Main Model (layers 1–61) → outputs a regular token + final-layer hidden stateMTP Module (layer-62 equivalent) → quickly predicts a draft token based on the hidden stateMain Model verifies the draft token in parallel → multiple tokens produced per round
2.3 Advantages and Costs
Because the draft module is highly consistent with the main distribution, single-step draft quality is good and acceptance is high. The problem is that this module is not cheap: it carries a complete heavy structure, and its parameter count can account for 1%–2% of the main model, so draft inference latency grows linearly with module size. To control per-step latency, practice often requires making the module small and shallow and predicting only one draft token serially per round—so-called “single-step MTP”—which greatly compresses the multi-token benefit.
This reveals a fundamental conflict: the modeling capacity of the draft model and draft inference latency are difficult to reconcile, and autoregressive dependency (each position takes previously sampled tokens as input) further amplifies the accumulation of serial latency.
3. Scheme 2: Lightweight Draft Model Trained Independently After the Main Model Is Frozen
Another technical route makes the Draft Model completely independent of the Main Model. After the main model weights are frozen, a small draft network is trained separately. Common industry implementations, such as Eagle-family approaches known for multi-layer feature concatenation, represent typical designs in this class.
3.1 Architecture Characteristics
- Feature source: Instead of relying only on the final hidden state, semantic features are extracted from multiple depths of the main model (e.g., several shallow and deep layers) and fused by concatenation rather than additive mixing, thereby retaining the feature-space information of the embedding layer and each layer’s hidden states.
- Model scale: The draft network can be compressed to an extremely lightweight level, e.g., a single-layer decoding structure with fewer than 100 million parameters, about 0.1% of the main model’s parameter count.
- Training method: Fully post-hoc training. The main model requires no changes and no joint training, lowering the barrier to adoption.
3.2 Inference Flow and Key Trade-offs
Because the draft model is light enough, per-step latency is extremely low. Therefore, even with serial multi-step draft generation (e.g., seven consecutive draft tokens), total draft latency may still be lower than the time a heavy embedded module takes to generate one token. This directly changes the shape of the trade-off curve:
| Dimension | Embedded joint-training scheme | Independent lightweight scheme |
|---|---|---|
| Distribution alignment | Joint training, high acceptance rate | Must be approximated by post-training; acceptance depends on training quality |
| Per-step draft cost | High (heavy Block) | Extremely low (lightweight single layer) |
| Serial steps | Usually 1 step | Can reach multiple steps (e.g., 5–7) |
| Expected output per round | 1–2 tokens | Higher theoretical ceiling |
| Deployment flexibility | Requires the main model to provide a matching module | Can be added independently after the main model is frozen |
3.3 Acceptance Rate vs. Step Count
It is important to note that more draft steps are not always better. Let the single-step acceptance rate be p; the probability that n serial steps all pass is p^n. Exponential decay means an overly long draft sequence causes substantial rollback waste. The independent lightweight approach exchanges extremely low per-step cost for more attempts, and its effectiveness depends heavily on high acceptance brought by draft model training quality. The embedded approach exchanges high acceptance for fewer but more stable outputs. Their performance under real workloads still needs comprehensive evaluation with batch size, memory bandwidth, request concurrency, and other factors.
4. Engineering Deployment Recommendations
- If the main model already has a built-in draft module: Prefer the embedded scheme. It is low-cost and simple to integrate, making it suitable as a default acceleration method.
- If the main model is frozen and cannot be retrained: The independent draft scheme is the only option. Evaluate the data and compute investment required for post-training.
- Focus on batching efficiency in the verification stage: Verification gains come from parallel forward passes. KV Cache management, memory layout, and operator fusion significantly affect the final speedup.
- Establish acceptance-rate monitoring: Continuously track draft acceptance rate and average tokens produced per round in production as a basis for tuning draft steps and model scale.
- Cloud practice note: In hosted inference services, combine elastic container platforms, GPU resource scheduling, and monitoring/alerting to dynamically enable or disable speculative decoding at different traffic levels, so that verification overhead does not drag down latency in low-concurrency scenarios.
5. Conclusion
The essence of speculative decoding is to reconstruct autoregressive generation with “cheap guessing + expensive verification.” The embedded joint-training route trades distribution alignment for high acceptance but is constrained by the latency floor of the draft module. The independent lightweight route uses multi-depth feature fusion and extreme compression to push draft latency down to a level where multiple serial steps are feasible, significantly raising the per-round output ceiling. Neither route is absolutely superior. Understanding the underlying triangle of modeling capacity, inference latency, and acceptance rate is the key to making good inference-acceleration choices.
