Speculative decoding has a cheap predictor draft the next few tokens of a model's output, and the large model check all of them in one pass. Every accepted draft is a token the large model didn't have to generate one at a time.
Wikipedia's entry on speculative execution in processors says "work is done before it is known whether it is actually needed", and the idea reached a wider audience in 2018, when the Spectre attack took its name from "the root cause, speculative execution".
That entry also gives the condition under which speculating pays, which is "if extra resources are available". A processor usually has them, and a GPU server under load doesn't, so among LLM inference techniques this one helps a lightly loaded server and can slow a busy one.
How does speculative decoding work?
Speculative decoding runs a draft-and-verify loop: a fast predictor proposes several tokens, and the large model, called the target, scores those positions together and keeps the proposals up to the first one it rejects. The target then supplies its own token at that position, so each loop yields at least one token.
The method comes from a paper submitted on November 30, 2022 by Yaniv Leviathan and colleagues, which borrows the hardware term in its abstract. It describes "an algorithm to sample from autoregressive models faster without any changes to the outputs, by computing several tokens in parallel."
The phrase "without any changes to the outputs" is the reason the trick is safe to turn on. The paper's sampling rule accepts and corrects drafts "without changing the distribution", so the text is what the large model would have produced alone.
How much faster does it make inference?
The speedup depends on how often drafts are accepted. The paper reports "a 2X-3X acceleration" for one model, T5-XXL, and gives a formula for the expected number of tokens per verification step.
"""Expected tokens per verification step in speculative decoding (Leviathan et al., Equation 1)."""
def expected_tokens(alpha, gamma):
"""alpha: chance a drafted token is accepted. gamma: tokens drafted per step."""
return (1 - alpha ** (gamma + 1)) / (1 - alpha)
print("acceptance 2 drafted 4 drafted 8 drafted")
for alpha in (0.5, 0.7, 0.8, 0.9):
row = " ".join(f"{expected_tokens(alpha, gamma):9.2f}" for gamma in (2, 4, 8))
print(f"{alpha:>10.1f} {row}")
Running python3 spec_tokens.py gives the table.
acceptance 2 drafted 4 drafted 8 drafted
0.5 1.75 1.94 2.00
0.7 2.19 2.77 3.20
0.8 2.44 3.36 4.33
0.9 2.71 4.10 6.13
At an acceptance rate of 0.5 the loop never averages more than two tokens a step however many are drafted. At 0.9 with four drafted it averages about four, so the quality of the guesses matters far more than their number.
The table is the paper's formula evaluated as written, with no model run behind it.
Those are tokens per step, and a step costs more than a plain decoding step because the predictor has to run too.
The paper explains why the trade can still pay: inference "is often not bottlenecked on arithmetic operations, but rather on memory bandwidth and communication". I read that as spare arithmetic capacity, which lets the large model score several drafted positions in one pass for little more than the cost of producing one token.
A mixture of experts model cuts the cost of each token a different way, by running only some of its parameters for each token.
Do you need a separate draft model?
No. The draft can come from a second, smaller model or from extra layers inside the large model that are trained to guess several tokens ahead.
NVIDIA's GLM-5.3 tutorial from November 13 uses the built-in kind, which it calls multi-token prediction (MTP), turned on in vLLM with one setting, {"method":. It explains that "the model's MTP layer drafts four tokens per step, and vLLM verifies them with the full model before accepting them, so each step can produce several tokens."
The tutorial adds a caveat that applies to every deployment: "The gain depends on how often drafts are accepted, which varies with the prompt."
When does speculative decoding stop helping?
It stops helping when the server is busy or the drafts are bad.
Modelplane's inference field guide, which gives its figures as of October 2026, lists the cost of speculative decoding as "Wasted compute when guesses are rejected. Its value shrinks as load rises and spare compute runs out."
That makes it a tool for the case the guide names, "Individual responses stream too slowly, even at low load". On a server already batching many requests there is little spare compute to spend on guesses.
The guide also says what to monitor: "Watch speculative decoding acceptance. Acceptance depends on temperature, subject matter and the draft model."
A falling acceptance rate is hard to spot from the outside, because requests still succeed and only get slower.
The number that drops is tokens per second on each stream. Time to first token doesn't move, since the first token still waits on the same queue and prefill.
Where does it sit among other optimizations?
Speculative decoding speeds up decoding, the phase that produces tokens one after another. Quantization and KV cache settings act on the same phase, and so does constrained decoding for structured outputs.
The memory a KV cache takes up is the subject of KV-cache eviction, and the glossary entry on speculative decoding has the short definition.
The method changes speed and leaves the token count alone, since the large model has the final say on every token. What sets the bill is covered in LLM token budgets.