基础设施 4.0 · 优秀 2026-11-03 · 论文

Hybrid Spark: Adaptive Speculative Decoding That Lets the Content Choose the Drafter

投机解码收益取决于负载形态与内容:模型 drafter 只能给短块,n-gram 等无模型 drafter 在输出复用输入时几乎零成本给长拷贝自适应验证只支持单一模型 drafter,无模型 drafter 缺逐 token 置信度,部署方只能二选一或拆 GPUHybrid Spark 每步同时运行两类 drafter,为每个请求择优链条,全程单 GPU;核心是给草稿 token 按槽位别处的期望 goodput定价,一次校准后两类链条同尺度比较vLLM 实现下,代码编辑 batch=4 时吞吐达模型 drafter 的 1.101.62 倍,batch=128 时 1.041.27 倍,chat 保持 0.971.01 倍

打开原文回到归档

Hybrid Spark: Adaptive Speculative Decoding That Lets the Content Choose the Drafter

中文导读

投机解码的收益取决于负载的形态(batch 大小、上下文长度)与内容:模型 drafter 在任何内容上都只能给短草稿块,n-gram 这类无模型 drafter 在输出复用输入(如代码编辑)时几乎零成本给出长拷贝。自适应验证把整批的验证预算分配给最可能被接受的草稿 token,但只支持单一模型 drafter;无模型 drafter 缺逐 token 置信度,无法参与预算分配,部署方只能二选一或为两类 drafter 拆分 GPU。Hybrid Spark 每步同时运行两类 drafter,在自适应验证内为每个请求择优链条,全程留在单 GPU 上,不破坏异步调度;核心是给每个被验证的草稿 token 定价——该槽位在批内其他地方能赚到的 goodput,无模型 drafter 的接受率用通用文本一次校准后,两类链条便可同尺度比较。vLLM 实现下,代码编辑 batch=4 时吞吐达模型 drafter 的 1.10–1.62 倍,batch=128 时 1.04–1.27 倍,chat(temperature 0)保持 0.97–1.01 倍;单一部署可同时服务两类负载。

为什么值得关注

部署方过去只能在「模型 drafter 短块通用」与「n-gram 长拷贝便宜但无法进自适应验证」之间二选一,或为 drafter 拆 GPU;Hybrid Spark 用 goodput 定价把两类草稿链放进同一验证预算,代码编辑负载拿到 1.10–1.62× 提升,chat 负载几乎不掉速(0.97–1.01×)。对做推理服务的团队,这是投机解码从「选一种 drafter」走向「按请求混合调度 drafter」的直接参考。

关键信息

  • 论文标题:Hybrid Spark: Adaptive Speculative Decoding That Lets the Content Choose the Drafter
  • 作者:Ekagra Ranjan, Bharat Venkitesh
  • arXiv:https://arxiv.org/abs/2611.05611
  • 发布时间:2026-11-03
  • arXiv 分类:cs.AI
  • 关联标签:speculative-decoding, vllm, inference-serving, drafters

English Abstract

Speculative decoding (SD) speeds up large language model (LLM) serving, but its gain depends on the workload's *shape*, such as batch size and context length, and on its *content*. A model-based drafter proposes a short block on any content, while a model-free drafter such as n-gram lookup proposes long copies at almost no cost when the output repeats its input, as in code editing. Adaptive verification spends a batch-wide verification budget on the draft tokens most likely to be accepted, but it supports only one model-based drafter. Model-free drafters provide no per-token confidence, so they cannot take part in budget allocation, and deployments must either fix one drafter or split their GPUs between drafters. We present Hybrid Spark, a framework that runs a model-based and a model-free drafter on every step and gives each request the better of their chains, within adaptive verification and entirely on the GPU, which keeps asynchronous scheduling intact. The key idea is a price per verified draft token: the goodput that slot would earn elsewhere in the batch. Once the model-free drafter's tokens carry calibrated acceptance estimates, fit once on general text, this price puts both drafters' chains on one scale. Instantiated with Spark (the model-based drafter) and an n-gram drafter in vLLM, Hybrid Spark achieves 1.10–1.62× the output throughput of the model-based drafter on code editing at batch size 4 and 1.04–1.27× at batch size 128, while staying at 0.97–1.01× of it on chat at temperature 0. A single deployment can therefore serve both workloads.

(LaTeX macros expanded per title/context: \sys → Hybrid Spark; \dspark → the model-based drafter, Spark.)

English Summary

Speculative decoding gains depend on workload shape and content: a model-based drafter proposes short blocks anywhere, while an n-gram drafter proposes long copies nearly free when output repeats input. Adaptive verification supports only one model-based drafter, and model-free drafters lack per-token confidence, so deployments fix one drafter or split GPUs between drafters. Hybrid Spark runs a model-based and a model-free drafter on every step and gives each request the better chain within adaptive verification, entirely on the GPU. The key idea prices each verified draft token at the goodput that slot would earn elsewhere; calibrated acceptance estimates fit once on general text put both chains on one scale. In vLLM with an n-gram drafter, it reaches 1.10-1.62x the model-based drafter's throughput on code editing at batch 4 and 1.04-1.27x at batch 128, and 0.97-1.01x on chat.

Obsidian Notes

  • 内容由 opencli arxiv paper 拉取 arXiv 元数据与摘要生成。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。