Speculative Decoding is a lossless speedup for autoregressive generation: a lightweight draft model predicts
γ tokens, the target LLM verifies them in parallel — one forward pass computes logits at
γ+1 positions — accepting the matching prefix and correcting mismatches via acceptance-rejection sampling. Speedup
E≈1−α1−αγ (
α = acceptance rate,
γ = draft length); EAGLE/Medusa instead add tree-structured heads to the target model to predict multiple future tokens, needing no separate draft model.