TableTune:用于动态推测解码的可测量自校正草稿长度表
TableTune: Measured, Self-Correcting Draft-Length Tables for Dynamic Speculative Decoding
AI总结:
TableTune是用于动态推测解码的可测量自校正草稿长度表,可通过调谐器计算最优表、控制器在线更新,在多场景下提升LLM服务吞吐量,性能优于vLLM文档表及TurboSpec等方法。
摘要:
推测解码仅在GPU有空闲算力时能加快大语言模型(LLM)的服务速度,因此最佳草稿长度(小草稿模型每步猜测的token数量)会随批次增大而缩小。vLLM允许操作人员为每个批次大小设置手动编写的草稿长度表,但该表缺乏测量或校正机制。本文提出TableTune,其调谐器会在vLLM自身服务路径上测量每个批次大小和草稿长度的解码步骤耗时,并在数分钟内计算出使吞吐量最大化的表;其控制器作为vLLM插件,会跟踪在线流量中被接受的猜测数量,并在服务过程中重建该表。本文仅将TableTune与其他推测方法对比:在H100上,5种草稿模型设置中有4种的调谐表在所有负载下至少达到最佳固定草稿长度吞吐量的94%(第5种为88%),无需操作人员知晓最佳长度;在同一引擎上与TurboSpec和Nightjar风格控制的重实现对比,其最坏情况损失从未超过后者,在EAGLE-3草稿模型上其损失为3%,而后者分别为9%和12%;在混合专家模型上,vLLM的文档表损失最高达18%,调谐表损失最多3%;从调谐不当的表开始,控制器可将吞吐量提升最高58%(vLLM默认运行器上最高45%),在使用DFlash草稿模型的工作负载切换后,可恢复陈旧表损失的96%;在llm-d优化基线部署(4个GPU上的2个Qwen3-32B副本)中,调谐表比固定草稿长度3的速度最高快32%,比vLLM文档表在高负载下最高快25%,控制器可将文档表的吞吐量提升最高29%。
英文摘要:
Speculative decoding speeds up large language model (LLM) serving only while the GPU has spare compute, so the best draft length, the number of tokens a small drafter guesses per step, shrinks as the batch grows. vLLM lets operators set the draft length for each batch size with a hand-written table, but nothing measures or corrects that table. We present TableTune. Its tuner times the decoding step for every batch size and draft length on vLLM's own serving path and computes, in minutes, the table that maximizes throughput. Its controller, a vLLM plugin, tracks how many guesses are accepted in live traffic and rebuilds the table while serving. We measure TableTune only against other ways to speculate. On an H100, the tuned table delivers at least 94% of the throughput of the best fixed draft length at every load in four of five drafter settings (88% in the fifth) without the operator having to know which length that is. Against reimplementations of TurboSpec- and Nightjar-style control on the same engine, its worst-case loss is never higher than theirs, and with the EAGLE-3 drafter it is 3% against 9% and 12%. On a mixture-of-experts model, vLLM's documented table loses up to 18% and the tuned table at most 3%. Starting from mistuned tables, the controller raises throughput by up to 58% (up to 45% on vLLM's default runner), and after a workload switch with the DFlash drafter it recovers 96% of a stale table's loss. In llm-d's optimized-baseline deployment as shipped, two Qwen3-32B replicas on four GPUs, the tuned table is up to 32% faster than a fixed draft length of 3 and up to 25% faster than vLLM's documented table at high load, and the controller raises the documented table's throughput by up to 29%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。