IDPruner: 在视觉令牌修剪中协调重要性与多样性
IDPruner: Harmonizing Importance and Diversity in Visual Token Pruning for MLLMs
AI总结:
IDPruner通过协调重要性与多样性,提出了一种高效的视觉令牌修剪方法,实现最优平衡并提升多模态大语言模型的性能。
摘要:
多模态大语言模型(MLLMs)已经展示了令人印象深刻的能力,但它们由于大量视觉令牌的体积而面临显著的计算瓶颈。因此,视觉令牌修剪,这种可以大幅减少令牌数量的技术,已成为加速MLLM推理的关键技术。现有方法专注于令牌重要性、多样性或两者直觉的结合,但没有一个原则性的框架来优化它们的整合。为了解决这个问题,我们首先进行系统分析,以表征令牌重要性与语义多样性之间的权衡。在这一分析的指导下,我们提出了IDPruner,它利用最大边际相关性(MMR)算法,在这两个目标之间实现帕累托最优的平衡。关键的是,我们的方法不需要注意力图,确保了与FlashAttention的完全兼容,并通过一次修剪高效部署。我们在各种模型架构和多模态基准上进行了广泛的实验,证明IDPruner在不同的架构和任务中实现了最先进的性能和优越的泛化能力。值得注意的是,在Qwen2.5-VL-7B-Instruct上,当修剪75%的令牌时,IDPruner保留了95.18%的基线性能,即使在极端的90%修剪比例下,仍保持86.40%。我们的代码可在https://github.com/Tencent/AngelSlim上获得。
英文摘要:
Multimodal Large Language Models (MLLMs) have demonstrated impressive capabilities, yet they encounter significant computational bottlenecks due to the massive volume of visual tokens. Consequently, visual token pruning, which substantially reduces the token count, has emerged as a critical technique for accelerating MLLM inference. Existing approaches focus on token importance, diversity, or an intuitive combination of both, without a principled framework for their optimal integration. To address this issue, we first conduct a systematic analysis to characterize the trade-off between token importance and semantic diversity. Guided by this analysis, we propose the \textbf{I}mportance and \textbf{D}iversity Pruner (\textbf{IDPruner}), which leverages the Maximal Marginal Relevance (MMR) algorithm to achieve a Pareto-optimal balance between these two objectives. Crucially, our method operates without requiring attention maps, ensuring full compatibility with FlashAttention and efficient deployment via one-shot pruning. We conduct extensive experiments across various model architectures and multimodal benchmarks, demonstrating that IDPruner achieves state-of-the-art performance and superior generalization across diverse architectures and tasks. Notably, on Qwen2.5-VL-7B-Instruct, IDPruner retains 95.18\% of baseline performance when pruning 75\% of the tokens, and still maintains 86.40\% even under an extreme 90\% pruning ratio. Our code is available at https://github.com/Tencent/AngelSlim.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。