Speculative Decoding
Speculative Decoding
What problem it solves
Guess several tokens cheaply, then have the big model verify them in one pass.
What it is
Leviathan et al.'s definition: an algorithm to sample from autoregressive models faster, computing several tokens in parallel with no changes to the outputs.
The paper reports 2x-3x acceleration on T5-XXL with identical outputs.
vLLM ships n-gram, EAGLE and other speculative decoding implementations.
Why it matters
For local inference this is one of the few speedups you get for free.
Chinese aliases
Terms in the same area
What you can do now
Practitioner deep-dive: serving deep dive guide (AI Models site) ↗
Sources
Use this term in a task
Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.