及时一针省九针:小型VLM是加速大型VLM的精确引导
A Stitch in Time Saves Nine: Small VLM is a Precise Guidance for Accelerating Large VLMs
AI总结:
针对大型VLM视觉token计算开销大的问题,本文提出无需训练的SGL,用小型VLM的全局注意力引导剪枝并结合提前退出,在11个基准上最高剪枝91%视觉token且保持竞争力。
摘要:
视觉-语言模型(VLM)已在多种多模态任务中取得显著成功,但大型VLM因需要处理大量视觉token而面临严重的效率挑战。加速大型VLM推理的一种有前景方法是使用部分信息,例如来自特定层的注意力图,来评估token重要性并剪枝不太关键的token。然而,我们的研究揭示了三个关键发现:(i)部分注意力信息不足以准确识别关键视觉token,导致性能次优,尤其是在低token保留率下;(ii)全局注意力信息,例如跨所有层聚合的注意力图,能更有效地保留必要token,并在激进剪枝下保持相当的性能。但是,来自所有层的注意力图需要完整的推理过程,这会增加计算负载,因此在现有方法中并不实用;(iii)从小型VLM聚合得到的全局注意力图与大型VLM的全局注意力图高度相似,这表明了一种高效的替代方案。基于这些发现,我们提出了一种无需训练的方法,即用于加速大型VLM的小型VLM引导(SGL)。具体而言,我们利用从小型VLM聚合的注意力图来引导大型VLM中的视觉token剪枝。此外,我们开发了一种提前退出机制,以充分利用小型VLM的预测,仅在必要时动态调用更大的VLM,从而在准确性和计算之间实现更优的权衡。在11个基准测试上的广泛评估证明了SGL的有效性和泛化性,其视觉token剪枝率最高可达91%,同时保持具有竞争力的性能。
英文摘要:
Vision-language models (VLMs) have shown remarkable success across various multi-modal tasks, yet large VLMs encounter significant efficiency challenges due to processing numerous visual tokens. A promising approach to accelerating large VLM inference is using partial information, such as attention maps from specific layers, to assess token importance and prune less essential tokens. However, our study reveals three key insights: (i) Partial attention information is insufficient for accurately identifying critical visual tokens, resulting in suboptimal performance, especially at low token retention ratios; (ii) Global attention information, such as the attention map aggregated across all layers, more effectively preserves essential tokens and maintains comparable performance under aggressive pruning. However, the attention maps from all layers requires a full inference pass, which increases computational load and is therefore impractical in existing methods; and (iii) The global attention map aggregated from a small VLM closely resembles that of a large VLM, suggesting an efficient alternative. Based on these findings, we introduce a \textbf{training-free} method, \underline{\textbf{S}}mall VLM \underline{\textbf{G}}uidance for accelerating \underline{\textbf{L}}arge VLMs (\textbf{SGL}). Specifically, we employ the attention map aggregated from a small VLM to guide visual token pruning in a large VLM. Additionally, an early exiting mechanism is developed to fully use the small VLM's predictions, dynamically invoking the larger VLM only when necessary, yielding a superior trade-off between accuracy and computation. Extensive evaluations across 11 benchmarks demonstrate the effectiveness and generalizability of SGL, achieving up to 91\% pruning ratio for visual tokens while retaining competitive performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。