通过图聚类压缩视觉令牌,提升多模态大模型推理效率
VISA: Group-wise Visual Token Selection and Aggregation via Graph Summarization for Efficient MLLMs Inference
- 用视觉令牌构建语义图,将冗余信息聚合到保留令牌中
- 在多个基准上实现更快推理速度,性能优于已有方法
- 适合需要高效推理的多模态应用,如视频理解与交互
本文提出一种新型方法 VISA,用于解决多模态大语言模型(MLLMs)因视觉令牌过多导致的推理效率低下问题。与以往剪枝方法相比,VISA 在压缩视觉令牌的同时能保留更多视觉信息。我们首先设计基于图的视觉令牌聚合(VTA)模块,将每个视觉令牌视为节点,依据语义相似性构建图结构,并根据该图将被移除令牌的信息聚合到保留令牌中,生成更紧凑的视觉表示。此外,提出分组式令牌选择策略(GTS),根据每组最终层文本令牌的引导,将视觉令牌分为保留与移除两类,实现渐进式视觉信息聚合,增强信息提取的稳定性。我们在 LLaVA-1.5、LLaVA-NeXT 及 Video-LLaVA 多个模型上进行了全面实验,验证了 VISA 的有效性。结果表明,该方法在模型性能与推理速度之间取得了更优平衡。代码已开源:https://github.com/mobiushy/VISA。
原文摘要 · Abstract (English)
In this study, we introduce a novel method called group-wise \textbf{VI}sual token \textbf{S}election and \textbf{A}ggregation (VISA) to address the issue of inefficient inference stemming from excessive visual tokens in multimoal large language models (MLLMs). Compared with previous token pruning approaches, our method can preserve more visual information while compressing visual tokens. We first propose a graph-based visual token aggregation (VTA) module. VTA treats each visual token as a node, forming a graph based on semantic similarity among visual tokens. It then aggregates information from removed tokens into kept tokens based on this graph, producing a more compact visual token representation. Additionally, we introduce a group-wise token selection strategy (GTS) to divide visual tokens into kept and removed ones, guided by text tokens from the final layers of each group. This strategy progressively aggregates visual information, enhancing the stability of the visual information extraction process. We conduct comprehensive experiments on LLaVA-1.5, LLaVA-NeXT, and Video-LLaVA across various benchmarks to validate the efficacy of VISA. Our method consistently outperforms previous methods, achieving a superior trade-off between model performance and inference speed. The code is available at https://github.com/mobiushy/VISA.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。