LinearSpec:从目标模型记忆中起草,加速长上下文视觉语言模型解码
LinearSpec: Drafting from the Target's Memory for Long-Context Speculative Decoding in Hybrid Vision-Language Models
做长文档 VLM 推理部署的值得看这篇:LinearSpec 直接借用目标模型的 GDN 状态和注意力 KV 缓存来起草,省掉了自己的缓存。128K 图像文档上比 DFlash 快 17%,显存还能塞更多并发请求。
论文提出 LinearSpec,一种面向混合架构视觉语言模型的推测解码起草器,直接复用目标模型自身的上下文记忆,而不再单独维护 KV 缓存。其四层结构从目标 VLM 的顶部三层 Gated DeltaNet(GDN)层和最后一个注意力层初始化,延续目标的 GDN 状态并读取注意力层的 KV 缓存,配合入口投影估计层输入,并以串行 GDN 头让每个草稿依赖前面草稿,因此自身无需 KV 缓存和 prefill。
在 SGLang 上以 Qwen3.5-4B 测试,LinearSpec 在短提示下与 DFlash 速度相当;在以页面图像形式输入的 128K token 文档上,比 DFlash 快 17%,比 DSpark 快 9%。在涉及表格、图表的文档问答上收益明显,在无字幕视频上收益较小。由于没有草稿 KV 缓存,GPU 显存可容纳更多并发请求。
该工作解决了 DFlash 这类块级起草器随上下文增长接受率下降的问题,收益同样适用于 Qwen3.5-2B 和 9B,对需要长文档处理(如表格、图表问答)的部署场景有直接价值。
LinearSpec: Drafting from the Target's Memory for Long-Context Speculative Decoding in Hybrid Vision-Language Models
Speculative decoding speeds up vision-language models (VLMs) without changing their outputs, but block drafters such as DFlash scale poorly with context: each keeps its own key-value (KV) cache of the prompt, which costs GPU memory and prefill, and its acceptance falls as documents grow. Hybrid VLMs already hold a memory of the context: the fixed-size states of their Gated DeltaNet (GDN) layers and the KV caches of a few full-attention layers. We propose LinearSpec, a drafter that reads this memory in place instead of building its own. Its four layers start from the target VLM's top four (three GDN layers and the last attention layer), continue the target's GDN states and attend to that attention layer's KV cache, so LinearSpec needs no KV cache or prefill of its own. An entry projection estimates the input to these layers, and a sequential GDN head conditions each draft on the earlier ones. Trained on the same data as DFlash and DSpark (DFlash's backbone with a sequential head) and run in SGLang on Qwen3.5-4B, LinearSpec matches DFlash on short prompts. On 128K-token documents given as page images, it decodes 17% faster than DFlash and 9% faster than DSpark. The gain holds for document questions about tables, charts and figures, and is small on videos without subtitles. Without a draft KV cache, more concurrent requests fit in GPU memory. The gains carry over to Qwen3.5-2B and 9B.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:LinearSpec、Qwen3.5、推测解码、视觉语言模型,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Haiyu Wang, Sai Qian Zhang, Steven Li),经 AITOP 多维评分管线结构化提炼。截至目前,全网已有 2 家独立信源对该事件进行交叉印证与跟进报道(含 Sebastian Raschka 等),属于近期高关注度行业信号。
- Sebastian Raschka12-01 16:55原文