Speculative decoding
Expanded definition
A small draft model proposes several future tokens; the large model checks them in one forward pass and accepts a prefix that matches what it would have sampled. Rejected tokens fall back to the large model's own sample. When draft quality is high, tokens per second rise without changing the target distribution in the ideal case. It needs extra memory for the drafter and helps most on long outputs, not on tiny completions.
Related terms
Explore adjacent ideas in the knowledge graph.
Speculative decoding FAQ
What is Speculative decoding?
Speculative decoding speeds generation by drafting tokens with a cheaper model and verifying them with the target model in parallel.
How is Speculative decoding used in AI systems?
A small draft model proposes several future tokens; the large model checks them in one forward pass and accepts a prefix that matches what it would have sampled. Rejected tokens fall back to the large model's own sample. When draft quality is high, tokens per second rise without changing the target distribution in the ideal case. It needs extra memory for the drafter and helps most on long output...
Related
Comparisons, tools, and models that connect to this idea.