arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.02175cs.CVcs.AIcs.LG
收藏

DivPrune:面向大型多模态模型的基于多样性的视觉Token剪枝

DivPrune: Diversity-based Visual Token Pruning for Large Multimodal Models

Huawei Technologies Canada Co., Ltd.(华为技术加拿大有限公司)

Saeed Ranjbar Alvar, Gursimran Singh, Mohammad Akbari, Yong Zhang

AI总结:

本文提出DivPrune,一种将视觉Token剪枝形式化为最大-最小多样性问题(MMDP)的方法,通过最大化保留Token的多样性来减少冗余,无需微调即可在高剪枝率下保持性能,并在16个数据集上达到SOTA准确率,同时降低延迟和GPU内存使用。

摘要:

大型多模态模型(LMMs)已成为能够理解包括文本、图像和视频在内的各种数据模态的强大模型。LMMs将文本和视觉数据编码为Token,这些Token随后被集成的Large Language Model(大型语言模型,LLM)组合和处理。包含视觉Token会大幅增加总Token数量,通常增加数千个。LLM输入长度的增加显著提高了推理复杂度,导致LMMs的高延迟。为了解决这个问题,人们提出了移除部分视觉Token的Token剪枝方法。现有的Token剪枝方法要么需要大量的校准和微调,要么依赖次优的重要性度量,这会导致保留的Token之间冗余度增加。在本文中,我们首先将Token剪枝形式化为Max-Min Diversity Problem(最大-最小多样性问题,MMDP),其目标是选择一个子集,使得所选Token之间的多样性最大化。然后,我们求解MMDP以获得选定的子集并剪枝其余部分。所提出的方法DivPrune减少了冗余,并实现了所选Token的最高多样性。通过确保高多样性,所选Token能更好地代表原始Token,从而即使在高剪枝率下也能实现有效的性能,而无需微调。在多种LMMs上的大量实验表明,DivPrune在16个图像和视频语言数据集上实现了最先进的准确率。此外,DivPrune还降低了所测试模型的端到端延迟和GPU内存使用量。代码可在https://github.com/vbdi/divprune获取。

英文摘要:

Large Multimodal Models (LMMs) have emerged as powerful models capable of understanding various data modalities, including text, images, and videos. LMMs encode both text and visual data into tokens that are then combined and processed by an integrated Large Language Model (LLM). Including visual tokens substantially increases the total token count, often by thousands. The increased input length for LLM significantly raises the complexity of inference, resulting in high latency in LMMs. To address this issue, token pruning methods, which remove part of the visual tokens, are proposed. The existing token pruning methods either require extensive calibration and fine-tuning or rely on suboptimal importance metrics which results in increased redundancy among the retained tokens. In this paper, we first formulate token pruning as Max-Min Diversity Problem (MMDP) where the goal is to select a subset such that the diversity among the selected {tokens} is maximized. Then, we solve the MMDP to obtain the selected subset and prune the rest. The proposed method, DivPrune, reduces redundancy and achieves the highest diversity of the selected tokens. By ensuring high diversity, the selected tokens better represent the original tokens, enabling effective performance even at high pruning ratios without requiring fine-tuning. Extensive experiments with various LMMs show that DivPrune achieves state-of-the-art accuracy over 16 image- and video-language datasets. Additionally, DivPrune reduces both the end-to-end latency and GPU memory usage for the tested models. The code is available $\href{https://github.com/vbdi/divprune}{\text{here}}$.

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

↑