Evergreen note
Speculative decoding is provably exact; draft calibration, not accuracy, is the lever
The mechanism, with the directions right (they’re easy to invert): a small draft model generates tokens sequentially — cheap, it’s a tiny model doing normal memory-bound decode. The large target model then verifies all positions in one parallel forward pass, prefill-style. Normally tokens cost the big model separate memory-bound weight reloads; here that cost is paid once and amortized across candidates — using compute that was sitting idle during decode anyway, textbook slack arbitrage.
Verification: accept draft token with probability , where is the target’s probability and the draft’s. Guaranteed acceptance when the target likes the token at least as much as the draft (); on rejection, resample from the normalized residual , which by construction has mass only where the target preferred what the draft under-weighted. The resulting distribution is provably identical to sampling the target alone — a genuine free lunch on quality, unlike quantization’s bounded loss. See the approximation spectrum.
What actually determines the speedup is the expected run of consecutive accepts per round — and the lever on it is calibration, not accuracy. A draft that’s wrong-but-humble (low on its own picks) still passes the ratio test easily; a draft that’s wrong-and-confident inflates exactly where the target disagrees, suppressing acceptance across every position and collapsing the expected accept-run toward 1 — at which point you pay for the draft and get no amortization: strictly worse than plain decoding.
This is why narrow agentic token distributions are speculative decoding’s best case: JSON schemas and repeated tool-call shapes are a distribution a small model can be confidently right about, and some production setups fine-tune agent-specific drafts to optimize precisely that calibration.