Draft-Then-Verify: Speculative Decoding's Core

Speculative decoding achieves 2-3x LLM speedup by employing a lightweight 'draft model' to rapidly propose a block of candidate tokens, which the main 'target model' then verifies in a single parallel forward pass. This 'draft-then-verify' pipeline significantly reduces the sequential computation bottleneck of traditional autoregressive decoding.

The top 3

  1. Who Pioneered Speculative Decoding's Core?: The foundational 'draft-then-verify' technique for speculative decoding, which significantly reduces LLM inference times, was introduced in 2022 by researchers at DeepMind and Google.
  2. Two Models, One Pass: The Core Mechanism: Speculative decoding's core involves a lightweight 'draft model' rapidly proposing multiple tokens, which a larger 'target model' then verifies in a single, parallel forward pass, drastically cutting sequential generation steps.
  3. Acceptance Rate: The Speedup's True Driver: The effectiveness of speculative decoding hinges on the 'acceptance rate' – how often the target model confirms the draft model's predictions, with higher rates (e.g., in code generation) typically yielding 2-3x speedups.

Sources

Open the full topic