First Formal Introduction: Google's Speculative Decoding Paper

Yaniv Leviathan et al. from Google Research introduced the concept in their November 2022 arXiv paper, "Fast Inference from Transformers via Speculative Decoding," demonstrating 2x-3x speedups on models like T5-XXL by using a smaller draft model for token proposals.

The top 3

  1. Google's Paper: Dual-Model Core & Output Fidelity Guarantee: The foundational Google paper, "Fast Inference from Transformers via Speculative Decoding" (2022), introduced a two-model approach: a smaller 'draft' model proposes tokens, which a larger 'target' model then verifies in parallel. Crucially, this method guarantees an identical output distribution to the original model, ensuring no loss in quality.
  2. Initial 2-3x Speedup: Google's Benchmarks on T5-XXL: Google's original paper demonstrated significant performance gains, achieving 2x to 3x acceleration in inference speed for large language models like T5-XXL. These improvements were showcased on critical tasks such as translation and summarization, highlighting the practical benefits of speculative decoding.
  3. 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