Speculative decoding promises faster tokens — when does it actually deliver?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Describe how speculative decoding lowers decode latency and the condition under which it stops paying off.
Speculative decoding has a cheap draft model guess several tokens that the big model verifies in one pass — it only wins when acceptance is high.
Imagine a slow expert proofreading a document. Instead of writing one word at a time, a fast intern jots down the next few words they expect, and the expert glances at the whole guess at once — keeping the part that's right and fixing the first wrong word. When the intern guesses well, the expert finishes way faster because checking a sentence is barely slower than checking one word. When the intern guesses badly, the expert ends up redoing most of it, and the trick saves almost nothing.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Spend 6-8 minutes connecting the draft-verify mechanism to decode's memory-bandwidth limit, then derive when acceptance rate makes it net positive.
| Regime | Acceptance | Net effect |
|---|---|---|
| Predictable / in-distribution text | High (e.g. 70-90%) | Several tokens per target step; large latency cut |
| Hard / out of distribution text | Low (e.g. 20-30%) | Draft + verify cost barely amortized; little gain |
| Heavy continuous batching | Any | GPU already compute-bound; spare capacity shrinks, win fades |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Claiming a fixed 2-3x speedup as if it were free, instead of tying it to the draft model's acceptance rate on the actual workload.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.