arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.23914cs.CVcs.LG
收藏

面向大视觉-语言模型的注意力感知推理优化

Attention-aware Inference Optimizations for Large Vision-Language Models with Memory-efficient Decoding

Georgia Institute of Technology(佐治亚理工学院);Cisco Research(思科研究)

Fatih Ilhan, Gaowen Liu, Ramana Rao Kompella, Selim Furkan Tekin, Tiansheng Huang, Zachary Yahn, Yichang Xu, Ling Liu

AI总结:

本文提出AttentionPack框架,通过紧凑注意力机制和解压机制提升大视觉-语言模型解码效率,实验表明内存效率提升8倍,支持更大批次和更快推理,同时保持输出质量。

摘要:

大型视觉-语言模型(VLMs)在多模态推理中取得了显著成功,但其推理时间效率仍受解码过程中的内存开销限制,尤其是在查询和回答包含长序列视觉和文本标记时。本文提出了AttentionPack,一种针对大视觉-语言模型的自适应和注意力感知优化框架,旨在提升解码时的内存效率,解决由于视觉输入增加和交互增多带来的挑战,特别是在长上下文任务中涉及多个高分辨率图像或视频时。AttentionPack的创新点在于:(i)引入多头注意力压缩方法,通过利用隐含的低秩结构经济地存储键值矩阵;(ii)开发针对标记的注意力感知解压机制以减少延迟开销。在多个基准测试中,实验结果表明,AttentionPack将内存效率提升高达8倍,使能够支持更大的批次大小和更快的批次推理,同时保持模型输出质量或更长的上下文长度以实现更优的检索性能。我们还报告了AttentionPack结合驱逐、量化和内核融合的效果,显示在资源受限环境中进一步的效率提升。

英文摘要:

Large Vision-Language Models (VLMs) have achieved remarkable success in multi-modal reasoning, but their inference time efficiency remains a significant challenge due to the memory overhead during decoding, especially when the query and answer of VLMs consist of long sequences of visual and text tokens. This paper presents AttentionPack, an adaptive and attention-aware optimization framework tailored for large vision-language models with improving memory-efficiency during decoding, focusing on addressing the challenges due to the increased high number of visual inputs and interactions, particularly in long-context tasks with multiple high-resolution images or videos. AttentionPack is novel in two aspects: (i) We introduce a multi-head attention compaction method for economically storing key and value matrices by exploiting the implicit low-rank structure, and (ii) we develop a token-specific attention-aware decompression mechanism to reduce latency overhead. Experimental results on multiple benchmarks demonstrate that AttentionPack improves memory efficiency by up to 8x, enabling higher batch sizes and faster batch inference while preserving the model output quality or longer context lengths for superior retrieval performance. We also report the effectiveness of AttentionPack combined with eviction, quantization and kernel fusion, showing further efficiency gains for resource-limited environments.

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

↑