Boosting LLM Inference Up to 4x Without New Hardware: How Draft Models Accelerate Local Decoding
This article explains how speculative decoding uses a small draft model to accelerate large language model (LLM) inference without changing hardware or quantizing the original model. It covers the memory-bandwidth bottleneck in the decode phase, the core workflow of speculative decoding, key factors affecting acceptance rate, practical engineering considerations for deployment, and how to evaluate real-world speedups.
Large language models (LLMs) are notoriously slow during token-by-token generation, even on high-end GPUs. A recent live demo showed an intriguing result: by pairing the target LLM with a tiny “draft model,” single-request generation speed increased nearly 4x, and even under heavy concurrent load, throughput roughly doubled. No GPU upgrade, no further quantization—the only change was how tokens were produced. This technique is called speculative decoding, and it has become a standard feature in mainstream inference frameworks.
Why LLMs Are “Memory-Bound” During Generation
To understand speculative decoding, we first need to see where the real bottleneck lies. LLM inference typically runs in two phases:
- Prefill phase: The model processes the entire input prompt in parallel, computes attention, and builds the KV cache. This phase handles many tokens at once, is compute-intensive, and is usually fast.
- Decode phase: The model generates one token at a time. Each step requires reading the full model weights and the existing KV cache from GPU memory, computing the next token, and writing new key-value data back to the cache. Then the process repeats for the next token.
For a model with tens or hundreds of gigabytes of weights, generating a single token means moving that much data from memory to compute units. At this point, raw compute power is no longer the limiting factor—memory bandwidth and data transfer speed cap the generation rate. The GPU is severely underutilized, waiting for data rather than computing. This is a classic memory-bound scenario.
The key insight: if moving the full weight set once is unavoidable for each token, why not use that trip to produce multiple tokens? That is exactly what speculative decoding does.
How Speculative Decoding Works: Small Model Drafts, Big Model Verifies
The idea is straightforward: let a small, fast draft model predict several likely tokens, and let the large target model verify them all in one pass.
The workflow has three steps:
- Draft generation: The draft model autoregressively generates a sequence of candidate tokens at very low cost. For example, given “The cat,” it might predict “sat on my lap.”
- Parallel verification: The target model performs a single forward pass over the entire candidate sequence, obtaining probability distributions for each position and checking whether each draft token matches its own judgment.
- Acceptance and correction: Suppose the first two tokens match the target model’s distribution—they are accepted. The third token is rejected, and all subsequent candidates are discarded. The target model generates a corrective token at that position, and the draft model resumes from the new position.
Crucially, verifying a batch of tokens costs the same as generating one token for the target model—both involve the same forward pass and the same memory traffic. What previously took the target model three or four sequential steps can now be compressed into a single verification step. Because the draft model is tiny (often a fraction of the target model’s size), its generation cost is negligible compared to repeatedly moving the full weights of the large model.
It is worth noting that with a strict rejection sampling algorithm, speculative decoding guarantees the final output distribution is identical to the target model’s direct generation—the speedup does not sacrifice output quality, unlike quantization or pruning.
Longer Drafts Don’t Always Mean Faster
Speculative decoding may look like a “free lunch,” but the actual speedup hinges on one critical metric: average acceptance length—the number of draft tokens the target model accepts per round.
Consider a draft model predicting 4 tokens:
- If 3 are accepted, one forward pass of the target model advances 3 positions—a significant win.
- If the draft frequently guesses wrong, the target model spends time rejecting and correcting, and the overhead of drafting and verification becomes a net loss—overall speed may drop below no-acceleration.
Three factors influence the acceptance length:
- Distribution similarity between draft and target models: The closer their output distributions, the higher the acceptance rate. Ideally, the draft model shares the same architecture and vocabulary, or is distilled from the target model.
- Task type: Structured tasks like code completion, templated text, or translation naturally yield higher acceptance rates. Open-ended creative writing or heavy reasoning tasks are harder for a small model to predict, reducing the benefit.
- Candidate length: Too few draft tokens limit the per-round gain; too many increase verification cost and wasted work when rejected. In practice, 3–8 tokens work well, and the length can be dynamically adjusted based on historical acceptance rates.
Practical Engineering Considerations
Deploying speculative decoding in real systems requires attention to several points:
1. Draft model selection. Prefer a lightweight model with the same vocabulary and similar architecture as the target model. If no suitable small model exists, consider distilling the target model or using the target model’s own shallow layers as a “self-speculative” draft, avoiding an extra model file.
2. Memory overhead trade-off. The draft model, although small, still consumes GPU memory and maintains its own KV cache. In tight local deployment scenarios, evaluate whether this overhead is worth it. If you are already forced to use aggressive quantization due to memory limits, adding a draft model may be counterproductive.
3. Throughput behavior under concurrency. For a single request, speculative decoding can cut latency by nearly 4x. Under high concurrency, the GPU is already busy with multiple requests, alleviating the bandwidth bottleneck, so the speedup typically settles at around 2x or lower. Batch scheduling and speculative decoding must be designed together—for example, dynamically enabling or disabling the draft mechanism based on load.
4. Inference framework integration. Most mainstream inference frameworks now support speculative decoding. Enabling it usually requires specifying the draft model path and candidate length in startup parameters. When deploying in the cloud, integrate with container orchestration for auto-scaling and use monitoring and alerts to track acceptance rate, time-to-first-token, and overall throughput.
5. Evaluation methodology. Use real traffic for A/B testing. Monitor three metrics: average acceptance length, end-to-end latency (P50/P99), and throughput per unit time. Speculative decoding is only a net benefit when the acceptance rate is high enough—generally when the average acceptance length exceeds 2.
Conclusion
Speculative decoding is elegant because it does not change the model itself—it reorganizes how computation is executed. It trades cheap predictions from a small model for parallel verification by an expensive model, freeing the decode phase from serial, memory-bandwidth-bound token generation. As memory bandwidth grows much slower than compute capacity, such “compute-for-bandwidth” strategies will only become more important.
For developers deploying LLMs locally or in the cloud, mastering the key variables—average acceptance length, draft model selection, and concurrency tuning—can improve inference efficiency by an order of magnitude without increasing hardware budget.
