Speculative Decoding Math: Algorithms & Speedup Limits › Key Parameters
Michael BrenndoerferJanuary 17, 20261 min read
Language AI HandbookAll chapters Part 42 of 67Inference Optimization
Speculative Decoding Math: Algorithms & Speedup Limits › Key ParametersOne section · Sections in this chapter8 / 11 ↓
Sections in this chapter11
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The key parameters governing speculative decoding performance are:
- k (Draft length): The number of tokens proposed by the draft model in each step. Longer drafts amortize the target model pass cost over more tokens but face diminishing returns as acceptance probability decays geometrically.
- c (Cost ratio): The ratio , representing how much faster the draft model is compared to the target model. Larger allows longer drafts and greater theoretical speedup.
- alpha (Acceptance probability): The probability that a draft token is accepted by the target model. Equal to the probability mass overlap between draft and target distributions, and equal to .
Understanding how these three parameters interact is the key to successfully configuring and optimizing speculative decoding deployments. The speedup formula ties them together into a single performance prediction that you can optimize.