Skip to content

Speculative Decoding Draft

Definition

Draft model — a small and fast language model used in speculative generation for preliminary prediction of token sequences. The larger model then evaluates the proposed tokens and accepts or rejects them, which accelerates generation without loss of quality.

How It Works

  1. Draft model generates K tokens.
  2. The larger model evaluates their probabilities in one pass.
  3. Tokens matching the distribution of the larger model are accepted.
  4. Generation is restarted from the first mismatch.

Requirements for Draft Model

  • Significantly smaller size and latency.
  • High match with the target model's distribution.
  • Capability for fast generation of multiple tokens.

Benefits

  • 2–3 times faster inference.
  • Reduced computational costs.
  • Preservation of output quality.

See Also

← All Terms