Home Tools Glossary Speculative Decoding
Technique

Speculative Decoding

Speculative Decoding Algorithm

/spek-yuh-luh-tiv dee-koh-ding/

An inference acceleration technique that uses a small draft model to propose token sequences verified in parallel by a large target model.

In plain English
Speculative decoding is like an intern drafting a letter quickly while the senior expert glances over it once to approve several words at a time, drastically speeding up overall writing speed.
Real-world example
Doubling token generation throughput in commercial API serving clusters without accuracy loss.
Technical definition
Speculative decoding accelerates LLM inference by pairing a lightweight draft model with a large target model. The draft model autoregressively generates a candidate sequence of tokens, which the target model evaluates in a single parallel forward pass. Accepted tokens bypass sequential generation bottlenecks, yielding speedups without compromising output distribution quality.