arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.00447cs.CV
收藏

ATP-LLaVA:面向大型视觉语言模型的自适应 Token 剪枝

ATP-LLaVA: Adaptive Token Pruning for Large Vision Language Models

Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);ARC Lab, Tencent PCG(腾讯平台与内容事业群ARC实验室)

Xubing Ye, Yukang Gan, Yixiao Ge, Xiao-Ping Zhang, Yansong Tang

AI总结:

本文提出 ATP-LLaVA,通过逐层、逐实例的自适应视觉 token 剪枝及 SAP 策略,在七个基准上仅损失 1.9% 性能即减少 75% token。

摘要:

大型视觉语言模型(LVLMs)已在多模态任务中取得显著成功。然而,在资源受限设备上,处理长视觉 token 的计算成本可能高得令人难以承受。以往方法已经发现大型语言模型(LLM)解码器层中的视觉 token 存在冗余,并通过使用预定义或固定比例剪枝 token 来缓解这一问题,从而降低计算开销。尽管如此,我们观察到剪枝比例的影响在不同 LLM 层和实例(图像-提示对)之间存在差异。因此,有必要开发一种逐层且逐实例的视觉 token 剪枝策略,以有效平衡计算成本与模型性能。我们提出 ATP-LLaVA,这是一种新颖方法,可为每个 LLM 层自适应地确定特定于实例的 token 剪枝比例。具体而言,我们引入自适应 Token 剪枝(Adaptive Token Pruning,ATP)模块,该模块基于输入实例自适应地计算重要性分数和剪枝阈值。ATP 模块可无缝集成到任意两个 LLM 层之间,且计算开销可忽略不计。此外,我们开发了空间增强剪枝(Spatial Augmented Pruning,SAP)策略,该策略同时从 token 冗余和空间建模两个角度剪枝视觉 token。我们的方法将平均 token 数量减少 75%,同时保持性能,在七个广泛使用的基准测试中仅有 1.9% 的轻微下降。项目页面可通过 https://yxxxb.github.io/ATP-LLaVA-page/ 访问。

英文摘要:

Large Vision Language Models (LVLMs) have achieved significant success across multi-modal tasks. However, the computational cost of processing long visual tokens can be prohibitively expensive on resource-limited devices. Previous methods have identified redundancy in visual tokens within the Large Language Model (LLM) decoder layers and have mitigated this by pruning tokens using a pre-defined or fixed ratio, thereby reducing computational overhead. Nonetheless, we observe that the impact of pruning ratio varies across different LLM layers and instances (image-prompt pairs). Therefore, it is essential to develop a layer-wise and instance-wise vision token pruning strategy to balance computational cost and model performance effectively. We propose ATP-LLaVA, a novel approach that adaptively determines instance-specific token pruning ratios for each LLM layer. Specifically, we introduce an Adaptive Token Pruning (ATP) module, which computes the importance score and pruning threshold based on input instance adaptively. The ATP module can be seamlessly integrated between any two LLM layers with negligible computational overhead. Additionally, we develop a Spatial Augmented Pruning (SAP) strategy that prunes visual tokens with both token redundancy and spatial modeling perspectives. Our approach reduces the average token count by 75% while maintaining performance, with only a minimal 1.9% degradation across seven widely used benchmarks. The project page can be accessed via https://yxxxb.github.io/ATP-LLaVA-page/.

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

↑