The Bottleneck in Large Model Inference: The “Serial Curse” of Speculative Decoding
When Large Language Models (LLMs) generate content, the standard auto-regressive decoding method produces only one token at a time. This severely limits their inference speed and fails to fully utilize the massively parallel computing capabilities of modern hardware. To address this, the industry has adopted “Speculative Decoding” (SD) as a mainstream acceleration technique.
The core principle of speculative decoding is to use a small, fast “draft model” to preemptively generate a sequence of tokens (a draft). The original large “target model” then verifies these tokens in parallel with a single forward pass. While effective, this method suffers from an inherent “serial curse”: the drafting process can only begin after the target model has completed the previous verification round. This serial dependency leaves hardware idle while waiting for verification results, creating a bottleneck in inference efficiency.

The SSD Framework: Achieving Parallelization of Drafting and Verification
To completely break this bottleneck, a research team from Stanford University, Princeton University, and Together AI has proposed a new framework called “Speculative Speculative Decoding” (SSD). The core innovation of SSD is achieving parallel execution of the drafting and verification stages.
Under the SSD framework, the draft model no longer waits passively. It proactively predicts several likely outcomes from the target model’s verification stage, such as “accept 3 draft tokens and sample ‘A’ as a bonus token.” Based on these predictions, the draft model then parallelly generates the next round of speculative tokens for each possible outcome on separate hardware ahead of time. Simultaneously, the target model performs its verification task on another set of hardware.
When the target model’s verification is complete, if its result matches one of the draft model’s predictions, the pre-computed token sequence can be accepted immediately. This completely eliminates the waiting overhead of the drafting stage. Importantly, like traditional SD, the SSD framework is a lossless optimization technique, ensuring that the final generated token distribution is identical to that of the target model.
The Saguaro Algorithm: Optimization from Theory to Practice
While SSD provides a theoretical framework, Saguaro is the concrete optimization algorithm designed by the team to implement it. Saguaro’s development aims to solve three major challenges faced when putting SSD into practice:
Accurately Predicting Verification Outcomes: Saguaro transforms the problem of predicting verification outcomes into a constrained optimization problem. It uses the draft model’s logits to predict the bonus token, achieving up to 90% accuracy in experiments.
Balancing Prediction Accuracy and Speculation Quality: Overly conservative predictions reduce the acceleration effect, while overly aggressive speculation increases the probability of rejection. Saguaro employs a specialized sampling algorithm to strike the optimal balance between the two.
Efficiently Handling Prediction Failures: When all predictions fail, the system needs a fallback strategy. Saguaro investigates various strategies and finds that the optimal one depends on factors like batch size, allowing for dynamic adjustments to minimize performance loss.
Through these optimizations, the Saguaro algorithm improves performance by 20% compared to standard speculative decoding.
Significant Performance Gains and Systems Engineering Challenges
Experimental results for the Saguaro algorithm demonstrate its powerful acceleration capabilities. Compared to a highly optimized speculative decoding baseline, Saguaro achieves a speedup of up to 2x. Compared to traditional auto-regressive generation, the speedup is as high as 5x. The algorithm significantly improves the Pareto frontier of latency and throughput across various batch sizes.
Researcher Tanishq Kumar pointed out that achieving this result relied not only on algorithmic innovation but also on overcoming substantial systems engineering challenges. The team spent considerable time co-designing Saguaro with complex optimization techniques in modern inference engines, such as Paged Attention, Prefix Caching, and CUDAGraphs, and solved tricky CPU/GPU synchronization issues.
Future Outlook: Unlocking More Efficient AI Computation
The success of SSD and Saguaro opens up new avenues for large model inference optimization. The research team notes that the framework can be naturally combined with other advanced techniques like EAGLE and token-tree speculation to explore even greater potential for performance gains.
Future research directions also include further reducing latency by increasing the number of drafting devices and deploying shared speculative endpoints across multiple target models at the cluster level. These advancements will continue to lower the cost of using large models, enhance real-time interactive experiences, and enable very long-range inference tasks that require processing massive amounts of tokens, such as in scientific discovery and complex code generation.