CurveK: Throughput-Curve Estimation for Batched Speculative Decoding
Guanghui Wang, Ting Ma, Zhiyong Yang, Zitai Wang, Meizhen Liu, Jinfeng Li, Longtao Huang, Hui Xue, Haiwen Hong, Qianqian Xu, Qingming Huang
Abstract
Speculative decoding accelerates large language model inference by drafting multiple tokens and verifying them simultaneously, but its efficiency critically depends on selecting an appropriate draft length . This choice is particularly challenging in batched serving environments, where diverse requests share a common draft length but exhibit different acceptance patterns. Existing methods dynamically adjust using arm-level rewards, draft-side statistics, or acceptance estimates. However, we theoretically show that these signals remain coarse: they do not directly represent how acceptance changes across draft positions in the current batch. This position-specific view defines a throughput curve over candidate draft lengths, whose maximum gives the draft length selected by our objective. Motivated by this insight, we formulate dynamic draft-length selection as estimating the batch throughput curve and choosing its peak. We propose CurveK, a lightweight and easy-to-implement method that estimates this curve from accepted-token depths already returned by the verifier. Importantly, CurveK requires neither additional training nor changes to the verification process. Experiments with 8B and 70B models in vLLM show throughput improvements over baselines across diverse workloads, including mixed-workload settings. Ablation studies validate the design of CurveK, and further analysis shows that its curve estimates consistently select high-throughput draft lengths.
Create a lesson
Metadata
- Comments
- 43 pages. Code is available at https://github.com/Alibaba-VELLDEPTH/CurveK
Related papers
Far, Not Just Long: What Limits Long-Context Speculative Decoding
Shared title terminologycs.CLXiaolin Lin, Kai-Chiang Wu, Freddy Gabbay et al.
Prompt-Based Speculative Decoding for Grammatical Error Correction
Shared title terminologycs.CLRyszard Staruch, Filip Graliński
SQLConsensus: Confidence Estimation in Text-to-SQL from Structural and Execution Agreement
Shared title terminologycs.CLJaeyun Park, Yongbin Choi, Donghee Choi et al.
A Knowledge-Base-Grounded Framework for Task-Agnostic Semantic Communication via In-Context LLM Decoding
Shared title terminologycs.CLShumin Yao, Aini Li, Jiaqiong Zhou et al.
DStreamer: Acceptance-Aligned Diffusion Streaming for High-Throughput Serving and Online RLVR
Shared title terminologycs.CLNikhil Bhendawade, Chris Bartels, Lokesh Boominathan et al.
A Hands-On Introduction to Modern Decoder-Only Transformers
Shared title terminologycs.CLYang He