arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.10197cs.CVcs.CLcs.MM
收藏

Fit and Prune:面向多模态大语言模型的快速且无需训练的视觉令牌剪枝

Fit and Prune: Fast and Training-free Visual Token Pruning for Multi-modal Large Language Models

Xiamen University(厦门大学)

Weihao Ye, Qiong Wu, Wenhao Lin, Yiyi Zhou

AI总结:

本文提出无需训练的视觉令牌剪枝方法FitPrune,通过注意力分布统计快速生成剪枝方案,在保持高性能的同时显著降低多模态大语言模型的计算开销。

摘要:

多模态大语言模型(MLLMs)近年来的进展通常使用大量图像令牌来弥补其视觉能力的不足,这不仅表现出明显的冗余,还大大加剧了本就高昂的计算开销。令牌剪枝是加速MLLMs的有效方案,但何时以及如何丢弃令牌仍然是一个挑战。本文提出了一种新颖且无需训练的有效视觉令牌剪枝方法,称为FitPrune,它可以根据预定义的预算快速为MLLMs生成完整的剪枝方案。具体而言,FitPrune将令牌剪枝视为MLLM的一个统计问题,其目标是找到一种最优剪枝方案,使剪枝前后注意力分布的差异最小化。在实践中,FitPrune可以基于一小批推理数据的注意力统计快速完成,避免了MLLMs的昂贵试错。根据该剪枝方案,MLLM可以在推理过程中直接移除不同样本的冗余视觉令牌。为了验证FitPrune,我们将其应用于一组近期MLLMs,包括LLaVA-1.5、LLaVA-HR和LLaVA-NEXT,并在一组基准上进行了大量实验。实验结果表明,我们的FitPrune不仅能在很大程度上降低计算复杂度,同时保持高性能,例如,LLaVA-NEXT的FLOPs减少54.9%,而准确率仅下降0.5%。值得注意的是,剪枝方案可在约5分钟内获得。我们的代码可在https://github.com/ywh187/FitPrune获取。

英文摘要:

Recent progress in Multimodal Large Language Models(MLLMs) often use large image tokens to compensate the visual shortcoming of MLLMs, which not only exhibits obvious redundancy but also greatly exacerbates the already high computation. Token pruning is an effective solution for speeding up MLLMs, but when and how to drop tokens still remains a challenge. In this paper, we propose a novel and training-free approach for the effective visual token pruning of MLLMs, termed FitPrune, which can quickly produce a complete pruning recipe for MLLMs according to a pre-defined budget. Specifically, FitPrune considers token pruning as a statistical problem of MLLM and its objective is to find out an optimal pruning scheme that can minimize the divergence of the attention distributions before and after pruning. In practice, FitPrune can be quickly accomplished based on the attention statistics from a small batch of inference data, avoiding the expensive trials of MLLMs. According to the pruning recipe, an MLLM can directly remove the redundant visual tokens of different examples during inference. To validate FitPrune, we apply it to a set of recent MLLMs, including LLaVA-1.5, LLaVA-HR and LLaVA-NEXT, and conduct extensive experiments on a set of benchmarks. The experimental results show that our FitPrune can not only reduce the computational complexity to a large extent, while retaining high performance, e.g., -54.9% FLOPs for LLaVA-NEXT with only 0.5% accuracy drop. Notably, the pruning recipe can be obtained in about 5 minutes. Our code is available at https://github.com/ywh187/FitPrune.

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

↑