Testing speculative decoding
Speculation off versus on for five mechanisms on 8×H200 — and why it loses money under load.
Every large model shipped in the last year comes with a speculative decoder — EAGLE, MTP, NEXTN, DSpark, DFlash — and every published serving recipe turns it on. It is presented as free throughput: draft a few tokens cheaply, verify them in one pass, emit whatever the model would have emitted anyway.
But in this post I will show that it is not free. On a loaded server it is a net loss for every mechanism I measured, and switching it off is worth 5–36%.
This post is the A/B test behind that claim, on the same 8×H200 node and the same workload shapes as I used previously for the model comparison.
The measurement#
Six model-and-mechanism pairs. Each speculation-off configuration is an existing, already-measured configuration with only its speculative flags removed — same engine, same image, same tensor / expert / data parallelism, same memory fraction, same parsers. Nothing else moves, so the pair isolates the mechanism instead of comparing two differently-tuned servers.
| model | engine | mechanism |
|---|---|---|
| DeepSeek-V4.1-Flash | vLLM | DSpark, 5 draft tokens |
| GLM-5.3 | SGLang | EAGLE, 5 steps / 6 draft tokens |
| GLM-5.3 | vLLM | MTP, 5 draft tokens |
| GLM-5.3-Flash | SGLang | EAGLE, 5 steps / 6 draft tokens |
| GLM-5.3-Flash | vLLM | MTP, 5 draft tokens |
| Qwen3.8-Flash-Next FP8 | SGLang | NEXTN, 3 steps / 4 draft tokens |
One flag deserves a note: --linear-attn-verify-backend configures the verify
pass of speculative decoding, so it comes out with NEXTN even though its name
does not say “speculative”. Leaving it in would have meant a speculation-off
config still carrying speculation machinery.
Throughput is the aggregate output rate — all output tokens over the measured window, not GuideLLM’s per-request mean.
Acceptance statistics#
Both engines already log acceptance on every reporting interval, and the benchmark harness brackets each workload with a UTC timestamp, so every sample can be attributed to the workload that produced it. No instrumentation was needed and no extra GPU time was spent — the speculation-on numbers were mined from logs written weeks earlier.
vLLM SpecDecoding metrics: Mean acceptance length: 3.31,
Accepted throughput: 3435.81 tokens/s, Drafted throughput: 7422.95 tokens/s,
Per-position acceptance rate: 0.719, 0.547, 0.423, 0.342, 0.285,
Avg Draft acceptance rate: 46.3%
SGLang Decode batch, #running-req: 22, token usage: 0.99,
accept len: 3.02, accept rate: 0.41, gen throughput (token/s): 1415.06textResults#
At one stream speculation earns its reputation: +110% on DeepSeek-V4.1-Flash, +84% on GLM-5.3 under EAGLE, and +13% to +65% across the rest — the weakest being GLM-5.3-Flash under MTP. This is the regime every recipe is tuned for and every benchmark headline is drawn from.
At 64 concurrent streams on the same chat-shaped workload, all six pairs go negative — from −5% on GLM-5.3 under MTP to −36% on Qwen3.8 under NEXTN. Not “less helpful”. Slower than not doing it.
Decode-heavy batch work is the exception: BATCH-D (4,096 in → 8,192 out) stays positive everywhere, from +1.5% to +43%.
Why it inverts#
The obvious hypothesis is that drafts stop being accepted once the batch is busy — that the drafter gets worse. That is measurable, and it is wrong.
Acceptance moves by at most 0.10 tokens per step between the two regimes. The drafter is just as good at 64 streams as at one. What changes is what the GPU was doing with the time.
At one stream the GPU is latency-bound: it finishes a decode step and waits for the next token to be sampled before it can start the next. Speculation fills that idle time, and anything the drafter gets right is free.
At 64 streams the batch already saturates the GPU. There is no idle time to fill, so the draft and verify passes are not free any more — they consume compute that would otherwise be serving real requests. A mechanism that accepts 2.7 tokens per step but costs more than 2.7 tokens’ worth of extra compute is a loss, and that is what the middle bars are showing.
Holding concurrency fixed#
Once concurrency is not the variable, acceptance is exactly what separates the workloads. BATCH-D generates 8,192 tokens per request against CHAT-S’s 512, and every mechanism accepts more per step on it.
DSpark picks up the most acceptance on BATCH-D (+0.69 tokens/step) and the most throughput (+59 points). EAGLE on GLM-5.3-Flash picks up none (−0.02) and the least (+32 points). With six points this is a suggestive fit rather than a fitted law, but the direction is consistent and the mechanism is the obvious one.
So the answer to “is it acceptance or is it the longer decode phase?” is both, on different axes. Across concurrency it is saturation and acceptance plays no part. Across workload at fixed concurrency it is acceptance.
The draft length ceiling#
Every recipe drafts 4–7 tokens, the per-position acceptance rates explain why no recipe drafts 20.
DSpark’s first draft token is accepted 87.5% of the time and its fifth 27.8%. GLM-5.3’s MTP decays faster — 67.3% to 15.2%. Each extra position costs a full verify slot for a rapidly shrinking chance of being right, so the curve sets the useful draft length, and the recipes have all landed in the same 4–7 band.
It also explains the ordering in the first chart. DSpark’s decay is the shallowest of the three, which is why DeepSeek-V4.1-Flash gets the biggest single-stream gain in the set.
Conclusions#
These are my conclusions from the tests I have done:
- Serving one request at a time — interactive coding, a local assistant, a latency-sensitive endpoint with light traffic: leave speculation on. It is the single largest lever available, worth up to a doubling.
- Serving loaded chat traffic — dozens of concurrent conversations: turn it off, and take back 5–36%. Every published recipe has it on; this is the one place they are wrong for the job.
- Serving decode-heavy batch work — long generations, offline pipelines: leave it on. Up to +43%.
- In between: measure. The crossover is somewhere between 1 and 64 streams and this campaign did not locate it. It will differ by model.
The broader point is that speculative decoding is a latency optimisation that the ecosystem markets as a throughput one. It buys idle GPU time back. If your GPU has no idle time, there is nothing for it to buy.
Caveats#
- One loaded concurrency point. Everything above at 64 streams is a single point; the crossover is not located.
- CHAT-S runs warm. The chat workload sits at a 59.5% prefix-cache hit rate because a 2,048-token workload runs before it with the same synthetic prompts, so its prefill is unusually cheap. That makes it an unusually clean decode test, which suits this question, but the absolute numbers are not cold-cache.
- Qwen has no published vLLM speculative cell, so NEXTN is measured on SGLang only.
- Per-position rates are vLLM-only. SGLang reports mean acceptance length but not the position breakdown.
- Results are specific to 8×H200 (SM90). On Blackwell, where several of these models get hardware paths they do not have here, the balance may differ.