arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.09071cs.CV
收藏

BlindSight: 利用稀疏性提升视觉-语言模型的效率

BlindSight: Harnessing Sparsity for Efficient Vision-Language Models

Advanced Micro Devices, Inc. (AMD)(先进微器件公司(AMD))

Tharun Adithya Srikrishnan, Deval Shah, Timothy Hein, Ahmed Hasssan, Stephen Youn, Steven K. Reinhardt

AI总结:

BlindSight通过引入输入模板感知的注意力稀疏性掩码,显著提升了视觉-语言模型的推理效率,同时保持较高的准确率。

摘要:

大规模视觉-语言模型(VLMs)能够实现文本和图像的联合处理。然而,整合视觉数据显著增加了提示长度,导致首次令牌时间(TTFT)变长。这一瓶颈可以通过利用注意力计算中固有的稀疏性来缓解。分析VLMs在处理一系列图像时的注意力模式,我们发现大部分层中不存在跨图像注意力。基于此,我们提出了BlindSight:一种通过输入模板感知的注意力稀疏性掩码来优化多图像VLM推理的方法,且不增加运行时开销。我们利用数据集推导出一种与提示无关的注意力头分类:密集型、汇入型、图像内型和图像内+汇入型。我们开发了一个基于Triton的GPU内核来利用这种稀疏性。BlindSight在注意力计算中实现了1.8-3.2倍的速度提升(提示长度36K-300K)。BlindSight在多种VLMs(Qwen2-VL、Qwen2.5-VL、Gemma 3)上具有泛化能力,仅在多图像理解基准上平均有0.78%的绝对准确率下降。最后,我们倡导设计结合BlindSight启发的稀疏和密集层的高效VLMs。

英文摘要:

Large vision-language models (VLMs) enable joint processing of text and images. However, incorporating vision data significantly increases the prompt length, resulting in a longer time to first token (TTFT). This bottleneck can be alleviated by leveraging the inherent sparsity in the attention computation. Analyzing these attention patterns in VLMs when processing a series of images, we observe the absence of inter-image attention in a substantial portion of layers. Based on this, we propose BlindSight: an approach to optimize multi-image VLM inference using an input-template-aware attention sparsity mask with no runtime overhead. We utilize a dataset to derive a prompt-agnostic categorization for attention heads: Dense, Sink, Intra-Image, and Intra-Image+Sink. We develop a Triton-based GPU kernel to leverage this sparsity. BlindSight achieves a 1.8-3.2x speedup in the attention computation (prompt length 36K-300K). BlindSight generalizes across VLMs (Qwen2-VL, Qwen2.5-VL, Gemma 3), with only a 0.78% absolute accuracy degradation on average on multi-image comprehension benchmarks. Finally, we advocate for the design of efficient VLMs that combine BlindSight-inspired sparse and dense layers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑