CARD NEWS · AI fundamentals

Speculative Decoding · 4 cards

Four cards for social posts, teaching materials and presentations. Capture the screen or print to a PDF.

1/4
AI fundamentals

Speculative Decoding

Speculative decoding is an inference speed-up technique for large language models. A small, fast draft model proposes several next tokens, and the large target model checks them all in one parallel pass, keeping every token up to the first one it rejects.[1] From that point the target model supplies a replacement token under its decoding rule and the cycle repeats. A special sampling rule guarantees that the output follows the same probability distribution as the target model running alone, allowing speed gains without changing the intended sampling distribution, subject to numerical precision.[1][8] Google researchers published the method in 2022, and DeepMind described the same idea as "speculative sampling" in early 2023.[1][2]

2/4
In simple terms

An easy way to understand

" A small, quick model writes the next few words ahead of time, and the large, accurate model checks them all at once. Tokens accepted by the target model’s verification rule are kept; generation resumes from the first rejected position.

3/4
Where it is used

Who uses it, and when?

Case 1: Google — The original paper and use in Google products Google researchers introduced speculative decoding in 2022.[1] A smaller approximation model drafts tokens and the large model verifies them, so existing…

4/4
Learn more

ai.rookienote.com
/en/term/speculative-decoding

RookieNote
← Read the full entry

Capture these cards or print them to a PDF.