Papers

LinearSpec:从目标模型记忆中起草,加速长上下文视觉语言模型解码

LinearSpec: Drafting from the Target's Memory for Long-Context Speculative Decoding in Hybrid Vision-Language Models

Why we picked it

做长文档 VLM 推理部署的值得看这篇:LinearSpec 直接借用目标模型的 GDN 状态和注意力 KV 缓存来起草,省掉了自己的缓存。128K 图像文档上比 DFlash 快 17%,显存还能塞更多并发请求。

论文提出 LinearSpec,一种面向混合架构视觉语言模型的推测解码起草器,直接复用目标模型自身的上下文记忆,而不再单独维护 KV 缓存。其四层结构从目标 VLM 的顶部三层 Gated DeltaNet(GDN)层和最后一个注意力层初始化,延续目标的 GDN 状态并读取注意力层的 KV 缓存,配合入口投影估计层输入,并以串行 GDN 头让每个草稿依赖前面草稿,因此自身无需 KV 缓存和 prefill。

Body

在 SGLang 上以 Qwen3.5-4B 测试,LinearSpec 在短提示下与 DFlash 速度相当;在以页面图像形式输入的 128K token 文档上,比 DFlash 快 17%,比 DSpark 快 9%。在涉及表格、图表的文档问答上收益明显,在无字幕视频上收益较小。由于没有草稿 KV 缓存,GPU 显存可容纳更多并发请求。

该工作解决了 DFlash 这类块级起草器随上下文增长接受率下降的问题,收益同样适用于 Qwen3.5-2B 和 9B,对需要长文档处理(如表格、图表问答)的部署场景有直接价值。

Original · arXiv cs.LG

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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include LinearSpec, Qwen3.5, speculative decoding, vision-language models.

Source attribution: curated from arXiv cs.LG (@Haiyu Wang, Sai Qian Zhang, Steven Li). Cross-source corroboration: 2 independent sources have covered this development (including Sebastian Raschka), confirming industry-wide signal strength.

  • Sebastian Raschka12-01 16:55Source
Spotted an error in the summary or translation? Tell us