Speculative Decoding: Over 25% Latency Cut

Speculative decoding cuts LLM latency over 25%; CUDA Graph adds 10% gain in multi-GPU inference.

The top 3

  1. Speculative Decoding's Pioneering LLM Papers: Google Research formally introduced speculative decoding in 2022, with Yaniv Leviathan et al. publishing "Fast Inference from Transformers via Speculative Decoding" in November 2022, and DeepMind's Chen et al. following with a similar approach in early 2023, demonstrating 2x-3x speedups for LLMs.
  2. How Speculative Decoding Achieves 2-3x LLM Speedup: Speculative decoding accelerates LLMs by using a small, fast 'draft model' to propose multiple tokens, which a larger 'target model' then verifies in a single parallel pass. This allows generating several tokens for the cost of one, achieving 2x-3x speedups without compromising output quality, as the final output is identical to the large model's slower generation.
  3. Top Factors for Speculative Decoding Performance: The 'Acceptance Rate'—how often the large model agrees with the draft—is crucial; a low rate can negate speed benefits. 'Self-Speculative Decoding,' a key variation, uses a subset of the large model itself as the draft, reducing memory overhead compared to using a separate small model.

Sources

Open the full topic