Speculative Decoding
Speculative decoding is an inference speed-up technique for large language models. A small, fast draft model proposes several next tokens, and the large target model checks them all in one parallel pass, keeping every token up to the first one it rejects.[1] From that point the target model supplies a replacement token under its decoding rule and the cycle repeats. A special sampling rule guarantees that the output follows the same probability distribution as the target model running alone, allowing speed gains without changing the intended sampling distribution, subject to numerical precision.[1][8] Google researchers published the method in 2022, and DeepMind described the same idea as "speculative sampling" in early 2023.[1][2]
What does Speculative Decoding mean in simple terms?
Think of it as "fast first draft, careful single review." A small, quick model writes the next few words ahead of time, and the large, accurate model checks them all at once. Tokens accepted by the target model’s verification rule are kept; generation resumes from the first rejected position. Normally a large model produces text one token at a time, re-reading all of its weights for every token, so checking several tokens in one pass saves time.[8] The answer stays statistically the same as the large model working alone; actual speed gains depend on the workload.[1] If the draft model guesses wrong too often, though, the extra checking eats up the gain.[5][6]
How can Speculative Decoding be explained with an analogy?
A junior colleague drafts a document quickly, and the manager reviews it in one sitting, approving everything up to the first mistake and rewriting from there.
Where is Speculative Decoding used?
Google — The original paper and use in Google products
Google researchers introduced speculative decoding in 2022.[1] A smaller approximation model drafts tokens and the large model verifies them, so existing models can be accelerated without retraining or architecture changes.[1] On T5-XXL, the paper reported a 2–3x speed-up over the standard T5X implementation with the output distribution preserved.[1] Google later said it applies the method in several products, including AI Overviews in Google Search.[8]
Result: 2–3x faster inference on T5-XXL versus the standard T5X implementation, with the output distribution preserved.[1]
DeepMind — Speeding up the 70B-parameter Chinchilla
In 2023 DeepMind described the same idea as "speculative sampling."[2] A draft model proposes short continuations, and a modified rejection sampling scheme preserves the target model's distribution within hardware numerics.[2] The team benchmarked it on Chinchilla, a 70-billion-parameter model, in a distributed setup, without changing the model itself.[2]
Result: 2–2.5x decoding speed-up on Chinchilla 70B without compromising sample quality.[2]
NVIDIA — Serving Llama 3.1 405B with TensorRT-LLM
In December 2024 NVIDIA published throughput results for draft-target speculative decoding in TensorRT-LLM.[4] The target model, Llama 3.1 405B, ran on four H200 GPUs, with Llama 3.2 1B, Llama 3.2 3B or Llama 3.1 8B as the draft model.[4] Without a draft model, output was 33.46 tokens per second (NVIDIA internal measurement, 2024-11-18, TensorRT-LLM 0.15.0.dev).[4]
Result: 120.75 tokens per second with the 3B draft model, a 3.61x throughput gain over 33.46 tokens per second without a draft model.[4]
NAVER Cloud — Applying it to HyperCLOVA X in production
In August 2025 NAVER Cloud's CLOVA team described how it applied speculative decoding to its HyperCLOVA X large language model.[5] The team found that the best speculation length (how many tokens to draft at once) changes with server load and input length.[5] It therefore adjusted the length dynamically instead of fixing it: drafting more when load is light and inputs are short, and fewer under heavy load or with long inputs.[5]
Result: In NAVER's experiments, dynamic speculation length outperformed fixed lengths on both speed and reliability (no single speed-up figure published).[5]
Try it today
- Open the vLLM speculative decoding docs and find the setting that names a draft model and the number of speculative tokens.[7]
- Generate responses to the same prompts with and without speculative decoding, and measure the response time.
- Compare the outputs using greedy decoding (temperature 0). Small differences can still appear because of floating-point precision and batch size, so do not expect a perfect match in every run.[7]
- Try a smaller and a larger draft model and record speed and acceptance rate in a table.[6]
- Check the conditions behind NVIDIA's 3.61x figure (GPUs, models, software version and measurement date) before applying it to your own setup.[4]
Limits and direction
The benefit depends on how often the target model accepts the draft model's tokens (the acceptance rate). If drafts are often rejected, verification work grows and the speed-up shrinks or disappears.[5][6] In SqueezeBits' tests with a Llama 3.1 70B target, raising the draft model from 0.5B to 8B parameters increased the acceptance rate from 53.5% to 76.5%, yet overall performance fell because the larger draft model was slower.[6] Longer inputs lowered the acceptance rate (from 54.0% to 50.9% when input grew from 1K to 2K tokens).[6] Running the draft model also takes GPU memory away from the target model's KV cache.[6]
Batch size matters too. In the same tests, speculative decoding helped at low concurrency but underperformed standard decoding at high concurrency, and TensorRT-LLM 0.14.0 supported it only at batch size 1 at the time.[6] vLLM likewise positions it for reducing per-token latency under low-to-medium load.[7] Measure with your real traffic, and consider turning it off when load is high.[6][7]
The technique keeps evolving. Medusa (2024) drops the separate draft model and adds extra prediction heads to the main model.[3] Serving frameworks now offer many variants, such as EAGLE, multi-token prediction (MTP), n-gram and suffix decoding, as well as dynamic speculation.[7] Google reports wide industry adoption, because the method reduces latency and serving cost without changing output quality.[8]
Which sources explain Speculative Decoding?
- arXiv — Leviathan, Kalman, Matias (Google), Fast Inference from Transformers via Speculative Decoding (2022-11-30) — https://arxiv.org/abs/2211.17192
- arXiv — Chen et al. (DeepMind), Accelerating Large Language Model Decoding with Speculative Sampling (2023-02-02) — https://arxiv.org/abs/2302.01318
- arXiv — Cai et al., Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads (2024-01-19) — https://arxiv.org/abs/2401.10774
- NVIDIA Technical Blog — TensorRT-LLM Speculative Decoding Boosts Inference Throughput by up to 3.6x (2024-12-02) — https://developer.nvidia.com/blog/tensorrt-llm-speculative-decoding-boosts-inference-throughput-by-up-to-3-6x/
- NAVER Cloud CLOVA Tech Blog — Breaking the speed barrier: How we implemented speculative decoding for HyperCLOVA X (2025-08-27) — https://clova.ai/en/tech-blog/breaking-the-speed-barrier-how-we-implemented-speculative-decoding-for-hyperclova-x
- SqueezeBits Tech Blog — [vLLM vs TensorRT-LLM] #11. Speculative Decoding (2024-12-09) — https://blog.squeezebits.com/vllm-vs-tensorrtllm-11-speculative-decoding-37301
- vLLM Documentation — Speculative Decoding (latest docs, accessed 2026-10-13) — https://docs.vllm.ai/en/latest/features/speculative_decoding/
- Google Research Blog — Looking back at speculative decoding (2024-12-06) — https://research.google/blog/looking-back-at-speculative-decoding/
Tell us what you think
Your feedback helps us improve the content.