Speculative Decoding for Local LLM Inference: The Accept Rate Trap and Practical Optimization
Speculative decoding and multi-token prediction (MTP) can accelerate local LLM inference by verifying several candidate tokens per forward pass instead of generating them one at a time. Yet a high accept rate does not always mean faster output. This article explains how both techniques work and why accept rate alone can mislead, breaks down the proposal, verification, and rollback costs that determine real speedup, and compares how dense and Mixture-of-Experts (MoE) models behave on unified memory devices. It also lays out a practical evaluation method: benchmark task by task, report throughput alongside latency, compare against an MTP=0 baseline, and re-test after any framework, hardware, or quantization change. Read it to avoid slowdowns from "negative optimization" and make speculative decoding a genuine source of speed.
Why Local LLM Inference Needs Acceleration
When large models move from the cloud to on-device deployment, the inherent nature of autoregressive decoding becomes a bottleneck for the user experience. Standard decoding produces only one token per step, and every token requires a full pass over the model’s parameters. For dense architectures, this means activating every weight at every step. Memory-access and compute costs grow with model size, even on devices with ample compute.
On unified memory devices, the CPU and GPU share the same physical memory. This removes the explicit copies between host and device memory, but the bandwidth of that shared memory often becomes the real ceiling. In this setup, the time spent on each decoding step is determined mainly by moving weights from memory to the compute units, not by floating-point operations alone. So the goal of local inference acceleration comes down to one thing: producing the same quality of output in fewer decoding steps.
How Speculative Decoding and Multi-Token Prediction Work
The core idea of speculative decoding is to replace token-by-token generation with a propose-and-verify mechanism. The key insight is that verifying several candidate tokens at once is more efficient than generating them one at a time. Verification is highly parallel: the target model can check all candidate positions in a single forward pass. Generation, by contrast, is strictly sequential.
Speculative decoding is typically implemented in one of two ways:
- Independent draft model: A smaller model quickly proposes several candidate tokens, which the target model then verifies in a single pass. The drawback is that you have to maintain an extra small model, and results depend heavily on how well its distribution aligns with that of the target model.
- Self-speculative decoding and multi-token prediction (MTP): Several prediction heads are added to the target model itself, so a single forward pass can “guess” multiple future tokens. The full candidate sequence is then verified in parallel. This approach needs no separate small model, and recent dense and MoE models commonly include it as a built-in capability.
Whichever approach you use, the speedup rests on one premise: as long as the target model accepts the candidate tokens, a single forward pass advances generation by multiple tokens. On the other hand, once a token at some position is rejected, generation rolls back to that position and recomputes the remaining tokens.
The Accept Rate Trap
Accept rate measures the proportion of draft tokens approved by the target model. Intuitively, a higher rate is better, and 0.7 may seem like a substantial speedup. This is one of the most common misunderstandings in local inference: a high accept rate does not necessarily mean faster inference. There are two reasons:
- Accept rate is a conditional probability, not an end-to-end gain. When a speculation chain is rejected at some position, that round ends early and the remaining draft tokens are discarded. Chained acceptance requires consecutive hits, so the actual expected number of tokens accepted per round is often well below the single-position accept rate.
- Speculation has fixed overhead. Proposing candidates, running the extra verification pass, and reassembling and rolling back candidate sequences all add latency. If these costs are not amortized across enough accepted tokens, speculative decoding is actually slower.
A typical counterexample: A model’s MTP accept rate stays between 0.6 and 0.8, yet overall throughput drops from 36 tokens/s to 31 tokens/s. That is an end-to-end speedup of only 0.87x (about 13% slower), with particularly noticeable regressions on writing, STEM, and reasoning tasks. In this case, the high accept rate is entirely eaten up by speculation overhead.
Where the Speedup Really Comes From
To evaluate speculative decoding rationally, you need to break its cost down into quantifiable components. The net benefit of one speculation cycle can be approximated as:
expected speedup ≈ average tokens accepted per round─────────────────────────────────────single-step verification latency + proposal latency + rollback cost
Speedup materializes only when the numerator grows with the acceptance length and the denominator is sufficiently amortized. Common failure modes in practice include:
- Excessive draft cost: Prediction head computation or sampling logic is too heavy and cancels out the gains from parallel verification.
- Hidden rollbacks from implementation defects: MTP implementations in some inference engines contain bugs on certain architectures. Accept rates may look normal, yet a hidden rollback occurs in every round, making speculation a net slowdown.
- Distribution mismatch: The draft and target distributions diverge on high-entropy tasks such as open-ended writing and roleplay, which naturally lowers the accept rate.
This leads to a fundamental rule for evaluation: any acceleration approach must be judged by end-to-end latency or throughput, not by accept rate, which is only an intermediate metric.
How Model Architecture Matters: Dense vs. MoE
On unified memory devices, dense and Mixture-of-Experts (MoE) architectures perform quite differently, because their compute and memory-access characteristics are fundamentally different.
Dense models activate all weights at every step, so decoding latency is highly sensitive to parameter count. Adding speculative decoding does not help much here. Each verification round still needs a full forward pass, fixed overhead takes up a large share, and the whole process is easily dragged down by the speculation mechanism.
MoE models activate only a small subset of experts at each step (for example, roughly 4B out of 26B total parameters). Each forward pass therefore does less computation and puts less pressure on memory bandwidth. When speculative decoding folds multi-token verification into a single MoE forward pass, the number of activated parameters barely increases, yet multiple tokens are advanced. The amortization effect is naturally amplified. As a result, on unified memory devices, mid-sized MoE models often achieve better speculative speedups than dense models of a comparable size.
This also explains why, in many evaluations, MoE models deliver better end-to-end throughput even when their accept rates are not the highest.
Evaluation Methods and Best Practices
To make speedup conclusions credible, evaluation design matters more than tuning parameters. The following methodology is reusable:
Evaluate task by task, not with a single overall score. Tasks vary widely in entropy and predictability. Structured tasks such as coding, RAG, and math usually see high accept rates and clear speedups. Open-ended tasks such as writing and roleplay tend to regress. Averaging results across tasks can hide these differences and lead to misleading conclusions.
Report both throughput and latency. Throughput (tokens/s) reflects generation capacity, while latency reflects the experience of a single request. Present them side by side, distinguishing time to first token from total completion time.
Compare against a baseline. Establish a baseline with MTP disabled (MTP=0), then compare configurations with different speculation lengths one by one. Draw conclusions from the speedup ratio rather than the raw accept rate.
An example structure for a comparison table (illustrative only, not representative of any specific product):
Task baseline tok/s speculative tok/s speedup accept rate-----------------------------------------------------------------------coding 36.2 42.8 1.18x 0.76rag 37.1 36.3 0.98x 0.81math 38.1 33.0 0.87x 0.61writing 34.7 25.8 0.74x 0.58reasoning 36.9 29.5 0.80x 0.61-----------------------------------------------------------------------overall 36.4 31.7 0.87x 0.64
Look closely at the last row: The overall accept rate of 0.64 may seem respectable, but the overall speedup is only 0.87x. This is the sole standard for judging whether an approach succeeds.
- Check implementation quality. Re-run your benchmarks whenever you switch inference frameworks, hardware, or model quantization schemes. The gains from speculative decoding depend heavily on the underlying kernels and scheduling, and a single bug can turn a “high accept rate” into a net slowdown.
Conclusion and Recommendations
Speculative decoding and multi-token prediction are powerful tools for accelerating local LLM inference, but their benefits are not guaranteed. Developers should keep three points in mind:
- Accept rate is a process metric, whereas end-to-end speedup is the outcome metric. Every optimization should be validated against the latter.
- Model architecture sets the ceiling on speedup. On unified memory devices, MoE models activate fewer parameters and benefit more from the amortization effect, so they typically gain more from speculative decoding than dense models of a comparable size.
- Evaluation must be task-specific, use both metrics, and include a baseline. It must also be recalibrated whenever the runtime environment changes.
In practice, start with a relatively small speculation length, compare against the baseline, and confirm that the overall speedup is greater than 1. Then tune for tasks with high accept rates. If you see “accept rate is normal but throughput drops,” investigate rollback and scheduling logic in the inference implementation first, rather than simply increasing the speculation length. Only by aligning principles, data, and implementation can speculative decoding become a genuine speed boost for local inference.
