Speculative Decoding for LLMs in Practice: Why Acceptance Rate Doesn't Equal Speedup
This article explains how speculative decoding and multi-token prediction (MTP) work as acceleration techniques for large language model inference, and why a high acceptance rate alone does not guarantee faster end-to-end performance. It covers the draft-and-verify mechanism, the conditions under which verification stays cheap, the role and limits of MTP as a built-in draft source, and the distinction between lossless speculative decoding and quality-sacrificing approximation. Readers will learn to reason about effective output throughput rather than acceptance rate, judge whether their hardware and model structure are good candidates, and follow a reproducible workflow for measuring baselines, tuning the draft length K, and checking correctness before and after rollout.
1. Why Does LLM Inference Get Slow? What Problem Does Speculative Decoding Solve?
Autoregressive generation in large language models is inherently serial: producing the nth token depends on the context of the previous n-1 tokens. This means the generation phase cannot process all positions in parallel the way training can. For every token generated, the inference engine typically reads the model weights, runs attention and fully connected computations, and writes the result back into the context. When the model is much larger than the current batch, the GPU or accelerator’s compute units often sit idle “waiting for data,” and the real bottleneck limiting throughput is not floating-point compute but memory bandwidth.
Because of this, inference workloads fall into two broad categories:
- Memory-bandwidth-bound: small batch, short sequences, frequent weight movement, and low compute utilization. Here, cutting the cost of “moving the weights once per token” yields more noticeable gains.
- Compute-bound: very large batches, very long sequences, or a workload that already saturates the accelerator. Here, verifying extra tokens may not deliver linear returns and can even slow things down.
Speculative decoding is one optimization approach aimed at the autoregressive serial bottleneck. It does not require the model to guess the entire answer correctly in one shot. Instead, a lightweight source first proposes several candidate tokens, and then the large model performs a single parallel verification. If the candidates are correct, multiple tokens advance at once; if an error occurs partway through, generation rolls back to the error position and the large model regenerates from there.
One common long-tail question needs to be addressed up front:
What is acceptance rate? Why doesn’t a high acceptance rate mean faster speedup?
The acceptance rate usually refers to the fraction of draft tokens accepted during the verification phase. A higher acceptance rate means the draft is more “in sync” with the target model and there are fewer rollbacks. But acceptance rate is a process metric, not a final-benefit metric. Whether the system is faster end to end also depends on draft generation cost, verification cost, sampling-correction cost, batching efficiency, KV cache management, hardware bandwidth, and the real workload distribution. If the drafting phase slows down the overall pipeline, or if the deployment scenario is compute-bound to begin with, then even a high acceptance rate can produce a case of “it guesses well, but it’s actually slower.”
An important premise of speculative decoding is that, under a correct sampling-correction mechanism, it can keep the output distribution equivalent to the original autoregressive decoding. In other words, it does not trade quality for speed; it changes the computation path used to reach the same output. This is also a key difference between it and ordinary approximate sampling or speculative generation.
2. The Draft–Verify Mechanism: How Does a Guess Turn Into Real Gains?
In engineering terms, speculative decoding typically involves three stages.
1. Draft phase: quickly propose candidate tokens
The draft source can be an independent small-parameter model, or an extra prediction head built into the large model, such as a multi-token prediction module. The goal of the draft phase is to quickly produce K candidate tokens, not to pursue full quality.
The lighter the draft source, the lower the per-call cost. But if the draft is too weak, the acceptance rate drops and the rollback rate rises, which in turn slows down overall generation.
2. Verify phase: the large model validates candidates in parallel
The large model runs one forward pass over the draft tokens to obtain a probability distribution at each position. Unlike token-by-token generation, the verification phase can process multiple candidate positions within a single forward pass.
There is a key premise here: verifying K tokens costs about the same as verifying 1 token, but this is not unconditionally true. It requires the model architecture to support parallel verification and sufficient batching gains. If the attention implementation, communication paths, and memory access patterns are not well optimized, the cost of verifying multiple tokens can be significantly higher than expected and can even erode the speculation gains.
3. Accept and roll back: advance on a hit, roll back on an error
After verification, the system compares candidate tokens starting from the first position. Consecutively matching portions are accepted; at the first incorrect position the sequence is truncated, the large model generates the correct token at that position, and the next round of drafting begins.
This mechanism looks simple, but there is an easily overlooked fact: the draft phase is not free. It requires extra forward computation and extra KV cache management, and some self-speculation schemes also require additional prediction-head parameters. Whether the end result is a speedup or a slowdown depends on whether the time saved in the verification phase covers these overheads.
3. What Role Does Multi-Token Prediction (MTP) Play? Which Scenarios Suit It?
Multi-Token Prediction (MTP) is a technique that lets a model predict several future positions within a single forward pass. It can be used as an auxiliary training objective to improve the model’s representational capacity, and it can also serve as a “self-speculation” draft source during inference.
Compared with traditional speculative decoding that relies on an independent small model, MTP’s advantage is that draft capability is built into the model itself:
- Lower overhead for maintaining an extra small model: there is no need to separately deploy, update, and monitor a draft model.
- Better draft alignment with the target model: in theory, it is more likely to achieve a high acceptance rate.
- Configurable speculation length: for example, disabling the draft or predicting 1 or 2 draft tokens per round, making it easier to trade off between gains and wasted rollbacks.
But MTP also has boundaries. The prediction head itself consumes compute and memory. If the inference engine’s support for MTP is immature, correctness deviations, performance degradation, or more complex KV cache management may appear. As a result, MTP is better suited to the following cases:
- The model architecture natively supports multi-token prediction;
- The inference engine has already thoroughly optimized the relevant operators;
- The team wants to reduce the operational complexity of a standalone draft model;
- The business task is highly correlated with the draft distribution.
If the inference engine’s support is insufficient, or the extra prediction head brings noticeable overhead, MTP is not necessarily better than an independent small-model draft. When making a selection, you cannot look only at whether it is built in; you must look at end-to-end throughput, latency, and correctness.
4. Acceptance Rate Isn’t Speedup: You Must Look at End-to-End Throughput
The definition of acceptance rate is not complicated: it is the fraction of draft tokens accepted by the verification phase out of the total number of draft tokens proposed. Intuitively, a higher acceptance rate means fewer rollbacks and, therefore, faster speed. But in a real inference system, the speedup ratio is determined by several factors working together.
A conceptual model helps make sense of it:
effective speedup ≈ accepted tokens × useful forward-pass gains──────────────────────────────────────────draft cost + verification cost + sampling correction cost
It should be emphasized that this formula is only a conceptual model and cannot be used directly as a precise calculation. Real gains are affected by batch size, sequence length, KV cache hit rate, concurrent request patterns, attention implementation, communication overhead, hardware architecture, and the inference engine version. Under different workload distributions, the same acceptance rate can correspond to completely different end-to-end results.
How do you judge sampling correction and lossless equivalence?
Speculative decoding usually relies on sampling-correction rules to keep the final output distribution consistent with the original decoding. Verification differs across sampling strategies:
- Greedy decoding: usually requires the draft token to match the target model’s highest-probability token, otherwise it rolls back.
- Temperature sampling: needs to accept or correct according to the probability distribution and cannot be judged simply by whether the tokens are identical.
- top-p / top-k sampling: requires first trimming the candidate distribution, then performing acceptance and correction.
When validating losslessness, it is recommended to check at least three categories of metrics:
- Output consistency: with a fixed seed and fixed sampling parameters, check whether the final output of speculative decoding matches or is close in distribution to the baseline decoding.
- Task metrics: observe whether quality metrics such as accuracy, pass rate, similarity, and human ratings drop on business datasets.
- Probability distribution differences: in a controlled environment, compare token distributions at key positions to confirm that the correction logic has not introduced systematic bias.
Why is a complete measurement specification necessary?
Without the model version, hardware type, batch size, sequence length, draft length K, draft source, inference engine version, and throughput definition, any speedup conclusion is hard to reproduce. For example, the same claim that “speculative decoding is faster” may hold in a small-batch interactive scenario but not necessarily in an ultra-large-batch throughput scenario.
Therefore, internal evaluations should at minimum record the following:
- Model name and version;
- Inference engine and version;
- Hardware type, memory capacity, and memory bandwidth;
- Batch size and concurrency;
- Input and output lengths;
- Draft source: independent small model, MTP, or other;
- Draft length K;
- Throughput definition: output tokens/s, request completion rate, end-to-end latency, time to first token;
- Acceptance rate, rollback rate, and average accepted length.
Without these boundary conditions, discussing “whether acceptance rate equals speedup” easily turns into a rule of thumb based on intuition.
5. Hardware Architecture and Model Structure: How Do You Judge Whether Speculation Is Really Suitable?
The gains from speculative decoding depend heavily on hardware and model structure. The comparison table below helps with a quick assessment.
| Scenario | Typical characteristics | Speculative decoding recommendation |
|---|---|---|
| Memory-bandwidth-bound | Small-batch interaction, frequent weight movement, idle compute | Try it first; more likely to show gains |
| Compute-bound | Ultra-large batch, very long sequences, saturated compute | Enable cautiously; measure baseline vs. speculation first |
| Discrete GPU deployment | Independent memory bandwidth, relatively clear KV cache management | Focus on evaluating K and draft overhead |
| Unified memory architecture | CPU and accelerator share memory, different data-movement patterns | Extra overhead more easily eats the gains; requires strict A/B testing |
| Dense model | Every token requires loading the full weights | Clearly constrained by total parameters and bandwidth |
| MoE model | Each token activates only a subset of experts | Depends on active parameters, routing overhead, and cache hit rate |
| Independent small-model draft | Draft model can be replaced and tuned independently | Flexible, but with extra deployment and maintenance cost |
| MTP self-speculation | Draft capability built into the model structure | Suited to scenarios with mature engine support that want lower deployment complexity |
A common misconception is to look only at total parameter count. For MoE models, the total parameter count can be very large, but the number of parameters actually activated per token may be far smaller than in a dense model. So in a memory-bound environment, the actual weight-movement cost of an MoE model may be lower, but this does not mean it is necessarily more suited to speculative decoding; you still have to consider routing overhead, expert cache hit rate, and the inference engine implementation.
Another common misconception is that, because CPU and accelerator share memory under a unified memory architecture, speculation must be cheaper. In reality, unified memory can change the cost structure of weight copying, cache management, and synchronization paths, and the extra draft and verification operations may more easily amplify latency. As a result, the phenomenon of “decent acceptance rate but overall slower” is not uncommon in this kind of environment.
6. Engineering Tuning Checklist: What to Measure First, and What to Tune Next?
Don’t start by asking “can speculative decoding speed things up,” but by asking “where is the current system stuck.” Below is an actionable checklist.
1. First measure baseline throughput and latency
Before enabling speculative decoding, fix the following conditions:
- Fixed model version;
- Fixed input dataset;
- Fixed batch size and concurrency;
- Fixed input and output length distribution;
- Fixed sampling parameters.
Record the baseline metrics:
- Output tokens/s;
- End-to-end latency;
- Time to first token;
- P50, P95, P99 latency;
- Request success rate;
- Memory and GPU memory usage.
If the baseline is already compute-bound, there is usually little room for speculative decoding to help.
2. Then measure the effective output of speculative decoding
After enabling speculative decoding, don’t look only at the acceptance rate; instead, record:
- Acceptance rate;
- Rollback rate;
- Average number of accepted tokens;
- Draft phase time;
- Verification phase time;
- Output tokens/s;
- End-to-end latency;
- P99 latency;
- Extra overhead from sampling correction.
The most critical metric here is effective output tokens/s, that is, the number of output tokens actually completed and delivered to the user per unit of time. No matter how high the acceptance rate is, if effective output does not improve, it cannot be counted as a success.
3. Use threshold examples for a preliminary decision
Below is a set of adjustable decision-threshold examples. These are not a guarantee of results, but a practical starting point for engineering:
- If enabling speculation improves effective output tokens/s by more than 10% and P99 latency does not degrade, it can be enabled by default;
- If the improvement is between 5% and 10%, it is recommended to roll out to a small fraction of traffic and observe the real workload distribution;
- If the improvement is below 5%, or P99 latency clearly degrades, it is recommended to keep it off by default;
- If the acceptance rate is high but the improvement in effective output is small, prioritize checking draft overhead, verification efficiency, and concurrent batching;
- If the rollback rate is too high, shorten the draft length K or change the draft source.
These thresholds need to be adjusted according to business tolerance. Interactive chat cares more about latency, while offline batch processing cares more about throughput, and the two cannot use the same standard.
4. Then tune the draft length K
The draft length K is an important parameter in speculative decoding. If K is too small, the number of tokens advanced per round is limited and the gains are not obvious; if K is too large, once a later draft token is wrong, the earlier candidates may be wasted too.
Tuning principles:
- Low-acceptance tasks: reduce K, or even disable speculation;
- Medium-acceptance tasks: start with a small K and watch rollback rate and throughput changes;
- High-acceptance tasks: K can be increased moderately, but tail latency must be monitored;
- High-concurrency scenarios: watch whether drafting and verification add queueing latency;
- Long-output scenarios: watch KV cache growth and memory pressure.
5. Focus on correctness and quality regression
Even if speculative decoding is theoretically lossless, the engineering implementation may introduce bias. Therefore, before each rollout, three checks are recommended:
- With fixed input, check whether the output of speculative decoding matches the baseline;
- Check whether quality metrics on the business evaluation set remain stable;
- Check whether high-risk tasks such as long text, code, math, and retrieval-augmented generation show abnormal rollbacks or truncation.
7. How Do You Build a Reproducible Evaluation? A Generic Workflow Matters More Than Platform Slogans
Whether speculative decoding is worth enabling ultimately depends on a reproducible, comparable, and rollback-capable engineering workflow. The following is a generic process that does not rely on any specific brand’s marketing:
1. Build a fixed evaluation set
The evaluation set should cover the real business distribution and include at least:
- Common short question-answering;
- Long-text generation;
- Code generation;
- Math reasoning;
- Retrieval-augmented question answering;
- Multilingual tasks;
- Boundary inputs and abnormal inputs.
Do not use a single average metric to replace the business distribution. The predictability of different tasks varies greatly, and acceptance rate and speedup may show clear stratification.
2. Control variables
Change only one key variable per test, for example:
- Whether speculation is enabled;
- Draft source;
- Draft length K;
- Batch size;
- Inference engine version;
- Quantization method;
- Concurrency.
Otherwise, you cannot tell whether the gains come from speculation itself or from other configuration changes.
3. Record complete metrics
At minimum, it is recommended to save:
- Request ID;
- Input and output lengths;
- Sampling parameters;
- Acceptance rate;
- Rollback rate;
- Draft time;
- Verification time;
- End-to-end latency;
- Output quality score;
- Resource utilization.
4. Optional: use cloud platforms for side-by-side comparison
In a self-built cluster or a cloud GPU environment, containerized deployment can quickly spin up multiple configurations, and monitoring, logging, and alerting systems can continuously observe metrics. A cloud platform can be part of the evaluation environment, but it does not by itself guarantee that speculative decoding will bring a speedup. Whether to enable it should still be based on experimental data measured under a fixed specification.
Conclusion
Speculative decoding and multi-token prediction offer an attractive optimization path for large language model inference, but they are not an “out-of-the-box” silver bullet. A high acceptance rate is only a necessary condition, not a sufficient one. The real speedup depends on draft overhead, verification efficiency, sampling correction, task distribution, batch size, KV cache management, and the underlying hardware architecture.
A more robust engineering approach is: measure the baseline first, then measure speculation; look at effective output tokens/s first, then at acceptance rate; stratify by task first, then take averages; validate in memory-bandwidth-bound scenarios first, then decide whether to roll out more broadly. Only by replacing intuition with reproducible data can speculative decoding truly become an accelerator rather than a hidden drag.
