Speculative Decoding

Also known as: draft-and-verify decoding

Quick definition

Accelerating generation by proposing tokens with a smaller model and verifying them with a target model.

Accelerating generation by proposing tokens with a smaller model and verifying them with a target model.

When implemented exactly, accepted tokens follow the target model's distribution while reducing latency on suitable hardware.

Example: A draft model proposes several tokens that a larger model checks in parallel.

Common use cases: Low-latency language-model serving.

Examples

  • A draft model proposes several tokens that a larger model checks in parallel.

Use cases

  • Low-latency language-model serving.

Frequently asked questions

What is Speculative Decoding?

Accelerating generation by proposing tokens with a smaller model and verifying them with a target model.

What should I know about Speculative Decoding?

When implemented exactly, accepted tokens follow the target model's distribution while reducing latency on suitable hardware.

Categories and tags