Speculative Decoding Is Per-Token, Not Path

Songyan DaiNeurIPS 2026

TL;DR

When accelerating Large Language Models via speculative decoding, you might intuitively assume that speedup depends on how well the draft and target distributions overlap across an entire sequence of tokens. This paper proves that standard speculative decoding is actually governed by a much stricter, step-by-step per-token survival rate, which can be arbitrarily smaller than the overall path-level overlap. If you use path-level similarity to estimate your model's speedup, you might be wildly overcounting.

What Problem Does This Paper Address?

Large Language Models generate text one token at a time, which is painfully slow. Speculative decoding speeds this up: a cheap "draft" model guesses the next $L$ tokens, and the heavy "target" model verifies all $L$ guesses in a single parallel pass. Using a sequential rejection-sampling rule (standard TokenVerify), the target accepts a valid prefix of the draft, corrects the first mistake via a residual distribution, and preserves the exact output distribution of the target model.

This raises a fundamental question: what mathematical quantity actually governs Speculative Decoding Complexity (SDC)—the expected number of target-verification rounds needed to generate $T$ exact tokens?

There are two natural candidates:

  1. Path-level overlap ($\Omega_L$): Sums how much the draft and target distributions overlap (measured via Total Variation distance) over prefixes of length $1$ to $L$. It represents the theoretical ceiling of how many tokens any coupling of the two distributions could possibly share.
  2. Per-token rate ($\sigma_L$): The expected number of accepted tokens when multiplying sequential, step-by-step clipped probability ratios ($\min(1, P/Q)$) along a draft trajectory.

Are these two rates roughly interchangeable, or does the sequential verification rule leave massive theoretical speedup on the table?

Methods

This is a purely theoretical investigation. Rather than running empirical benchmarks, the author constructs mathematical frameworks and explicit probability/architecture counterexamples:

  • Protocol Classification: Defines the "admissible Leviathan-style clipped-ratio class" (standard non-anticipating verifiers) and contrasts it with full-lookahead protocols where accepting an earlier token can depend on looking ahead at later draft tokens.
  • Martingale Stopping Analysis: Applies Wald’s identity to multi-round decoding processes to prove tight upper and lower bounds on SDC across reachable states.
  • Information-Theoretic Profiling: Uses Pinsker’s inequality to map how prefix Kullback-Leibler (KL) divergence dictates whether $\Omega_L$ grows linearly or hits a hard ceiling.
  • Explicit Fixed-Precision Transformers: Constructs two compact, $O(\log L)$-bit Transformer families—one outputting nearly constant tokens, the other computing alternating parity ($0101\dots$)—to test how target architecture affects verification complexity against a shared, simple draft family.

Datasets

Not discussed in the paper. (This is a theoretical study utilizing analytical constructions rather than empirical datasets.)

Key Insights and Ideas

  • Sequential survival is harsher than path overlap: Even on simple, independent and identically distributed (i.i.d.) coin flips, $\sigma_L < \Omega_L$. Suppose a target favors 0 ($0.9$) and a drafter favors 1 ($0.9$). The two-token path 01 has probability $0.09$ under both models, contributing a healthy $0.09$ to path overlap $\Omega_2$. Yet under sequential TokenVerify, 0 is accepted with probability $1$, and 1 is accepted with probability $0.1/0.9 = 1/9$, yielding a tiny survival mass of $0.09 \times 1 \times (1/9) = 0.01$. Early probability mismatches cannot be "canceled out" by later ones!
  • Looking ahead beats the standard bound: $\sigma_L$ is not a universal speed limit for exact decoding. By designing a non-standard verifier on $L=2$ where the decision to accept the first token peeks at what the second draft token is, the author achieves an expected accepted length of $19/16$, beating $\sigma_2 = 9/8$ while remaining mathematically exact.
  • Infinite KL doesn't kill path overlap: Small prefix KL divergence guarantees linear path overlap ($\Omega_L \approx L$). Surprisingly, the reverse is false: if the target puts a tiny probability $\varepsilon$ on a string the drafter deems impossible ($Q=0$), KL divergence blows up to $+\infty$, yet path overlap remains robustly linear at $(1-\varepsilon)L$.
  • Model size $\neq$ verification ease: Two tiny Transformers of the exact same $O(\log L)$-bit description size can sit at opposite extremes of speculative speedup when paired with the same drafter—showing that verification complexity is completely distinct from model succinctness.

Key Results

  • Unbounded Separation: In staged binary product distributions of length $L_J = 2^{J+1} + 2^J - 2$, the sequential rate stays capped at $\sigma_{L_J} \le 2$, while path overlap explodes exponentially: $\Omega_{L_J} \ge \frac{(3/2)^J}{2\sqrt{J}} \to \infty$.
  • Tight SDC Characterization: Within standard admissible protocols (assuming bounded rate variation across states and $T \ge L$), expected verification rounds tightly obey $\mathrm{SDC} = \Theta\left(\frac{T}{\sigma_{L,B} + 1}\right)$, where $+1$ captures the bonus residual token sampled upon rejection.
  • $\Theta(L)$ Architecture Gap: Paired with a simple proposal set (uniform random, all 0s, or all 1s), the constant-readout Transformer achieves $\mathrm{SDC} = O(T/L)$ (linear speedup), while the alternating-parity Transformer gets stuck at $\mathrm{SDC} \ge T/2$ (virtually no speedup). For $L=64$ and $T=10,000$ tokens, the constant family takes $\le 160$ verification rounds while the parity family requires $\ge 5,000$—a certified $>31\times$ gap.

Limitations and Future Work

  • Idealized Assumptions: The tight $\Theta$ characterization assumes exact optimization over proposal mixtures, $T \ge L$, a positive minimum acceptance rate, and bounded variation in acceptance rates as text is generated.
  • Open Theoretical Ceiling: For lookahead protocols that keep the standard residual rule, $\Omega_L$ is an upper bound, and it beats $\sigma_L$ on $L=2$—but whether $\Omega_L$ is universally achievable for every target/draft pair in that class remains an open question.
  • Practical Extensions: The architecture gap relies on synthetic toy proposals; extending this analysis to production LLMs, richer draft models, and modern tree-based or multi-head verification protocols (like Medusa or SpecInfer) is left for future work.

Summary updated

Abstract

Standard TokenVerify accepts draft tokens through sequential clipped-ratio tests. We study how its per-token rate $\sigma_L(P,Q)$ and path-level overlap $\Omega_L(P,Q)=\sum_{t=1}^{L}\mathrm{ov}(P_{\le t},Q_{\le t})$ govern target-verification-round complexity. We show $\sigma_L\le\Omega_L$ always, with strict inequality already on i.i.d. products, and construct binary product laws with fixed-precision conditionals for which $\sigma_L\le 2$ while $\Omega_L\to\infty$. An explicit binary trajectory-exact rejection-style protocol retaining the LKM residual on $L=2$ achieves $\mathbb{E}[\tau]=19/16>9/8=\sigma_L$, so $\sigma_L$ is not a universal upper bound. Inside the admissible Leviathan-style clipped-ratio class, $\sigma_L$ is tight, and the speculative decoding complexity satisfies $\mathrm S\mathrm D\mathrm C_{B,L}^{\mathcal Q}(M;u,T)=\Theta\big(T/(\sigma_{L,B}(P_M^{u,T},\mathcal Q)+1)\big)$ under exact proposal optimization, a positive reachable-rate floor, bounded reachable-rate heterogeneity, and $T\ge L$. On the path side, $\sum_t\sqrt{\eta_t/2}=o(L)$ for the prefix-KL profile forces $\Omega_L=L-o(L)$, whereas geometrically bounded overlap $o_t\le\rho^t$, $\rho<1$, forces $\Omega_L\le 1/(1-\rho)$, with no unconditional KL converse. With precision $b=\max\lbrace 6,\lceil\log_2(2L)\rceil\rbrace$, two explicit Transformer families of $O(\log L)$-bit description length realize a $\Theta(L)$ separation in verification rounds under the same three-element proposal family: a constant-readout family has $\mathrm{SDC}=O(T/L)$, while an alternating-parity family has $\mathrm{SDC}=\Omega(T)$, for $L2^{-b}\le\varepsilon\le 1/2$ and $T\ge 2L$. These results distinguish sequential acceptance from path coupling and show how the target/proposal pair controls the achievable rate.
BibTeX
@inproceedings{dai2026speculative,
  author = {Songyan Dai},
  title = {{Speculative Decoding Is Per-Token, Not Path}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=jumLplfWH0},
}
Figure