Match each advanced speculative-decoding variant to its defining mechanism
All four variants cut sequential decode steps by guessing several tokens at once: Medusa uses extra heads, EAGLE predicts hidden states, lookahead runs Jacobi over n-grams, vanilla uses a draft model.
Imagine dictating a letter to a typist who can only write one word at a time, then waits for you to say the next. Slow. Speculative decoding adds an apprentice who guesses the next few words ahead, and you just check the guesses in one glance, keeping the correct ones. The variants differ in who guesses. A separate junior typist is vanilla speculative decoding. Extra hands on your own typist that scribble several guesses at once is Medusa. A typist who anticipates your train of thought, not just your words, is EAGLE. And lookahead is the typist replaying common phrases they have already typed and checking which ones fit. Either way, you verify many words per glance instead of one.
Detailed answer & concept explanation~8 min readEverything 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. 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.
4 min: why decode is memory bound, the four drafters (separate model, Medusa heads, EAGLE hidden states, lookahead n-grams), exact verification, and when batch size kills the win.
| Variant | Drafter | Needs training | Needs second model |
|---|---|---|---|
| Vanilla speculative | Separate small model | No (reuse a small model) | Yes |
| Medusa | Extra heads on target | Yes (heads) | No |
| EAGLE / EAGLE-2 | Hidden-state predictor | Yes (feature head) | No |
| Lookahead | Jacobi n-gram pool | No | No |
Real products, models, and research that use this idea.
- vLLM ships speculative decoding with draft-model, n-gram, and EAGLE-style proposers selectable per deployment in 2026.
- Medusa heads are bundled into TensorRT-LLM and were used to accelerate Vicuna and later Llama-family chat serving.
- EAGLE and EAGLE-2 top the Spec-Bench acceptance-length leaderboard and are integrated into SGLang for low-latency serving.
- Lookahead decoding from LMSYS accelerates Llama and CodeLlama generation with no extra model or training step.
- Together AI and Fireworks expose speculative decoding as a latency mode on Llama 4 and DeepSeek V4 endpoints.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does exact speculative decoding leave the target's output distribution unchanged?
QWhy does EAGLE drafting hidden states beat Medusa drafting tokens on acceptance length?
QWhy does speculative decoding lose its advantage at large batch sizes?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Assuming all four use a separate draft model. Only vanilla does. Medusa and EAGLE bolt onto the target, and lookahead has no draft model and no training at all.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
- Leviathan et al., Fast Inference from Transformers via Speculative Decoding
- Cai et al., Medusa: Simple LLM Inference Acceleration with Multiple Decoding Heads
- Li et al., EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty
- Fu et al., Break the Sequential Dependency of LLM Inference Using Lookahead Decoding
Same topic, related formats. Practice these next.