LinearSpec: Drafting from the Target's Memory for Long-Context Speculative Decoding in Hybrid Vision-Language Models
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CV
Related papers
Strong EEG Decoding without EEG-Specific Pretraining: A Simple Reversible Interface for Vision Backbones
Shared title terminologycs.LGZi Liang, Haibo He, Peng Hu et al.
RIVET: Router-Informed, Verifier-Guided Expert Tailoring for MoE Self-Speculative Decoding
Shared title terminologycs.LGYunhao Wang, Hongyu Zhao, Zhenjia Mo et al.
KuaFu-Credit: Reward-Penalty Decoupling and Turn-Level Differencing for Credit Assignment in Long-Horizon RL with Lifelong User Memory
Shared title terminologycs.LGLin Zhu, Jiahao Hui, Junxiu Chen et al.
MLP Cache: A Post-Hoc Memory-Compute Trade-off for Transformer Inference
Shared title terminologycs.LGHuzheng Yang, Yiqiao Huang, Qingqiao Hu et al.
Predicting End-to-End Fine-Tuning Time for Generative Language Models
Shared title terminologycs.LGBreno Beleza, Felipe Lima, Isis Carvalho et al.
Identifiability of LLaMA-style decoders
Shared title terminologycs.LGPranav Venkata Konda