Artificial intelligence · 9 min read
4.46× to 10.87×,same model, no retraining.
Speculative decoding as shipped left half its gain on the table: 4.46× over autoregressive decoding instead of 10.87×. The useful result is not the speed. It is the method that caught a 2% wrong kernel that every quality benchmark scored as identical.
Key takeaways
- Speculative decoding as shipped reaches 4.46× over autoregressive decoding; tuned for one specific deployment it reaches 10.87× with one request and 3.93× with batching, with no training and no quality loss.
- The bottleneck is not acceptance, it is the weight stream: 18.58 ms for 64 verified rows against 17.88 ms for one. With batching, the same optimisation can cost 13% of speed.
- The transferable result: a faulty kernel pushes token mismatch from 0.72% to 2.0% while task accuracy moves by only 1.6 points. Your eval suite will not see it.
The bottleneck is not acceptance, it is memory bandwidth
Speculative decoding speeds up generation by having a small drafter propose several tokens, then verifying them in a single pass of the large model. Recent parallel drafters (DFlash, DFlash2, DSpark) propose a whole block of 8 or 16 tokens per pass. Yet the systems shipped with those drafters sit well below the speedup the method allows, and the Berkeley team behind SpecPilot (arXiv 2611.02501, 2 November 2026) measures the gap instead of estimating it.
One request is a weight stream. Each step accepts few tokens but reads every target weight, so verifying more rows is nearly free: GEMM time grows from 17.88 ms for one row to 18.58 ms for 64. After the first optimisation round, weight reads still took 80% of a 23.61 ms step. If your traffic is single-request, the lever is not the drafter: it is the number of bytes read per accepted token.
With batching, every row costs time. Each request adds its own attention, recurrent state and prefill, so weight reads stop dominating. On Qwen3.8-27B in FP8, stock speculative decoding falls from 3.40× with one request to 1.89× with 24 concurrent requests. The number you read in a launch post is a single-request number.
No optimisation is universal. Checking drafts against a low-precision copy of the target speeds up the single-request case, but with batching on BF16 Qwen3.8-27B the same idea is 13% slower, because the extra check costs nearly a full step. That is precisely why a frozen recipe cannot be enough.
What the loop found, deployment by deployment
The method: a cost model compares the measured system against a computed ceiling (the ideal step, every kernel at its byte floor) and ranks the gaps. Agents explore in parallel, one direction per GPU. A controller — scripts the agents can call but cannot modify — promotes a patch only if the 95% lower bound of its gain exceeds 1% plus twice the stock-versus-stock noise (below 0.1% with one request on H100). Since individual gains are small, an integration sub-agent stacks the accepted patches and times the stack under the same rule.
| Speedup over autoregressive | Stock | Tuned per deployment |
|---|---|---|
| One request (4 models, 3 drafters, 2 GPUs, 5 benchmarks) | 4.46× | 10.87× |
| With batching | 1.94× | 3.93× |
The most reusable mechanism is not the draft tree, it is the weight format. W12 starts from a simple observation: inside an output channel, most BF16 weights span only a few powers of two. W12 picks, per channel, the 16-binade window covering the most weights, stores each weight as its sign, a 4-bit exponent offset and seven mantissa bits — 12 bits — and sends the outliers to a sparse escape list that restores them exactly. Measured: 12.01 to 12.02 bits per weight across eight dense models, with Qwen3.8-27B's converted layers shrinking from 44.67 GB to 33.58 GB. The GEMM decodes records in registers and beats cuBLAS on every projection tested (1.19–1.47× at one row, 1.17–1.35× at 32 rows).
What that buys with no speculation at all, in SGLang: 1.19–1.28× with one request and 1.13–1.20× with 32 across four models from 8B to 30B, with 14 to 22% less weight memory. And here is the least discussed consequence: fewer weight bytes means more room for KV cache — a 2.0× pool on Qwen3.8-27B. On a long-context service, the throughput you gain often comes from there, not from the speedup factor.
On verification, moving from a single chain to a best-first tree of 32 nodes raises accepted tokens per step from 4.25 to 5.38 on the same lattice, and to 5.85 with a 16-position drafter. On a hybrid target such as Qwen3.8-27B, 48 of 64 layers carry a Gated DeltaNet recurrent state that stock snapshots at every verified position; SpecPilot recomputes the state along each root path instead of copying snapshots.
The failure accuracy cannot see
This is the part that matters even if you never write a line of CUDA. An agent rewarded for speed will eventually adopt a numerical shortcut that changes outputs without moving accuracy. The authors inject one on purpose: a logit bias of +2 on every seventh vocabulary id, after 2,048 tokens. On Qwen3.8-27B, task accuracy drops 1.6 points for the faulty system and 0.3 points for the correct one, with overlapping confidence intervals. Across all four systems tested, every interval includes zero.
The line to rememberA quality benchmark measures what the model knows. It does not measure whether your inference stack makes it say something else.
Their guardrail therefore compares tokens, not scores. Token forcing replays every output through the stock engine and flags every token that differs from the scorer's argmax. Stock itself mismatches on 0.72% of tokens, almost all near-ties from kernel rounding. A system is rejected if its rate exceeds stock's by more than 0.5 points at 95% confidence, or if it produces more unexplained large-margin mismatches.
| System | Token mismatch | Δ task accuracy |
|---|---|---|
| Stock (reference) | 0.72% · 0.53% | — |
| Correct, lossless | 0.73% · 0.52% | −0.3 pts |
| Faulty (logit bias +2) | 2.0% · 2.4% | −1.6 pts |
Both correct systems match stock; both faulty ones are rejected. No task-quality metric told them apart. If you keep one thing from this paper, keep this: an inference pipeline regression is measured per token, not per score.
Honest caveat: this is a 2 November 2026 preprint, not peer reviewed, with a benchmark built by the authors and a modelled rather than observed cost ceiling. The speedup numbers hold for these four models, three drafters and two GPUs — which is exactly the paper's thesis. Nothing here promises a 10.87× on your traffic.
When to use it, when to skip it
Look closely if you self-host open models: the gap between "we enabled speculative decoding" and "we tuned it for this deployment, drafter and GPU" is a factor of 2.4 with one request and 2.0 with batching. If your traffic is mostly single-request or small batch, weight reads dominate: a 12-bit format changes the GPU bill at constant model quality.
Skip it if you call an API: none of this is actionable inside a vendor. Skip it too if you cannot build a sealed test — an agentic loop without a guardrail that rejects fake gains is a reward-hacking machine. And skip it if your bottleneck sits elsewhere: long-prompt prefill, network, quotas. Saving 20% of decode time on a prefill-dominated service will not show in your p95.
Checklist before touching your serving stack
- Measure the real gain, not the announced one. Speedup = accepted tokens per step ÷ step cost. Log both separately: a high acceptance rate on a heavy step buys nothing.
- Sweep batch size. 1, 8, 24: the ranking of optimisations changes. The single-request setting and the batched setting are not the same setting.
- Compare token by token, not score by score. Replay the same prompts through the accelerated engine and the reference engine in teacher forcing, and count argmax mismatches. A 0.5-point tolerance above stock's noise is a reasonable starting point.
- Keep a sealed request set. Patches are promoted on requests the optimiser never saw. Do the same, or you are measuring the optimiser's memory.
- Prove "lossless" bit for bit. A lossless weight format is verifiable: every decoded tensor must equal the checkpoint. Otherwise it is not lossless, it is quantization with a nicer name.
Need help designing reliable AI workflows, auditing an LLM architecture or measuring the real cost of an inference pipeline? See how we work at Kaleido-Lab.