Work

One score per token suffices for optimal irrevocable verification of iid drafts in speculative decoding

Year: 2026
Type: preprint
Abstract: In multi-draft speculative decoding, a verifier must output a token whose law is exactly the target p, and it gains when that token is one of k drafts. Recursive rejection sampling and its relatives decide on each draft as it arrives. For k independent drafts with a common law q, we show that an optimal irrevocable verifier needs only one number per token, the score pi/qi: at slot j it accepts a draft whose score exceeds a fresh uniform threshold on an interval [Sj+1, Sj]. The endpoints come from one scalar root, computed exactly with O(V log 2V + kV) rational operations for V tokens. Being optimal on every instance, it accepts at least the exact worst case A − Dk(A), where A is the offline optimum and Dk solves a scalar backward recursion; for two drafts the worst ratio to A is 0.93256, against 23/27 ≈ 0.852 for recursive rejection sampling. The worst case comes from linear-programming duality, which turns verification into a prophet inequality in which a zero reward has a minimum probability; we give its sharp constants for Bernoulli and Poisson arrivals. For dependent drafts the sharp fraction is 1 − (1 − 1/k)k; a stopping inequality of Hill and Kertz gives the lower bound, and we give a verifier with one score per token that guarantees it. The record includes the paper, its LaTeX source, and the code and exact checks that reproduce every computed result. This paper merges and supersedes the preprints 10.5281/zenodo.24330785, 10.5281/zenodo.24330784 and 10.5281/zenodo.24330789.
Language: English
Open Access status: green
OpenAlex ID: W7237617178
Cites:
Cited by: 1
Related to: