Speculative decoding reduces the sequential work involved in generating text. A cheaper drafting mechanism proposes several tokens, and the target model verifies them in a larger computation. Accepted tokens advance the answer; a rejection limits how far the draft can be reused. Correct sampling rules can preserve the target model's output distribution.
The speed benefit depends on how often proposed tokens are accepted and how much drafting and verification cost. It works best when the draft agrees with the target and verification uses hardware efficiently. It is an inference technique, so using it does not by itself train the target model or guarantee better answers.
ELI5
Speculative decoding speeds up AI text generation by using a cheaper method to draft several likely tokens and letting the main model verify them together. Matching tokens are accepted, while incorrect proposals are discarded or replaced.
For example, a small draft model may suggest the next short phrase and a larger model checks it in parallel. The method helps most when drafts are accurate and verification costs less than generating every token one by one.
Does speculative decoding change the target model?
The method changes how generation is carried out. It does not require changing the target model's trained parameters, although the drafting mechanism may be trained separately.
When does speculative decoding save time?
It can save time when drafting is inexpensive, proposed tokens are often accepted and the target model can verify several tokens efficiently. Hardware, workload and implementation affect the result.










