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]