← 研踪 PaperTrailarXiv:2612.02985 · v1
LinearSpec: Drafting from the Target's Memory for Long-Context Speculative Decoding in Hybrid Vision-Language Models
首次提交 2026-12-02 09:48
版本更新 2026-12-02 09:48
雷达观测 2026-12-03 10:45
摘要
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.
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v1 · 2026-12-02 09:48 · 最新观测版本
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.
查看此版本解读 →查看此版本原文 ↗