当令牌修剪不如随机:理解VLLMs中的视觉令牌信息
When Token Pruning is Worse than Random: Understanding Visual Token Information in VLLMs
AI总结:
本文研究了VLLMs中视觉令牌信息随网络深度变化的现象,发现信息消失地平线导致深度层随机修剪更有效,且与模型容量相关。
摘要:
视觉大语言模型(VLLMs)由于依赖数百个视觉令牌来表示图像而造成高昂的计算成本。尽管令牌修剪为加速推理提供了有希望的解决方案,但本文却发现一个关键观察:在更深的层(例如第20层之后),现有的无训练修剪方法的性能并不比随机修剪更好。我们假设这种退化是由“消失的令牌信息”引起的,其中视觉令牌随着网络深度的增加而逐渐失去显著性。为了验证这一假设,我们通过测量其移除对模型输出概率变化的影响来量化令牌的信息内容。使用这种提出度量,我们对各层中视觉令牌信息的分析揭示了三个关键发现:(1)随着层数加深,令牌的信息逐渐变得均匀,最终在中间层消失,我们称之为“信息地平线”,在此之后,视觉令牌变得冗余;(2)这个地平线的位置不是静态的;对于视觉密集任务,如光学字符识别(OCR),比更通用的任务如视觉问答(VQA)更深入;(3)这个地平线也强烈与模型容量相关,因为更强的VLLMs(例如Qwen2.5-VL)使用更深的视觉令牌,而较弱的模型(例如LLaVA-1.5)则较少。基于我们的发现,我们显示在深层中简单的随机修剪能够有效平衡性能和效率。此外,将随机修剪与现有方法结合可以提高现有方法。使用DivPrune与随机修剪实现最佳结果,保持Qwen-2.5-VL-7B性能的96.9%的同时修剪50%的视觉令牌。代码可在https://github.com/YahongWang1/Information-Horizon上获得。
英文摘要:
Vision Large Language Models (VLLMs) incur high computational costs due to their reliance on hundreds of visual tokens to represent images. While token pruning offers a promising solution for accelerating inference, this paper, however, identifies a key observation: in deeper layers (e.g., beyond the 20th), existing training-free pruning methods perform no better than random pruning. We hypothesize that this degradation is caused by \textbf{``vanishing token information''}, where visual tokens progressively lose their salience with increasing network depth. To validate this hypothesis, we quantify a token's information content by measuring the change in the model output probabilities upon its removal. Using this proposed metric, our analysis of the information of visual tokens across layers reveals three key findings: (1) As layers deepen, the information of visual tokens gradually becomes uniform and eventually vanishes at an intermediate layer, which we term as ``information horizon", beyond which the visual tokens become redundant; (2) The position of this horizon is not static; it extends deeper for visually intensive tasks, such as Optical Character Recognition (OCR), compared to more general tasks like Visual Question Answering (VQA); (3) This horizon is also strongly correlated with model capacity, as stronger VLLMs (e.g., Qwen2.5-VL) employ deeper visual tokens than weaker models (e.g., LLaVA-1.5). Based on our findings, we show that simple random pruning in deep layers efficiently balances performance and efficiency. Moreover, integrating random pruning consistently enhances existing methods. Using DivPrune with random pruning achieves state-of-the-art results, maintaining 96.9\% of Qwen-2.5-VL-7B performance while pruning 50\% of visual tokens. The code is available at https://github.com/YahongWang1/Information-Horizon.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。