Lattice
Skip to content

Speculative decoding

Using a small draft model to propose several tokens at once, which a large model then verifies in a single pass.

By Entry last reviewedmethod

What it implies

It is exact, the output distribution is unchanged, and speeds up decoding where it is bottlenecked on memory bandwidth rather than compute. The gain depends on the draft model agreeing with the target, so it helps most for predictable text and least for genuinely creative work. Worth trying when you have already exhausted batching and quantisation.

Related terms

Rules of thumb

  • A definition is only useful next to the decision it changes. Read the linked layer to see where this term bites.
  • If a vendor's definition differs from this one, ask what it measures. Marketing definitions rarely name a number.
  • Every optimisation spends latency, memory or quality somewhere. Find out which before you turn it on.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.