Speculative Decoding's Core: Acceptance-Rejection Sampling

The Google paper's foundational innovation lies in its use of an acceptance-rejection sampling algorithm. This mechanism precisely compares the draft model's proposed token probabilities against the target model's actual probabilities, ensuring that accepted tokens statistically match the larger model's output distribution.

Sources

Open the full topic