Spool:面向混合视觉语言模型的低延迟流式推理框架
Spool: Low-Latency Streaming Inference for Hybrid Vision-Language Models
Spool 是无需训练的框架,通过缓存每帧状态变换并按窗口推进高效组合,从混合 VLM 的循环层状态中移除过期帧,无需重放帧。在五个开源混合 VLM 和四个视频推理基准的 20 项测试中,Spool 的 p95 首 token 时延全部最低,较两个近期 vLLM 基线中较快者几何平均降低 6.6 倍,准确率平均提升 2.3 个百分点。
arXiv:2611.23228v1 Announce Type: new Abstract: Applications such as visual accessibility agents and robotics require answering questions about recent video content promptly, over a bounded window of past frames (e.g., the last two minutes). Hybrid vision-language models (VLMs), which interleave attention with linear recurrent layers such as Gated DeltaNet (GDN), are attractive for this setting, but maintaining a sliding window is expensive. The reason is that recurrent layers combine all past frames into a shared state, so expiring old frames normally requires re-running the entire window through the model. We observe that the recurrent update is affine in the state with input-dependent coefficients, so the effect of each frame can be captured as a transformation that composes associatively. We present Spool, a training-free framework that caches per-frame state transformations and composes them efficiently as the window advances, removing expired frames from each recurrent layer's state without replaying frames through the backbone. Removal is exact within each layer; as with key-value eviction in attention, expired frames can retain residual influence through the cached inputs computed by earlier layers. We design a dedicated data structure and GPU kernels to achieve low caching and composition overhead. Across five open-source hybrid VLMs and four video reasoning benchmarks, Spool achieves the lowest p95 time-to-first-token in all 20 model-benchmark tests, reducing it by a geometric mean of $6.6\times$ over the faster of two recent vLLM baselines, while improving accuracy by 2.3 percentage points on average.
来源:arXiv (AI + Vision + Imaging) · arxiv.org