Greedy Multi-Path Block Verification for Faster Decoding in Speculative Sampling
Organizations: Ritual · Columbia University
Abstract
The goal of -step speculative decoding is to accelerate autoregressive decoding of a target model by using a cheaper draft model to generate a candidate path of tokens. Based on a verification algorithm involving target and draft model probabilities, a prefix of the candidate sequence is accepted, and an additional correction token is sampled from a residual distribution to ensure that the final output adheres to the target distribution. While standard speculative decoding uses a verification algorithm which is independent at each token on the path, a recent extension called block verification uses a joint condition involving all sampled on-path probabilities. Block verification (BV) was shown to be optimal over all verification algorithms which use only on-path probabilities, improving on standard speculative decoding. In this work, we first show that block verification is optimal even over verification algorithms that use off-path probabilities, by constructing an information-agnostic linear program (LP). Further, we can extend our LP to the setting where the draft model samples multiple candidate paths, and use it to construct a natural class of multi-path block verification generalizations. While computing the optimal algorithm in this class is not tractable, by considering a stricter class of greedy algorithms, we can formulate an efficient method called greedy multi-path block verification (GBV). Empirically, GBV can improve block efficiency by over 30% and reduce decoding walltimes by over 15% relative to BV. On Llama-3 70B, GBV can improve the end-to-end decoding throughput over SOTA multi-path verification methods by more than 15%.
Figures & tables
| Model pair | Block efficiency (tokens/ -call) | |||
|---|---|---|---|---|
| GSM8K | HumanEval | MATH500 | ||
| OPT 6.7B/350M | 1 | 3.294 | 3.157 | 3.227 |
| 2 | 3.827 | 3.538 | 3.721 | |
| 3 | 3.867 | 3.809 | 3.856 | |
| 4 | 3.884 | 3.863 | 3.896 | |
| OPT 6.7B/125M | 1 | 2.937 | 2.653 | 2.814 |
| Model pair | Walltime (ms/token) | |||
|---|---|---|---|---|
| GSM8K | HumanEval | MATH500 | ||
| OPT 6.7B/350M | 1 | 44.482 | 46.955 | 45.851 |
| 2 | 39.592 | 43.373 | 40.473 | |
| 3 | 38.862 | 41.017 | 38.889 | |
| 4 | 48.473 | 50.656 | 48.440 | |
| OPT 6.7B/125M | 1 | 34.479 | 38.824 | 36.022 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Model pair | Dataset | Block efficiency (tokens/ -call) | |||
|---|---|---|---|---|---|
| Qwen-3 32B/0.6B | GSM8K | 4.322 | 3.910 | 3.571 | 3.429 |
| HumanEval | 4.204 | 3.423 | 3.331 | 2.960 | |
| MATH500 | 4.342 | 3.917 | 3.693 | 3.411 | |
| MGSM | 4.329 | 3.973 | 3.468 | 3.445 | |
| ToolBench | 3.090 | 2.706 | 2.791 | 2.681 | |
| Model pair | Dataset | Walltime (ms/token) | |||
|---|---|---|---|---|---|
| Qwen-3 32B/0.6B | GSM8K | 79.638 | 92.823 | 100.547 | 106.123 |
| HumanEval | 84.166 | 106.051 | 109.215 | 124.554 | |
| MATH500 | 81.517 | 91.133 | 97.880 | 106.575 | |
| MGSM | 80.992 | 90.312 | 102.296 | 105.387 | |
| ToolBench | 113.563 | 132.477 | 128.405 | 133.973 | |
| Temp. | Block Efficiency | Throughput | Walltime | |
|---|---|---|---|---|
| (tokens/ -call) | (tokens/s) | (ms/token) | ||
| 1 | 0.2 | 3.867 | 11.034 | 90.626 |
| 1 | 0.4 | 4.313 | 12.407 | 80.598 |
| 1 | 0.6 | 4.308 | 12.368 | 80.851 |
| 1 | 0.8 | 4.430 | 12.761 | 78.362 |
| 1 | 1.0 | 4.322 | 12.557 | 79.638 |
| Block Efficiency | Walltime | Draft Cost | Target Cost | ||
|---|---|---|---|---|---|
| (tokens/ -call) | (ms/token) | (%walltime) | (%walltime) | ||
| 8 | 1 | 4.322 | 79.638 | 71.5 | 21.3 |
| 2 | 3.910 | 92.823 | 71.3 | 21.0 | |
| 3 | 3.571 | 100.547 | 71.1 | 21.1 | |
| 4 | 3.429 | 106.123 | 70.8 | 21.3 | |
| 16 | 1 | 5.667 | 102.970 | 81.7 | 13.2 |
| Temp. | Method | Block Efficiency | Throughput | Walltime | |
| (tokens/ -call) | (tokens/s) | (ms/token) | |||
| 1.0 | 2 | GBV | 4.430 | 7.508 | 133.188 |
| SpecTr | 3.716 | 6.355 | 157.365 | ||
| SpecInfer | 3.259 | 5.603 | 178.480 | ||
| Traversal | 4.760 | 8.114 | 123.245 | ||
| 1.0 | 3 | GBV | 4.271 | 7.338 | 136.272 |
Speculative Decoding
Speculative decoding accelerates generation by drafting multiple tokens and verifying them in parallel with a larger target model.
See all 308 papers