Speculative Decoding Performance
Overview
Speculative generation performance is an assessment of the efficiency of a method where a fast draft model generates several tokens, which are then verified by a larger model. The key metric is the speedup coefficient compared to standard autoregressive decoding.
Key Metrics
- Acceptance Rate — the proportion of tokens from the draft model accepted by the target model.
- Speedup — the ratio of generation time without speculation to generation time with speculation.
- Tokens per Second — the final generation rate.
Factors Affecting Acceleration
| Factor | Influence |
|---|---|
| Model Distribution Match | Higher match increases acceptance rate |
| Length of Draft Sequence | Optimal length depends on acceptance rate |
| Verification Cost | Parallel verification reduces overhead costs |
| Size of Draft Model | Smaller model is faster but has lower acceptance rate |