2025-04-02 · 进阶 · 机器学习 · 计算机视觉

Efficient LLaMA-3.2-Vision by Trimming Cross-attended Visual Features

该论文提出了一种名为Trimmed Llama的方法,通过修剪交叉注意力层中的冗余视觉特征,有效地降低了大型视觉语言模型(LVLMs)的推理成本,同时保持了与原始模型相当的性能。

更新于 2025-04-02。作者:Jewon Lee、Ki-Ung Song、Seungmin Yang、Donguk Lim、Jaeyeon Kim、Wooksu Shin、Bo-Kyeong Kim、Yong Jae Lee、Tae-Ho Kim。

中文摘要

视觉标记缩减降低了大型视觉-语言模型(LVLMs)中广泛图像特征带来的推理成本。与那些仅对自我注意力LVLMs中的标记进行剪枝的相关研究不同,我们的工作独特地针对基于交叉注意力的模型,这些模型实现了更优越的性能。我们发现,在交叉注意力层中,图像标记的键值(KV)缓存大小显著超过自我注意力层中的文本标记,这构成了一个主要的计算瓶颈。为了缓解这一问题,我们利用交叉注意力图中的稀疏性来选择性地剪枝冗余的视觉特征。我们的Trimmed Llama有效地减少了KV缓存需求,而无需额外的训练。通过利用50%减少的视觉特征,我们的模型可以在实现基准性能的同时,减少推理延迟和内存使用。

英文摘要

Visual token reduction lowers inference costs caused by extensive image features in large vision-language models (LVLMs). Unlike relevant studies that prune tokens in self-attention-only LVLMs, our work uniquely addresses cross-attention-based models, which achieve superior performance. We identify that the key-value (KV) cache size for image tokens in cross-attention layers significantly exceeds that of text tokens in self-attention layers, posing a major compute bottleneck. To mitigate this issue, we exploit the sparse nature in cross-attention maps to selectively prune redundant visual features. Our Trimmed Llama effectively reduces KV cache demands without requiring additional training. By benefiting from 50%-reduced visual features, our model can reduce inference latency and memory usage while achieving benchmark parity.

解读

一句话总结

该论文提出了一种名为Trimmed Llama的方法,通过修剪交叉注意力层中的冗余视觉特征,有效地降低了大型视觉语言模型(LVLMs)的推理成本,同时保持了与原始模型相当的性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源