Speculative Decoding and Multi-Token Prediction: Principles, Limits, and Practical Evaluation

    This article explains why single-request LLM decoding is memory-bandwidth bound, how speculative decoding works under greedy and sampling modes, how to estimate speedup from acceptance rate, and where draft tokens come from. It also covers the practical limits of draft length and batch size so engineers can set realistic expectations before deployment.

    1. The Memory-Bandwidth Bottleneck: Why Single-Request Decoding Is Slow

    Large language models generate text autoregressively. Each forward pass produces only one new token, which is appended to the context before the next forward pass can run. Generating N tokens therefore requires N full forward passes.

    Every forward pass reads the entire set of model weights from GPU memory. When the batch size is small, the actual computation is far below the volume of weight reads, so the compute units sit idle most of the time and the bottleneck falls on memory bandwidth. This state is called memory-bound. Whether a scenario is memory-bound mainly depends on batch size and model scale: the smaller the batch and the larger the model, the more pronounced the memory-bound behavior.

    As a result, single-request generation speed depends on two things: reducing the number of weight reads required per token, and making each read produce more useful output. Speculative decoding and multi-token prediction both follow the second path.

    The difference between memory-bound and compute-bound can be summarized as follows.

    1. Primary bottleneck: memory bandwidth when memory-bound, raw compute when compute-bound.
    2. Typical scenarios: memory-bound is common in small-batch online chat; compute-bound is common in large-batch offline processing and the prefill stage of long prompts.
    3. Cost of extra computation: when memory-bound, processing several tokens at once adds almost no latency; when compute-bound, extra computation directly lengthens latency.

    2. The Basic Workflow of Speculative Decoding

    Speculative decoding borrows the idea of branch prediction from processors. The system first uses a low-cost draft model to guess several candidate tokens, then the target model verifies all candidates in a single pass. The target model is the original model that makes the final decision on the output.

    The workflow has three steps.

    1. Drafting: the draft model autoregressively predicts k candidate tokens based on the current context.
    2. Verification: the target model concatenates the context with the k candidates and runs one forward pass. Because the Transformer’s attention mechanism processes the whole sequence in parallel, the target model obtains the predicted distributions for k+1 positions simultaneously.
    3. Acceptance: candidates are compared left to right against the target model’s judgment at each position. At the first position that fails the check, that candidate and all subsequent ones are discarded, and the token decided by the target model is emitted at that position. If all k candidates pass, the target model’s prediction at position k+1 is used as one additional token.

    It follows that each verification round yields at least 1 token and at most k+1 tokens.

    The criterion for “passing” depends on the decoding strategy, which is the key to understanding speculative decoding.

    Greedy decoding picks the highest-probability token at each step. A candidate is accepted only if it equals the target model’s argmax at that position. In theory, the output of speculative decoding is then identical to greedy decoding with the target model alone, token for token.

    Sampling decoding draws tokens randomly from the probability distribution. The draft model samples a candidate x from distribution q, while the target model provides distribution p. The system accepts x with probability min(1, p(x)/q(x)). If x is rejected, a new token is resampled from the normalized max(0, p−q) distribution, and all subsequent candidates are discarded. This rejection-sampling scheme can be proven to produce an output distribution exactly identical to sampling directly from p.

    3. Estimating Acceptance Rate and Speedup

    The acceptance rate α is the probability that a draft token is accepted by the target model. Under sampling, the acceptance probability of a single token equals the overlap between the two distributions, i.e., Σ min(p(x), q(x)). This equals 1 minus the total variation distance between the two distributions. The closer the draft distribution is to the target distribution, the higher the acceptance rate.

    For estimation purposes, a common simplifying assumption is that the acceptance probability at every position is α and positions are independent. Under this assumption, the expected number of tokens produced per verification round is

    E = (1 − α^(k+1)) / (1 − α)

    The derivation is straightforward. The expected output per round is 1 + α + α² + … + α^k, which is a geometric series.

    With α = 0.8 and k = 4, E ≈ 3.36, meaning each round produces about 3.4 tokens on average.

    Suppose one forward pass of the draft model takes c times as long as one forward pass of the target model. One round then costs roughly kc + 1 (in units of one target-model forward pass), and the speedup can be approximated as

    S ≈ E / (kc + 1)

    With c = 0.05, S ≈ 3.36 / 1.2 ≈ 2.8. This figure is only an example computed under the assumptions above, not a measured result.

    Three caveats apply to this estimate.

    1. The independent and identically distributed assumption usually does not hold. Acceptance outcomes at consecutive positions are often correlated, and runs of consecutive failures may occur more often than assumed.
    2. The verification stage itself processes k+1 tokens, which has its own computational cost. As the batch size grows, the compute units approach saturation, the cost of extra computation rises, and the benefit shrinks accordingly.
    3. A longer draft is not always better. As k increases, E approaches 1/(1−α), so the gain has a ceiling, while the drafting cost grows linearly with k. With α = 0.8, the ceiling of E is about 5.

    4. Multi-Token Prediction and Sources of Draft Tokens

    Speculative decoding needs a source of draft tokens. There are three common approaches.

    The first is an independent small model. It shares the same vocabulary as the target model and has