Acceptance Rate vs. Latency: The Draft Model's Optimal Balance
While low latency is crucial, a draft model must also maintain a high token acceptance rate (over 80% for 2-3x speedup) with the target model, as low accuracy leading to rejections can nullify speed gains despite fast generation.
The top 3
- Key Factors for Maximizing Draft Model Acceptance Rate: A high acceptance rate, crucial for speculative decoding speedups, is primarily achieved by training the draft model on data *similar* to the target model and using specialized objectives like LK losses, which can yield 8-10% gains in average acceptance length over standard KL divergence. Distilled versions of the target model are also good candidates.
- 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.
- Beyond Draft Model: Advanced Speculative Decoding Latency Optimizations: To further reduce latency, advanced techniques like Speculative Speculative Decoding (SSD) and LayerSkip are emerging. SSD parallelizes the drafting and verification steps, achieving up to 2x speedup over optimized speculative decoding. LayerSkip reduces memory overhead by using the target model's own early layers as a draft, which can offer up to 2.16x speedup on H100 GPUs for models specifically trained for it.
Sources
Open the full topic