What is speculative decoding? How LLMs write two or three tokens per step
Speculative decoding lets a small draft model guess tokens that the big model checks in one pass. How it works, how fast it is and when it helps on a GPU server.

Speculative decoding is a way to make a large language model answer faster without changing what it writes. A small, cheap "draft" model guesses the next few tokens, and the large model checks all of them in a single pass. Every guess it agrees with is kept, the first wrong one is replaced, and the round starts again. Because checking several tokens costs about as much as writing one, the model often moves two or three tokens forward per step instead of one. The original papers report 2 to 3 times faster decoding with identical output.
Which method for whom
- You serve a model that ships with its own prediction heads (DeepSeek-V3 and similar) → MTP. The model drafts for itself, so there is nothing extra to load. vLLM's documentation recommends it when the model has native MTP support.
- A general chat or agent workload on Llama-class models → EAGLE. A light draft head trained on the big model's features. The vLLM documentation describes it as a strong general-purpose choice.
- Answers that repeat the prompt (code edits, document extraction, RAG with quotes) → n-gram lookup. It copies candidate tokens from the prompt itself, needs no draft model and costs almost nothing.
- A smaller model from the same family is available → a classic draft model, for example an 8B model drafting for a 70B one. It must use the same tokenizer.
- Many users at once and the GPUs are already busy → test before you switch it on. The gain is largest for a few users who want fast answers, and it can shrink when the server is full.
- A team that wants a fast private 70B model in the EU → enough GPUs for the model, the cache and the draft. Our server in Sofia has eight RTX PRO 6000 Blackwell Server Edition cards with 768 GB of GPU memory in total. It rents from $1.80 per GPU-hour, or about $10,510 a month for the whole machine. It is rented into early 2027 and we take reservations for the period after. See the server.
Why normal decoding is slow
A language model writes one token at a time. To produce token number 100, it needs token 99, so the steps cannot run side by side. Leviathan, Kalman and Matias put it plainly in their 2022 paper: decoding K tokens takes K serial runs of the model.
Each of those runs reads all the model weights and the KV cache from GPU memory, but does very little arithmetic with them. During decoding the GPU mostly waits for memory, not for compute. That spare compute is what speculative decoding puts to work.
How speculative decoding works
One round looks like this:
- Draft. A cheap method proposes the next few tokens, say four.
- Verify. The large model reads the prompt plus all four guesses in one forward pass. This gives its own prediction at every position at once, just as it does when it reads a prompt.
- Accept. Going left to right, each guess the large model agrees with is kept. At the first disagreement the large model's own token is used and the rest of the draft is thrown away.
- Repeat from the new position.
Even in the worst case, when every guess is wrong, the round still produces one correct token, the same as normal decoding. When the draft is good, one pass of the big model produces several tokens.
The important part is the acceptance rule. Leviathan et al. at Google and, independently, Chen et al. at DeepMind showed a sampling scheme that keeps the large model's output distribution exactly as it was, also with temperature above zero. The draft only changes the speed, not the answers.
How much faster it is
The speedup depends on how often the draft is right. Published numbers from the authors:
| Method and source | Model | Reported speedup |
|---|---|---|
| Speculative decoding, Leviathan et al. (Google, 2022) | T5-XXL | 2-3x, identical outputs |
| Speculative sampling, Chen et al. (DeepMind, 2023) | Chinchilla 70B | 2-2.5x in a distributed setup |
| EAGLE, Li et al. (2024) | LLaMA2-Chat 70B | 2.7-3.5x lower latency, about 2x throughput |
| Multi-token prediction, DeepSeek-V3 report (2024) | DeepSeek-V3 | 85-90% acceptance of the second token, about 1.8x tokens per second |
These are the authors' own measurements on their own hardware and prompts. Your gain will depend on the model, the task and the load. Predictable text such as code, JSON and quoted passages accepts more guesses than free creative writing.
The four kinds of draft
A separate draft model. The classic setup: a small model from the same family proposes tokens for the big one. It is easy to try, but the draft takes its own GPU memory and its own KV cache.
EAGLE. Instead of a full second model, EAGLE trains one light layer that predicts the big model's next internal features and turns them into tokens. The paper reports training it for a 70B model in one to two days on four A100 GPUs, on no more than 70,000 dialogues. Ready-made EAGLE heads exist for many popular open models.
Multi-token prediction (MTP). Some models are trained to predict more than one token ahead. DeepSeek-V3 predicts the next two tokens, and the extra head can be used as a built-in draft at serving time.
N-gram lookup. The engine searches the prompt for the last few tokens and proposes what followed them there. It costs almost nothing and works well when the answer repeats parts of the input.
How to turn it on
vLLM and SGLang both support speculative decoding. In vLLM it is set with speculative_config, where you choose the method (for example ngram, eagle3, mtp or draft_model) and num_speculative_tokens, the number of guesses per step. Method names have changed between versions, so check the documentation for the version you run. For the engines themselves, see vLLM vs Ollama vs SGLang.
A sensible way to test:
- Measure tokens per second and time to first token on your real prompts without it.
- Turn on one method with two to four speculative tokens.
- Watch the acceptance rate the engine reports. If few guesses are accepted, the draft costs more than it saves.
- Repeat the test at your normal number of concurrent users, not only with one.
What it means for a GPU server
Speculative decoding trades spare compute for speed. With one or a few users the GPUs have plenty of spare compute, so the gain is real. With many users in one batch the GPUs are already doing useful work on every step, and the extra verification work competes with it. That is why it suits a private assistant or an agent that needs fast replies more than a server packed with hundreds of chats.
Plan memory for it too: a draft model or EAGLE head needs its own weights and cache next to the main model. On a server with eight 96 GB cards that is rarely the limit for a 70B model, but on a single card it can be. For memory planning, see how much VRAM an LLM needs. If you want to run open models with these settings on hardware you control in the EU, see private LLM hosting.
Questions
Does speculative decoding change the model's answers? No, not with the standard acceptance rule. The papers by Leviathan et al. and Chen et al. show that the output distribution stays the same as the large model's own. Small differences can still appear from floating-point numerics, as with any change in batching.
Does it need a second GPU? No. The draft usually runs on the same GPUs as the main model. It does need some extra memory for its weights and cache, except for n-gram lookup.
Can it slow things down? Yes. If the draft is often wrong, or the server is already full of users, the extra work can cost more than it saves. Measure with and without it.
Is it the same as quantization? No. Quantization, such as NVFP4, makes each step cheaper by storing numbers with fewer bits. Speculative decoding produces more tokens per step. The two can be used together.
Sources
- Leviathan, Kalman, Matias, Fast Inference from Transformers via Speculative Decoding, ICML 2023, arXiv November 2022: K tokens need K serial runs; 2-3x on T5-XXL with identical outputs. Checked 22 November 2026.
- Chen et al. (DeepMind), Accelerating Large Language Model Decoding with Speculative Sampling, arXiv 2 February 2023: 2-2.5x on Chinchilla 70B. Checked 22 November 2026.
- Li et al., EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty, arXiv January 2024: 2.7-3.5x latency speedup and about 2x throughput on LLaMA2-Chat 70B; training in 1-2 days on 4x A100. Checked 22 November 2026.
- DeepSeek-AI, DeepSeek-V3 Technical Report, arXiv December 2024: MTP, 85-90% second-token acceptance, about 1.8x TPS. Checked 22 November 2026.
- vLLM documentation, Speculative Decoding:
speculative_config, methods andnum_speculative_tokens. Checked 22 November 2026. - NVIDIA, RTX PRO 6000 Blackwell Server Edition: 96 GB GDDR7 per card. Checked 22 November 2026.


