Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
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.
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.
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.
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.