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

A-VL:面向大型视觉-语言模型的自适应注意力机制

A-VL: Adaptive Attention for Large Vision-Language Models

University of Science and Technology of China(中国科学技术大学);NIO Inc.(蔚来汽车公司)

Junyang Zhang, Mu Yuan, Ruiguang Zhong, Puhan Luo, Huiyou Zhan, Ningkang Zhang, Chengchen Hu, Xiangyang Li

AI总结:

针对大型视觉-语言模型推理资源消耗大的问题,本文提出即插即用的自适应注意力方法A-VL,通过分别管理视觉与语言模态的注意力模式,在保持性能的同时显著降低内存占用和计算负载。

摘要:

大型视觉-语言模型(LVLM)融合了计算机视觉与自然语言处理技术,具有广阔的应用潜力。然而,这类模型在推理过程中需要大量资源。自适应注意力技术能够动态减少计算冗余,从而提高效率。尽管现有的自适应注意力方法显著降低了基于Transformer的语言模型的内存需求,但它们并未针对LVLM进行专门设计。我们观察到,LVLM在生成响应时同时依赖远程的图像token和局部的文本token,并且不同模态具有不同的注意力模式。这一观察启发我们对每种模态分别管理注意力。具体而言,对于视觉输入,我们缓存可能有用信息的存储,但只计算最关键的部分;对于语言输入,我们更加关注局部信息。基于我们对视觉-语言注意力模式的观察与分析,我们开发了A-VL,这是一种即插即用的自适应注意力方法,专为LVLM推理而设计。在三个视觉-语言任务和五个数据集上的广泛评估证明了我们设计的有效性。我们的方法A-VL在减少内存使用和计算负载方面优于现有的自适应注意力方法,且不牺牲性能。

英文摘要:

The Large Vision-Language Model (LVLM) integrates computer vision and natural language processing techniques, offering substantial application potential. However, these models demand extensive resources during inference. Adaptive attention techniques can dynamically reduce computational redundancy and thus improve efficiency. Although current adaptive attention methods significantly reduce the memory requirements of Transformer-based language models, they are not tailored for LVLMs. We observe that LVLMs generate responses from both remote image tokens and local text tokens, and different modalities have different attention patterns. This observation inspires us to manage the attention for each modality separately. Specifically, for visual input, we store the cache of potentially useful information but only compute the most critical parts. For language input, we care more about local information. Based on our observation and analysis of vision-language attention patterns, we develop A-VL, a plug-and-play adaptive attention tailored for LVLM inference. Extensive evaluations on three vision-language tasks and five datasets show the effectiveness of our designs. Our approach A-VL outperforms existing adaptive attention methods in reducing memory usage and computational load without compromising performance.

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

↑