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.
The top 3
- Adaptive Speculative Decoding: Up to 49% Faster: Techniques like AdaSD dynamically adjust candidate token generation length and acceptance criteria, achieving up to a 49% speedup over standard speculative decoding with less than 2% accuracy degradation. SpecDec++, another adaptive method, provides an additional 7.2% to 11.1% speedup by predicting token rejection probabilities.
- Tree Speculative Decoding: Up to 3x Throughput Boost: Advanced methods such as EAGLE-3 and SpecInfer utilize tree attention to propose and verify multiple chained token hypotheses simultaneously in a tree structure. This approach significantly improves token acceptance rates and can lead to up to a 3x throughput increase, particularly beneficial for long sequence generation.
- Model-Integrated & Model-Free Speculation: New Architectures: Beyond separate draft models, techniques like EAGLE-3 integrate a lightweight autoregressive prediction head directly into the target model's internal layers, eliminating the overhead of a second model. Model-free approaches such as suffix decoding can achieve blazing speeds of 20 microseconds per speculated token on the CPU for repetitive generation.
Sources
Open the full topic