Skip to content

Speculative decoding still samples from the big model

2026-11-10

Decoding with a large model costs one forward pass per token, and the passes cannot overlap because each token depends on the last. Speculative decoding adds a cheaper draft model. It proposes γ tokens, and the large model scores all of them in a single pass, plus one more position after the last drafted token.

Each drafted token x is then kept with probability min(1, p(x)/q(x)), where p is the large model's probability and q the draft's. If a token is rejected, a replacement is drawn from the normalized max(0, p − q), and the remaining draft is thrown away. The paper proves the tokens produced are "distributed identically" to sampling from the large model alone.

How much does it pay? Write α for the average acceptance rate, and assume, as the paper does for this formula, that each drafted token is accepted independently at that rate. The expected number of tokens produced per large-model pass is (1 − α^(γ+1)) / (1 − α). With α = 0.8 and γ = 4 that is (1 − 0.8⁵)/0.2 = 3.36, so about three and a third tokens per pass instead of one.

What does the draft model change? Only speed. A poor draft is rejected more often, which lowers α and the gain, but the distribution of the output stays the large model's. The paper reports 2 to 3 times faster decoding on T5-XXL with identical outputs.

Leviathan, Kalman and Matias, ICML 2023, §2.3, §3.1 (Eq. 1) and Appendix A.1