稀疏性遇上相似性:利用长尾分布实现多模态大语言模型中的动态优化令牌表示
Sparsity Meets Similarity: Leveraging Long-Tail Distribution for Dynamic Optimized Token Representation in Multimodal Large Language Models
AI总结:
针对多模态大语言模型(MM-LLMs)因令牌处理导致的高计算成本问题,提出基于视觉令牌与CLS令牌相似性长尾分布的动态剪枝算法,通过识别拐点修剪视觉标记并在LLM层二次过滤低相关令牌,仅用22%令牌量实现与原模型相当的性能。
摘要:
近年来,多模态大语言模型(MM-LLMs)在各类任务中取得显著成功,但高昂的计算成本限制了其广泛应用。主要计算负担源于LLM层中处理拼接的文本和视觉令牌,输入令牌长度直接影响效率。我们对视觉令牌的分析显示,它们与CLS令牌的相似性遵循长尾分布,仅少数令牌具有高相似性。为解决这一问题,我们提出一种动态剪枝算法,识别视觉CLS令牌相似性曲线的拐点,有效修剪视觉标记以加速模型性能。此外,我们在LLM层进行第二轮剪枝,通过视觉与文本特征的交互过滤低相关令牌。实验结果表明,我们的方法在仅使用原始令牌数量22%的情况下,实现了与原始模型相当的性能。我们的源代码将在论文被接收后公开。
英文摘要:
Recently, multimodal large language models (MM-LLMs) have achieved significant success in various tasks, but their high computational costs limit widespread application. The main computational burden arises from processing concatenated text and visual tokens in the LLM layer, where input token length directly affects efficiency. Our analysis of visual tokens reveals that their similarity to the CLS token follows a long-tail distribution, with only a few showing high similarity. To address this, we propose a dynamic pruning algorithm that identifies the inflection point in the visual CLS token similarity curve, enabling effective trimming of visual markers to accelerate model performance. Additionally, we perform a second round of pruning in the LLM layer, filtering out low-correlation tokens through the interaction between visual and textual features. Experimental results demonstrate that our method achieves performance comparable to the original while utilizing only 22% of the original token quantity. Our source code will be made publicly available upon acceptance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。