RCP:一种用于缓解大视觉-语言模型中分布偏移的表示一致性剪枝方法
RCP: Representation Consistency Pruner for Mitigating Distribution Shift in Large Vision-Language Models
AI总结:
本文提出RCP框架,通过累积视觉token剪枝与延迟修复机制,有效缓解大视觉-语言模型中的分布偏移问题,实验表明可剪除高达88.9%的视觉token并减少85.7%的FLOPs,同时保持较低的精度损失。
摘要:
大型视觉-语言模型(LVLMs)由于语言解码器处理的大量视觉token数量而面临巨大的推理成本。现有剪枝方法常导致显著的性能下降,因为不可逆地移除视觉token会导致隐藏状态的分布偏移,偏离预训练的全token模式。为此,我们提出了一种新的框架,称为RCP(Representation Consistency Pruner),该框架整合了累积视觉token剪枝与延迟修复机制。具体来说,我们引入了一个交叉注意力剪枝器,利用LLM的内在注意力作为基准,预测累积掩码,确保跨层的一致性和单调性token减少。为补偿由此产生的信息损失,我们设计了一个延迟修复适配器(DRA),该适配器缓存被剪枝token的本质,并专门针对答案生成token应用FiLM基于的调制。我们采用修复损失来匹配剪枝表示的第一和第二阶统计量与全token教师。RCP非常高效,因为它仅训练轻量级插件模块,同时在推理时允许物理token的丢弃。在LVLM基准测试中,RCP能够剪除高达88.9%的视觉token,并减少高达85.7%的FLOPs,仅产生微小的平均精度下降,并在几个广泛使用的基准上优于避免微调原始模型的先前方法。
英文摘要:
Large Vision-Language Models (LVLMs) suffer from prohibitive inference costs due to the massive number of visual tokens processed by the language decoder. Existing pruning methods often lead to significant performance degradation because the irreversible removal of visual tokens causes a distribution shift in the hidden states that deviates from the pre-trained full-token regime. To address this, we propose Representation Consistency Pruner, which we refer to as RCP, as a novel framework that integrates cumulative visual token pruning with a delayed repair mechanism. Specifically, we introduce a cross-attention pruner that leverages the intrinsic attention of the LLM as a baseline to predict cumulative masks, ensuring consistent and monotonic token reduction across layers. To compensate for the resulting information loss, we design a delayed repair adapter denoted as DRA, which caches the essence of pruned tokens and applies FiLM-based modulation specifically to the answer generation tokens. We employ a repair loss to match the first and second-order statistics of the pruned representations with a full-token teacher. RCP is highly efficient because it trains only lightweight plug-in modules while allowing for physical token discarding at inference. Extensive experiments on LVLM benchmarks demonstrate that RCP removes up to 88.9\% of visual tokens and reduces FLOPs by up to 85.7\% with only a marginal average accuracy drop, and outperforms prior methods that avoid fine-tuning the original model on several widely used benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。