TETRIS: Optimal Draft Token Selection for Batch Speculative Decoding

Zhaoxuan Wu, Zijian Zhou, Arun Verma, Alok Prakash, Daniela Rus, Bryan Kian Hsiang Low

Introduction

Large Language Model (LLM) inference is traditionally limited by its autoregressive nature, generating one token at a time. Speculative Decoding (SD) mitigates this by using a smaller "draft" model to predict a sequence of tokens, which a larger "target" model then verifies in parallel. However, standard SD implementations typically employ a fixed draft window size for all requests in a batch. This approach is suboptimal because it fails to account for the varying difficulty of requests; "easy" requests with high draft accuracy are capped, while "hard" requests waste computation on tokens likely to be rejected.

The TETRIS Algorithm

To address this inefficiency, the authors introduce TETRIS, a greedy selection algorithm designed to maximize throughput in batch settings. TETRIS dynamically allocates the GPU's verification capacity by selecting the most promising draft tokens across the entire batch.

Comparison between Standard SD with a fixed draft window and TETRIS with dynamic selection of draft tokens.

The core of TETRIS is a Max-Heap strategy that prioritizes tokens based on their cumulative acceptance probability—the product of the draft model's output probabilities for all preceding tokens in that sequence. This allows the system to "cut losses" on sequences with low predicted success and reallocate resources to sequences that are more likely to yield accepted tokens. This dynamic fitting of variable-length draft sequences into a fixed verification budget is analogous to the game of Tetris.

Experimental Evaluation

The researchers evaluated TETRIS across several diverse datasets: ShareGPT (general interactions), Chatbot Arena (benchmarking prompts), Domain Tough Questions (complex multi-domain queries), and Sonnet (synthetic robustness tests).

Key Results and Throughput Gains

TETRIS consistently outperforms both standard SD and existing dynamic window methods like DSD. The algorithm achieves significant improvements in total throughput and latency reduction.

Throughput performance of TETRIS vs. Standard SD and DSD across different datasets (ShareGPT, Arena, Tough) and experimental settings.

As shown in the experimental results, TETRIS provides up to a 9.27% throughput increase over standard SD and a 5.25% improvement over the strongest baseline. Beyond raw speed, TETRIS significantly enhances the Verification Success Rate (VSR) by 20% to 30%, ensuring that the target model's parallel processing power is spent on tokens with a high likelihood of acceptance.

Discussion and Future Outlook

A primary insight from the study is that the sequential nature of current serving pipelines (like vLLM) introduces drafting overhead that can limit gains. TETRIS requires generating "extra" candidate tokens to choose from, which adds time before verification begins.

The authors project that in future parallelized pipelines—where drafting and verification occur concurrently—TETRIS could deliver throughput boosts as high as 12%. Future work will also explore integrating TETRIS with tree-based speculative decoding and developing more sophisticated surrogate measures for predicting token acceptance.

Conclusion

TETRIS represents a significant step forward in optimizing LLM inference for batch processing. By moving from fixed-window drafting to a globally optimized, greedy selection strategy, it effectively maximizes the utility of limited GPU verification capacity across diverse user requests.

Summary updated

BibTeX
@inproceedings{wu2025tetris,
  author = {Zhaoxuan Wu and Zijian Zhou and Arun Verma and Alok Prakash and Daniela Rus and Bryan Kian Hsiang Low},
  title = {{TETRIS: Optimal Draft Token Selection for Batch Speculative Decoding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure