Speculative Decoding on Mid-Size Models: Why More Drafting Can Make Decoding Slower
This article explains a common, counterintuitive result: enabling Multi-Token Prediction (speculative decoding) on mid-size dense open-source models produces acceptance rates around 0.6–0.7 but overall speedups of only 0.8x–0.9x. It shows why this is a normal output of speculative decoding's cost model rather than a misconfiguration, and walks through the math: expected tokens per step E(α, γ), the per-step cost term C(γ), and the κ factor for draft-step cost. It includes breakeven acceptance rates by draft count, acceptance rate and speedup data broken down by task category, the bandwidth-bound behavior of unified memory devices, and how sampling strategy quietly lowers acceptance. It closes with acceptance and equivalence testing gates, a benchmark methodology checklist, and deployment guidance on when to switch model tiers instead of tuning speculative decoding.
1. The Symptom: Enabling Multi-Token Prediction Makes It Slower
Many teams that turn on Multi-Token Prediction (MTP) for mid-size open-source models run into a counterintuitive result: decode throughput (tokens/s) improves slightly on some tasks, but end-to-end latency actually grows. Overall speedup lands between 0.8x and 0.9x — meaning it is slower with it on than off. A typical report reads: acceptance rate around 0.6–0.7, and yet slower.
This is not necessarily a misconfiguration. It is a normal output of speculative decoding’s cost model. To decide whether the feature is worth enabling, you need a cost model first, not just a throughput number.
2. Where Mid-Size Dense Models Sit in the Open-Source Lineup
Open-source model families typically come in three tiers:
- Edge / small tier (below roughly 1B parameters): tuned for on-device, single-GPU, and low-VRAM scenarios, optimizing for first-token latency and memory footprint.
- Mid-size dense tier (roughly 10B–20B parameters): a single model covers multilingual, code, and long context, with clearly better quality than the edge tier.
- Large sparse tier (MoE): large total parameter count, but only a small fraction activated per token. On capacity-constrained devices — especially unified memory — this tier often offers a better quality/speed trade-off.
The mid-size dense tier fills the gap in the middle: clearly stronger than edge models, with a far lower hardware bar than the large tier. Precisely because it is a dense architecture, every generation step has to read all activated weights in full. That makes it a bandwidth-bound workload on constrained devices, which is exactly why it is the key battleground for whether speculative decoding pays off or not.
3. Where the Gains Come From: Draft-Verify and Acceptance Rate
The general speculative decoding pattern is “guess first, verify later”:
- A lightweight draft source (a separate small model, an extra prediction head shipped with the target model, or a drafting module derived from KV state) proposes γ tokens in sequence.
- The target model runs a single parallel forward pass to verify those γ+1 positions.
- Tokens are accepted up to the longest matching prefix; at the first rejection, resampling happens from the target model’s distribution, and the loop continues.
Under greedy decoding, with the per-step acceptance probability approximated as α, the expected number of tokens produced per step is:
E(α, γ) = (1 - α^(γ+1)) / (1 - α)
End-to-end speedup can then be written as:
Speedup = E(α, γ) / C(γ)C(γ) ≈ 1 + γ·κ # 1 verification forward pass + γ drafting forward passesκ = cost of one draft step / cost of one target verification step
Core conclusion: speedup is not a monotonic function of acceptance rate. It is the output produced by the acceptance rate divided by (number of draft steps × draft cost). When α is not high enough, increasing γ only makes the denominator grow faster.
Take a set of published measurements (illustrative data): overall acceptance rate α ≈ 0.64 with γ = 2 gives a theoretical output of E ≈ 2.04 tokens/step, while the measured speedup is 0.87x. Back-solving that implies a real per-step cost of roughly 2.3x a single decode step. In other words, with drafting fully enabled, acceptance rate needs to be above about 0.76 just to break even. Under the same calibration:
| Draft steps γ | Acceptance rate needed to break even (estimated) |
|---|---|
| 1 | ≈ 0.67 |
| 2 | ≈ 0.76 |
| 3 | ≈ 0.82 |
(The values above are derived from the stated model. κ has to be recalibrated on your own hardware by measuring actual draft-step cost — don’t copy these numbers directly.)
This table yields a straightforward engineering rule: measure acceptance rate first, then choose the draft count — don’t blindly tune draft count as a hyperparameter.
4. Why Task Types Differ So Much
Measurements on the same model with the same configuration show acceptance rates spread very widely across task categories:
| Task category | Acceptance rate | Decode speedup |
|---|---|---|
| Code generation | 0.76 | 1.18x |
| Retrieval-augmented QA | 0.81 | 0.98x |
| Multilingual | 0.72 | 0.83x |
| Summarization | 0.64 | 0.80x |
| Reasoning / math | 0.61 | 0.80–0.87x |
| Roleplay | 0.61 | 0.86x |
| Creative writing | 0.58 | 0.74x |
The pattern is quite clear:
- High-redundancy, strongly patterned text (code boilerplate, templated retrieval snippets) has low next-token entropy, so draft hit rates are naturally high.
- High-entropy creative text (writing, roleplay) makes a long-tail choice from the distribution at every step; drafts may be accurate but still struggle to hit consecutively. These tasks also tend to produce longer outputs, which amplifies the latency penalty.
- Math and reasoning look structured, but each step depends on long-range logical branches. Their local “predictability” in an n-gram sense is not actually high.
- Retrieval-augmented tasks get a higher acceptance rate because the context is constrained by high-information snippets, but they emit relatively few tokens, which caps the absolute speedup.
One easily overlooked detail: speculative decoding’s benefit shows up in the decode phase and does nothing for time-to-first-token (TTFT). For tasks with very short generations (such as the multilingual example), overall latency is dominated by prefill and sampling/scheduling, so speculative decoding naturally “looks useless.”
5. Special Constraints on Unified Memory
On unified memory devices, the CPU and the graphics compute units share one physical memory pool. Capacity is large, but available bandwidth is comparatively limited. Two consequences follow:
- Decoding is fully bandwidth-bound. Every generated token requires moving all activated weights again, so throughput is roughly inversely proportional to the activated parameter count. This explains why, on such a platform, a large sparse tier (MoE) that activates only a small fraction of parameters per token often runs faster than a mid-size dense model from the same generation — what determines speed is activation volume, not total parameter count.
- The cost of the draft forward pass gets over-paid, repeatedly. Verifying γ+1 tokens reads the weights once, so its marginal cost is low. But if the draft module itself carries meaningful independent parameters, every draft step is a full weight read. That matches the κ ≈ 0.6–0.7 from the earlier calibration: cost piles up almost linearly on the drafting side. As a result, “using a few-billion-parameter model to draft for a ~10B-parameter target” is usually a net negative on these devices. The draft module must be small, or it must reuse the target model’s own hidden states.
6. Sampling Strategy Quietly Lowers the Acceptance Rate
MTP’s acceptance rate is not an intrinsic property of the model. It is the joint result of draft distribution × target distribution × sampling strategy:
- Greedy / low temperature: highest acceptance rate, and the easiest setting to realize speedup on.
- High temperature, larger top-p: the target distribution flattens, draft hit probability drops, and acceptance rate can fall by more than 0.1.
- Non-greedy sampling: you must apply the standard rejection-sampling correction (accept with probability min(1, p/q), and sample from the residual distribution on rejection) to keep the output distribution unbiased. That correction itself adds a small overhead.
- Dynamic speculative length: a better approach is to maintain a sliding window and use the recent actual acceptance rate to decide how many tokens to guess this step — add more when hits land, fall back to 1 after a miss — so the system avoids spinning for long periods in a low-hit regime.
class AdaptiveDraft:def __init__(self, gamma_max=4, window=32):self.gamma = 1self.gamma_max = gamma_maxself.hist = [] # recent per-step count of accepted tokensself.window = windowdef next_gamma(self):return self.gammadef update(self, accepted):self.hist.append(accepted)if len(self.hist) > self.window:self.hist.pop(0)# Scale up or down using the recent mean of accepted tokens,# with hysteresis to avoid oscillation.recent = sum(self.hist[-8:]) / max(1, len(self.hist[-8:]))if accepted >= self.gamma and recent >= 2.0 and self.gamma < self.gamma_max:self.gamma += 1elif accepted == 0 and self.gamma > 1:self.gamma -= 1
A key implementation requirement that goes with this is observability: expose acceptance rate, average draft length, and actual tokens per step as first-class metrics, reported alongside TTFT and TPOT. Without them, tuning is guesswork.
7. Don’t Skip the Acceptance Tests: Speedup Presupposes Equivalence
Speculative decoding is mathematically lossless: with a correct implementation, the output distribution should match token-by-token decoding. But engineering implementations — especially when an extra prediction head is distilled, or the draft and target vocabularies don’t align perfectly — can easily introduce drift. Three gates are worth setting as launch criteria:
- Greedy consistency: with the same prompt, same seed, and greedy decoding, output with and without speculative decoding should match token for token. Any mismatch should be treated as an implementation defect.
- Distribution consistency: fix the random seed and run N sampling passes, then compare perplexity / eval scores between the two groups. The difference should fall within the noise band.
- Per-task regression: split the eval set into categories such as code, math, writing, and QA, and record quality metrics and acceptance rate separately for each. This prevents trading away quality on one task class in the name of speed.
8. Benchmark Methodology: Don’t Look at a Single Throughput Number
There is a classic trap in the data above: code decode throughput is 1.18x, yet overall latency speedup is only 0.86x. The reason is that throughput and latency are not the same thing, and average throughput hides long-tail tasks. A reusable measurement checklist:
- Report TTFT, TPOT, and end-to-end latency at P50/P95, not just means.
- Break results down by task category, reporting acceptance rate, decode speedup, and latency speedup for each group.
- Fix the prompt set, max generation length, temperature, and top-p; warm up before timing.
- Exclude disk I/O and first-time weight loading; model artifacts should be resident in memory or served from a fast cache.
- Measure both low-concurrency single-stream and high-concurrency batch load. Speculative decoding’s gains are almost entirely concentrated in the low-concurrency range. As concurrency rises, the system becomes compute-bound, verification of extra tokens starts competing with real requests for compute, and speedup degrades or even turns negative.
9. Deployment Recommendations
- Route configuration by task: enable speculative decoding for code and structured-generation traffic; disable it or cap draft length for creative and roleplay traffic.
- Prefer small draft sources: draft module parameters should be far smaller than the target model, ideally reusing the target model’s internal state, to avoid paying for weight reads twice on bandwidth-limited devices.
- Dynamic draft length plus percentile metric monitoring: bring acceptance rate into the SLO observability system, and degrade automatically when it drops below the threshold.
- Handle model and artifact management with general cloud capabilities: distribute model files through object storage, run inference services on a container platform, and feed logs and acceptance-rate metrics into logging and monitoring/alerting services. That closes the “release — observe — roll back” loop.
- Give a clear selection conclusion: on unified memory devices with large capacity but limited bandwidth, if the only goal is raw speed, first compare “a large sparse tier with lower activation volume” against “a mid-size dense tier,” and only then decide whether it is worth investing in speculative decoding tuning — in many cases, switching model tiers beats tuning speculative decoding.
10. Conclusion
“Acceptance rate 0.7, yet slower” is not an anomaly. It is the inevitable result of leaving the cost term out. Deciding whether speculative decoding is worth enabling takes three things: calibrate κ, the single-step cost of drafting; measure α, the acceptance rate on your actual traffic; then compute the speedup once with E(α,γ)/C(γ). On mid-size dense models, the answer this formula usually gives is: enable it for code and retrieval tasks, disable it or strictly limit draft count for creative and long-chain reasoning tasks. And on unified memory devices, choosing the right model tier usually delivers more than tuning speculative decoding.
