Frontier Foundry

Speculative Decoding

The Power Plant · Inference & Serving

A small model drafts tokens and the big model checks them in one pass, for faster output.

Also called: draft model, multi-token prediction, MTP, EAGLE, medusa heads. In the glossary.

Speculative Decoding is cooling this week (×0.36 against the eight weeks before). What is moving.

How it works, as a machineThe Copyist's Studio · draft blocks

Follow one draft block from the last accepted token to a longer text the target has signed, in a music copyist's studio with the composer's check desk beside it.

  1. Draft four tokens
  2. Score the whole block
  3. Count the matches
  4. Write its own token
  5. Pin the longer prefix
Play Speculative Decoding

Speculative Decoding in plain words

Speculative decoding speeds up a large model by letting a small one guess the next few tokens. The large model checks the guesses in a single pass and keeps the ones it agrees with. The output is the same as the large model's own, and arrives faster whenever the guesses are good.

An analogy

A junior clerk drafting the next lines of a letter while the senior partner reads behind. The partner approves a run of lines at a glance and rewrites from the first line that is wrong. The letter is exactly what the partner would have written, finished sooner when the junior is right.

How Speculative Decoding connects

5 typed relations in the knowledge graph

Builds on

  • Distillation: A draft model is trained from the target, which is a form of distillation.
  • KV Cache: Both models need key-value space on the GPU, so the second model has a memory cost.

Built on by

  • Inference Serving: The decode rack can have a small model guess ahead and the large one check the guesses.
  • Fast Inference: A small model drafting ahead lets one read of the weights yield several tokens.

Makes possible

  • Fast Inference: A small model drafts several tokens and the large one checks them in a single pass.

Often in the same sources

Inference Serving, Quantization, KV Cache, On-Device & Local Models, Fast Inference, Mixture of Experts

See Speculative Decoding in the knowledge graph

Who is behind Speculative Decoding

people, labs, products and models

Named in its facts

What the sources say

2 parts · 12 sources · updated 2026-11-27

Speculative decoding has a small draft model write a few tokens ahead and the large target model check them all in one pass, keeping the matching head and writing its own token at the first mismatch. It saves time only when acceptance is high; a poorly matched drafter, a busy GPU or creative output can make it slower, and the second model costs memory.

Setting room: a small model writes a block ahead

Two stations before any checking: the dial that sets how many tokens are guessed per round, and the bench where a much smaller draft model writes that block after the accepted text.

  1. The draft length dial sets how many tokens are guessed in one round, usually three to five.
  2. The draft model bench writes that many tokens ahead of the accepted text, using a model far smaller than the target.
3 to 5 tokens
How many tokens the small model drafts per cycle, as one engineer describes the usual setting Sheilah Kirui
10 to 50 times smaller
How much smaller than the target model a draft model should typically be, per one engineer Sheilah Kirui
16 GB and 2.5 GB
Weights of the baseline target model and of the draft model in one single-GPU demo, as the speaker reports Sheilah Kirui
acceptance length 5.92, 4.20x
Mean accepted tokens per round and speedup on a 4B target at temperature 1 when the block size is chosen per input, as the paper reports Hugging Face
up to 30%
Gain from a draft model trained on generic data, as a serving vendor reports (more with the customer's own data) Sujee Maniyam
  • Decoding writes an answer one token at a time because each token depends on the tokens before it; speculation puts a small model in front to guess a few ahead. Sheilah Kirui
  • The small model drafts a handful of tokens per cycle; the target model then approves or rejects them. Sheilah Kirui
  • A good draft model is far smaller than the target and shares its tokenizer, ideally from the same model family; otherwise tokens must be translated by hand. Sheilah Kirui

Proof room: the large model checks the block in one pass

The target model scores every guessed position at once, the acceptance meter keeps the matching head of the block, the target writes its own token at the first mismatch, and the longer text goes back to the drafter.

  1. The target model press scores every drafted position in one forward pass, not one pass per token.
  2. The acceptance meter counts the drafted tokens that match, up to the first one that does not.
  3. The target token desk writes the large model's own token where the first draft token was refused.
  4. The accepted prefix rack adds the matches and that token to the text; the next round drafts from the longer text.
58.2 tokens per second
Baseline speed without speculation at concurrency one in a workshop load test, as the instructors report Khaja Omer
about 16 tokens per second
Speed after a badly matched draft model was switched on, against a baseline of 58, as the instructors report Khaja Omer
700 to 240 tokens per second
Throughput at concurrency 16 before and after the mismatched drafter, as the instructors report Khaja Omer
1.6 times faster
Speedup on a structured-output task with a well-matched draft model on one GPU, as the speaker reports Sheilah Kirui
about 1.5 times
Token-generation gain a vLLM report found when the right drafter and settings were used, relayed by the instructors Khaja Omer
0.699, 0.645 and 0.277
Draft acceptance on translation, summarization and creative writing in one multi-token-prediction benchmark, as an AINews recap reports AINews
45%
Share of prompts whose output matched the plain model exactly under BF16 in an independent reproduction, as the paper reports Hugging Face
up to 95%
Acceptance rate reached with a drafter trained to maximise acceptance directly, as the paper reports Hugging Face
20% to 2x
Improvement in token acceptance from continuously retraining the drafter on live prompts and responses, as the speaker reports Philip Kiely
over 5 times
Lossless speedup for thinking models from a drafter trained on its own mistakes, as the paper reports Hugging Face
  • The large target model verifies all drafted tokens in a single forward pass, so the output stays what the target alone would give. Sheilah Kirui
  • The target model approves or rejects each drafted token, and recomputes the token itself where one is rejected. Sheilah Kirui
  • If four tokens are drafted and only the first two make sense to the target, the other two are discarded and the loop starts again from there. Khaja Omer

When it breaksA drafter that was not trained for its target made the server slower. In a workshop load test a draft model was switched on beside a 4B target. Speed at concurrency one fell from 58 to about 16 tokens per second, and at concurrency 16 from 700 to 240. The instructors traced it to a draft model not trained correctly for this target, so the target kept rejecting its tokens. Khaja Omer

Open questionIs speculative decoding worth switching on?

  • Yes: acceptance rate is everything, and newer drafters raise it, with more than three times the speed in the wild. Philip Kiely
  • Not reliably: in personal testing it was not useful, because the draft and target models are hard to align. Tanmay Sah

Sources

12 in all

More in Inference & Serving

The Power Plant: the whole area
  • Inference ServingRunning models efficiently for many users: batching, scheduling, hardware use.
  • QuantizationStoring weights in fewer bits to make models smaller and faster.
  • KV CacheMemory of past tokens' attention keys and values, the main memory cost of long contexts.
  • On-Device & Local ModelsRunning models on phones and laptops instead of in the cloud.
  • Token Economics & PricingWhat tokens cost, how fast prices fall, and how that shapes products.
  • Fast InferenceVery high tokens-per-second serving (Cerebras, Groq, fast modes).