Speculative Decoding for Local LLM Inference: Speeding Up Large Model Serving Without a New GPU

    Local LLM inference is often blamed on GPU compute, but the real bottleneck in the decode phase is memory bandwidth and constant data movement, not raw FLOPs. Speculative decoding addresses this by having a small, fast draft model propose candidate tokens that the target model then verifies in a single forward pass. This article explains the prefill vs. decode split, the workflow of speculative decoding, why average acceptance length — not draft length — determines the payoff, how it affects throughput under concurrent batching, the engineering constraints of vocabulary alignment, sampling consistency and KV cache management, which workloads benefit and which do not, and how to build a baseline and tune drafts for local or on-premise deployments. The result is an optimization that trades extra compute for fewer memory transfers and fewer decode rounds, without changing the target model's output quality or requiring new hardware.

    1. The Real Bottleneck in Local LLM Inference: Memory Movement, Not Compute

    When people run a large model locally, their first instinct is often “my GPU isn’t powerful enough.” In practice, the bottleneck usually lies less in the compute units than in how efficiently data can be moved. A complete inference pass typically has two phases: prefill and decode.

    After the user submits a prompt, the model enters the prefill phase. This phase processes the entire input at once, computes attention relationships, and builds the key-value (KV) cache. Because a large number of tokens can be processed in parallel, prefill is largely compute-bound, and GPU compute utilization tends to be high.

    What actually slows down the user experience is the decode phase that follows prefill. During decode, the model generates only one new token at a time. To produce the next token, it must re-read the current weights and compute against the existing KV cache; once the token is produced, it must write the new key and value back into the cache. This cycle repeats endlessly.

    If the model weights range from several gigabytes to hundreds of gigabytes, and the context keeps growing, every single token generation means a large amount of data being read and written. The compute units may not be fully idle, yet token generation stays slow because of limited VRAM bandwidth and data movement speed. In other words, the decode phase behaves more like a continuous process of shuttling model state and cache back and forth than a matter of “how fast the math runs.”

    This is the core reason local LLM inference feels sluggish: the larger the model and the longer the cache, the more data must be repeatedly moved for each token generated. Even without replacing the GPU, changing the way tokens are generated can yield noticeable latency improvements.

    2. Speculative Decoding: Let a Draft Model Guess, Then Let the Target Model Verify

    Speculative decoding (also called speculative sampling or draft model decoding) is a technique that lowers the cost of the decode phase by changing how tokens are generated. The core idea is simple: let a small, fast draft model propose a batch of candidate tokens, then let the target model verify all of them in a single forward pass.

    Such a setup usually involves two models:

    1. Target model — the original large model the user actually wants to call; it guarantees output quality.
    2. Draft model — a smaller, faster, lightweight model that guesses the tokens likely to come next.

    The workflow looks roughly like this:

    1. The user submits a prompt.
    2. The target model produces the current context.
    3. The draft model quickly predicts several candidate tokens based on the current context.
    4. The target model verifies those candidates in a single forward pass.
    5. If the candidates match the target model’s prediction logic, they are accepted directly.
    6. If a token is rejected at some position, the remaining candidates are discarded and the target model generates a corrected token.

    For example, when the context is “The cat”, the draft model might predict the continuation “sat on my lap”. The target model does not need to generate these tokens one by one; it verifies the batch in a single pass. If the first few tokens are all accepted, content that previously required multiple decode rounds can be advanced in one verification step.

    The change this brings is very concrete: previously the target model had to read weights, compute distributions, and write to the cache round after round; now it can verify multiple positions at once with the draft model’s help. As long as the candidate hit rate is high enough, the number of decode rounds the target model actually executes drops significantly.

    3. Longer Drafts Are Not Better: Average Acceptance Length Is the Metric That Matters

    Speculative decoding may look like a free lunch, but the actual benefit does not depend on how many tokens the draft model predicts. It depends on how many of them the target model accepts on average. This metric is usually called the average acceptance length.

    Put simply, average acceptance length is how many draft tokens the target model accepts per verification round.

    Suppose the draft model predicts 4 tokens and the target model accepts 3 of them. That round effectively advanced generation by multiple tokens in a single verification. If the draft model predicts accurately and the target model accepts nearly everything, the number of decode rounds drops sharply and generation speeds up.

    But if the draft model guesses wrong frequently, the situation reverses. The target model must keep rejecting wrong candidates and regenerating corrected tokens. At that point the draft model has already spent time, and the target model has done extra verification work, so the net gain may be cancelled out — the system can even end up slower.

    Speculative decoding is therefore not a case of “the longer the draft, the better.” A draft that is too short may not reduce target model decode rounds enough. A draft that is too long increases draft model overhead, target model verification cost, and cache management complexity. In engineering practice, draft length usually has to be tuned dynamically according to task type, model size, VRAM bandwidth, sampling parameters, and concurrency.

    A more reasonable way to judge:

    • If draft generation is far cheaper than target model decoding, and the acceptance rate is high, speculative decoding usually pays off.
    • If the draft model’s style differs too much from the target model, or the task is highly random, the acceptance rate may be low and the speedup will be reduced.
    • If the system is already in a high-throughput batch regime, the draft model’s extra compute can also compete for target model resources. Single-request latency alone is not enough — overall throughput matters too.

    4. Why Speculative Decoding Improves Throughput: From Point Latency to Parallel Verification

    In single-request scenarios, speculative decoding mainly optimizes generation speed after the first token. It turns “generate one token at a time” into “batch of candidates plus one verification,” reducing the number of decode rounds the target model actually runs.

    In high-concurrency serving scenarios, the throughput logic is somewhat different. When many requests arrive at once, the inference system typically uses batching to raise resource utilization. Without speculative decoding, each decode step of the target model advances only one token, so the benefit of batching is limited by this step-by-step generation pattern.

    Once a draft model is introduced, the system can generate candidate tokens for multiple requests simultaneously and then hand all of them to the target model for batched verification. As long as the acceptance rate is reasonable, one forward pass of the target model verifies more positions, increasing the effective token output per unit of time.

    High concurrency, however, brings new complexity:

    1. Different requests have different acceptance lengths, which makes batch boundaries inconsistent.
    2. The draft model itself consumes compute resources and may increase queueing.
    3. Some requests may be rejected frequently, dragging down overall batch efficiency.
    4. VRAM usage increases, because the draft model and more candidate cache require additional space.

    So in a concurrent environment, the value of speculative decoding depends not only on average acceptance length but also on scheduling strategy, batching strategy, draft model overhead, and whether VRAM is sufficient.

    5. Key Engineering Constraints: Vocabulary Alignment, Sampling Consistency, Controllable Cache

    The principle of speculative decoding is clear, but the engineering is not trivial. To make it work reliably, at least the following points must be considered.

    5.1 The draft model must be compatible with the target model

    Candidate tokens produced by the draft model have to be verified by the target model, so the two usually must share the same vocabulary or tokenization scheme. If the vocabularies differ, the target model cannot correctly interpret the candidates and the verification logic breaks down.

    In common practice, the draft model is a smaller model from the same family as the target model, or a lightweight model obtained through distillation. The goal is not simply to be small, but to keep the draft model close to the target model in language style, probability distribution, and task behavior.

    5.2 Sampling parameters must stay consistent

    If the target model uses greedy decoding, the draft model should follow a similarly deterministic generation logic. If the target model uses temperature sampling, top-p sampling, or nucleus sampling, the draft model needs the same or compatible sampling rules.

    If the sampling strategies differ too much, the candidate token distribution shifts and the acceptance rate falls. For scenarios that require output stability — structured extraction, log analysis, machine translation, code assistance — sampling consistency deserves even more attention.

    5.3 KV cache management must be reliable

    While the target model verifies candidates, the system temporarily handles multiple candidate positions. If some candidates are accepted, the corresponding cache is kept; if a position is rejected, the system must roll back to the correct context before generating a new token.

    This means the inference framework must manage not only the target model’s original cache but also the candidate and rollback states introduced by the draft model. Incomplete cache management can cause context corruption, repeated generation, or incoherent output.

    5.4 The draft model consumes resources of its own

    The draft model is small, but it is not free. It needs additional VRAM or system memory and consumes compute. If VRAM is already tight, forcing in a draft model can lead to worse performance.

    For this reason, the draft model usually needs to be lightweight: lower-precision representation, fewer parameters, limited draft length, and more efficient scheduling.

    6. Where the Speedup Shows Up

    Speculative decoding does not deliver equal benefits for every generation task. It suits tasks where the next token is relatively predictable.

    6.1 Scenarios with a high acceptance rate

    The following tasks tend to see higher acceptance rates:

    • Long-form continuation, especially patterned text.
    • Summarization, rewriting, and structured text generation.
    • Template-based content generation.
    • Code completion or generating formatted code.
    • Common fixed and continuing expressions in dialogue.
    • High-probability continuations in the target language during translation.

    In these tasks, subsequent tokens tend to be strongly continuous, so the draft model can predict what comes next fairly accurately, reducing the target model’s actual generation rounds.

    6.2 Scenarios with a low acceptance rate

    The following tasks may see limited gains:

    • Highly open-ended creative writing.
    • Sampling tasks that demand strong randomness.
    • Tasks with frequent niche terminology from a specialized domain.
    • Domain knowledge the draft model does not cover.
    • Cases where target and draft models differ too much in style.

    If the draft model cannot accurately predict what the target model favors, its candidates will be rejected frequently, and the extra overhead ends up increasing.

    7. Recommendations for Local and On-Premise Deployment

    For developers who want to speed up local LLM inference without swapping GPUs, speculative decoding is a path worth trying — but it requires a complete evaluation and tuning process.

    7.1 Establish a baseline first

    Before introducing a draft model, measure the target model’s behavior on typical tasks:

    • Time to first token.
    • Average time per generated token.
    • How latency changes with long context.
    • VRAM usage.
    • Throughput under concurrent requests.
    • Output stability under different sampling parameters.

    Without a baseline, you cannot tell whether the draft model is actually helping.

    7.2 Choose a draft model close to the target model in style

    Prefer a small model from the same source, with the same vocabulary and a similar task distribution. The draft model does not need to be the “strongest”; it should be the one that best predicts “what the target model would say next.”

    If the target model is used for code, the draft model should perform stably on code data too. If it is used for Chinese dialogue, the draft model needs comparable language capability.

    7.3 Control draft length

    Do not start with an overly long draft length. Begin with a smaller length, then observe acceptance rate, draft time, and target model verification time. If the acceptance rate is stable and draft time is a small share, draft length can be increased gradually.

    An even better approach is to adjust draft length dynamically by task type. For example, use longer drafts during strongly deterministic generation stages and shorter drafts during high-randomness sampling stages.

    7.4 Monitor draft model overhead

    Watch the draft model’s share of total inference time separately. If draft time is close to the time the target model saves, the scheme may not be worthwhile.

    Key metrics to observe:

    • Average acceptance length.
    • Candidate acceptance rate.
    • Draft model time per generation step.
    • Target model verification time.
    • End-to-end token generation time.
    • Peak VRAM usage.
    • Concurrent batching efficiency.

    7.5 Coordinate with the batching strategy

    In high-concurrency serving, speculative decoding cannot be evaluated in isolation. If the draft model batches poorly, or request queue scheduling is unreasonable, throughput can drop instead of rising. Speculative decoding should be part of the overall inference scheduling framework, with request queueing, batch composition, timeout control, and VRAM allocation considered together.

    8. The Value and Limits of Speculative Decoding

    The value of speculative decoding is that it does not change the target model’s quality or capability, and does not depend on a more powerful GPU. It reduces decoding overhead through a smarter way of generating tokens. For local inference, on-premise deployment, edge applications, and cost-sensitive scenarios, this optimization approach is highly attractive.

    But it is not a universal solution. Its effect depends heavily on how well the draft model matches the target model, how predictable the task is, the sampling strategy, available VRAM, and engineering quality. If the draft model differs too much from the target model, or the system is already resource-constrained, speculative decoding may not deliver the expected gains and may even add complexity.

    A more reasonable framing is that speculative decoding trades extra compute for better memory access efficiency. It fits cases where target model decoding cost is clearly higher than draft model cost. When draft cost is too high, the acceptance rate is too low, or concurrent scheduling becomes complicated, it needs careful evaluation.

    Overall, draft models are becoming an important idea in local LLM inference optimization. They remind us that inference performance depends not only on parameter count and GPU compute, but also on how the system organizes token generation, reuses cache, verifies candidates, and schedules resources. For developers who want a better LLM inference experience without upgrading hardware, understanding and properly configuring speculative decoding is a practice well worth investing in.