The Budget Decides the Drafter: Cross-Entropy Rates for Speculative Decoding
Speculative decoding lets a small drafter propose tokens that a large target model verifies without changing its output distribution. Serving systems run one drafter at budgets from three-token chains to trees of hundreds of nodes, yet drafters are trained and compared with a single number. We show that the right number depends on the budget. A single draft token is accepted with a probability set by total variation, whereas a tree of $B$ draft nodes holding the drafter's most likely prefixes accepts about $\log B/C_T(q)$ tokens, with $C_T(q)$ the drafter's cross-entropy on the target's text. We prove this rate for dependent text. The budget also picks the protocol, with sampled chains at small budgets and trees at large ones, and the protocol sets how sharp the drafter should be. We set a drafter's sharpness by raising its probabilities to a power. Across thirteen drafters in three families, the best sharpness is higher for eight-token chains than for 256-node trees. With every choice fixed before testing, a sharpness calibrated for a 256-node tree costs under 1% more target calls on an eight-node tree than recalibrating, but 3% to 7% more on an eight-token sampled chain. On…
- arXiv
- 2612.04869
- Authors
- Taiheng Pan
- Categories
- cs.LG · cs.CL · cs.IT