Key facts
- Speculative decoding speeds up a large language model by pairing it with a smaller, faster draft model (or a draft head). The draft proposes several next tokens; the large model checks them in one parallel pass and keeps the prefix it agrees with.
- When the rejection rule is done correctly, the output distribution stays that of the large model. You get the big model’s answers, not a watered-down compromise — just more tokens per expensive forward pass.
- Speedup depends on how often the draft is right. Easy, predictable tokens accept well; surprising tokens get rejected and you fall back to the large model for that step.
- This is now a standard serving feature: vLLM, SGLang and llama.cpp all document it. Liquid ships a 328M DSpark drafter for LFM2.5-24B-A2B and reports up to 2.4× output throughput at concurrency 1 on a B300 with an FP8 target in SGLang. Reflection’s Beam ships a DFlash2 drafter. Those figures are vendor-reported, on specific hardware.
Generating a token with a big model is expensive because you usually run the whole network once per token. Speculative decoding is a way to make that pass cover several tokens at once. This explainer covers the idea, when the speedup shows up, and how it appears in today’s tools.
The idea, without the paper jargon
Think of a fast junior typist and a careful editor. The typist writes the next five words. The editor reads all five at once, keeps the words they agree with, and crosses out the first mistake and everything after it. Then the typist starts again from there.
In a decoder, the “typist” is a small draft model — or a slim draft head trained to predict the large model’s tokens. The “editor” is the large target model. The cheap trick is that the target can score those drafted tokens in parallel, in a single forward pass, instead of running once per token.
The algorithm then:
- Accepts the longest prefix of draft tokens that the target would have chosen (under a specific acceptance rule).
- Samples a corrected token at the first rejection, if any.
- Starts a new draft from that point.
If the rule is the one from the speculative decoding literature (Leviathan et al., and follow-on work), the stream you see matches what the target model would have produced on its own. That is the point. You are not switching to a weaker model; you are checking a guess.
When it is fast, and when it is not
The speedup is roughly: how many drafted tokens get accepted, versus the extra cost of running the draft model. A well-matched drafter on easy text might accept several tokens at a stretch. On code, rare names, or a sudden topic change, accept lengths shrink and the benefit fades.
A few practical rules:
- The draft should be smaller and cheaper, but trained or chosen to imitate the target. A random small model drafts poorly.
- Draft length is a setting, not a magic number. Too short and you barely batch any work. Too long and you waste draft compute on tokens you will throw away.
- Batch serving changes the math. Liquid’s LFM2.5 docs say DSpark averages 2.4× output throughput at concurrency 1 (up to 3.1×) and 1.7× at concurrency 256 on a B300. Higher concurrency already keeps the GPU busy, so the relative gain shrinks.
- Memory is not free. You have to load the drafter alongside the target. A 328M sidecar is a small tax; a poorly chosen draft can crowd out KV cache.

How it shows up in tools you already use
You do not have to implement the algorithm to benefit from it.
- vLLM has first-class speculative decoding, including draft-model and draft-head methods, documented in its serving guides and discussed in project office hours.
- SGLang supports several drafters. Liquid documents DSpark flags such as
--speculative-algorithm DSPARK, a draft-model path, a block size of 9 for its LFM2.5 drafter, and--speculative-num-draft-tokens. - llama.cpp documents
--spec-type(includingdraft-dsparkwhen the build is new enough). Liquid’s example uses-hffor the target GGUF,-hfdfor the drafter, and--spec-draft-n-max. The sidecar has no embeddings or LM head, so it cannot run alone. - Some model releases now ship a drafter on day one: Liquid’s LFM2.5-24B-A2B-DSpark, and Reflection’s Beam with DFlash2, among others.
If you run a single user on a local GPU, speculative decoding is often worth turning on when a matching drafter exists. If you already saturate the GPU with many concurrent requests, measure before you assume a 2× win.
Watch: a short explanation
Bottom line
Speculative decoding is a draft-then-verify loop that can make a large model emit several tokens per expensive pass, without changing the answers if the acceptance rule is correct. Use a drafter built for your target, keep an eye on memory, and measure at the concurrency you actually run. When a lab ships a sidecar model with the weights, that is usually the drafter to try first.
Sources: Liquid AI LFM2.5-24B-A2B docs (Speculative Decoding), Hugging Face, Welcome Beam (October 16, 2026), vLLM documentation. The original algorithm is described in Leviathan, Kalman and Matias, “Fast Inference from Transformers via Speculative Decoding,” 2023. Facts checked November 19, 2026.
Cover image: Hugging Face (official image)
