arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.17530cs.CVcs.AIcs.CL
收藏

PuMer:面向高效视觉语言模型的令牌剪枝与合并

PuMer: Pruning and Merging Tokens for Efficient Vision Language Models

University of Washington(华盛顿大学)

Qingqing Cao, Bhargavi Paranjape, Hannaneh Hajishirzi

AI总结:

PuMer提出文本引导剪枝与模态感知合并的令牌缩减框架,通过在跨模态层加入轻量级模块,在四个VL任务上将推理吞吐量提升至2倍、内存占用降低超50%,且准确率损失小于1%。

摘要:

大规模视觉语言(VL)模型使用Transformer在输入文本和图像之间执行跨模态交互。由于处理输入图像和文本的二次复杂度,这些跨模态交互在计算上开销很大且内存密集。我们提出了PuMer:一个令牌缩减框架,它使用文本引导的剪枝(Pruning)和模态感知的合并(Merging)策略来逐步减少输入图像和文本的令牌,从而提高模型推理速度并减少内存占用。PuMer学习保留与输入文本相关的显著图像令牌,并通过在VL模型的多个跨模态层中添加轻量级令牌缩减器模块来合并相似的文本和视觉令牌。训练PuMer与微调原始VL模型基本相同,但速度更快。我们对两个视觉语言模型在四个下游VL任务上的评估表明,PuMer将推理吞吐量提高了最多2倍,并将内存占用减少了超过50%,同时准确率下降不到1%。

英文摘要:

Large-scale vision language (VL) models use Transformers to perform cross-modal interactions between the input text and image. These cross-modal interactions are computationally expensive and memory-intensive due to the quadratic complexity of processing the input image and text. We present PuMer: a token reduction framework that uses text-informed Pruning and modality-aware Merging strategies to progressively reduce the tokens of input image and text, improving model inference speed and reducing memory footprint. PuMer learns to keep salient image tokens related to the input text and merges similar textual and visual tokens by adding lightweight token reducer modules at several cross-modal layers in the VL model. Training PuMer is mostly the same as finetuning the original VL model but faster. Our evaluation for two vision language models on four downstream VL tasks shows PuMer increases inference throughput by up to 2x and reduces memory footprint by over 50% while incurring less than a 1% accuracy drop.

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

↑