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.

The top 3

  1. Highest Impact Factor: Acceptance Rate's 2-3x Speedup Threshold: Speculative decoding speedup directly correlates with the token acceptance rate (α); rates of 60% or higher are crucial for achieving 2-3x latency reductions, as lower rates can negate benefits due to wasted verification.
  2. Optimal Draft Model: 1/10 Size, Aligned Data for Peak Performance: Choosing a draft model 1/10 to 1/50 the size of the target model, with a matching tokenizer and similar training data, is vital to maximize acceptance rates and ensure significant speedups, preventing performance degradation.
  3. Speculative Token Count: When More Tokens Means Less Speed: Increasing the number of speculated tokens (γ) only improves performance when the acceptance rate is high; otherwise, proposing too many tokens can introduce overhead and reduce overall speedup due to increased verification of rejected tokens.

Sources

Open the full topic