Optimal Draft Model Size and Speculation Length Ratios
The ideal draft model size typically ranges from 1/10 to 1/50 the target model's parameters, balancing fast generation with sufficient accuracy for high acceptance rates. The optimal number of tokens to speculate (draft length) is dynamic; for instance, acceptance rates above 60% can support larger draft lengths (e.g., 7-10 tokens) for maximum speedup, whereas lower rates benefit from fewer tokens (e.g., 3-5) to avoid wasted computation.
The top 3
- Ideal Draft Model Size: The 1/10th Rule for Speed: For optimal speculative decoding performance, the draft model is typically at least 10 times smaller in parameters than the target LLM. For instance, a 7B parameter draft model is often paired with a 70B target model to balance fast draft generation with sufficient accuracy for high acceptance rates.
- Speculation Length vs. Acceptance Rate: Optimal Balance: The optimal speculation length (γ, number of draft tokens) is directly tied to the acceptance rate (α). For high acceptance rates (α ≥ 0.7), a longer γ (7-10 tokens) maximizes speedup, whereas lower α (<0.5) benefits from a shorter γ (3-5 tokens) to prevent wasted computation.
- Dynamic Speculation Length: Adapting for Peak Performance: While fixed speculation lengths are common, dynamic methods like DISCO are emerging to adjust the speculation length at runtime based on real-time factors. This adaptive approach has shown to yield average speedup gains of over 10% compared to static configurations, optimizing for varying predictability and system loads.
Sources
Open the full topic