arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.19628cs.CVcs.CLcs.LGcs.MM
收藏

通过动态视觉令牌退出与实证发现加速多模态大语言模型

Accelerating Multimodal Large Language Models via Dynamic Visual-Token Exit and the Empirical Findings

Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University(中国教育部多媒体可信感知与高效计算重点实验室,厦门大学);Institute of Artificial Intelligence, Xiamen University(厦门大学人工智能研究院)

Qiong Wu, Wenhao Lin, Yiyi Zhou, Weihao Ye, Zhanpeng Zen, Xiaoshuai Sun, Rongrong Ji

AI总结:

该研究通过实证分析 MLLM 注意力阶段与视觉令牌冗余,提出 DyVTE 动态视觉令牌退出方法,以轻量超网络决定移除视觉令牌的层级,并在多个模型和基准上验证其效率提升。

摘要:

现有多模态大语言模型(MLLM)对视觉令牌的过度使用往往表现出明显的冗余,并带来极其高昂的计算开销。为深入理解这一问题,我们首先对 MLLM 的注意力行为开展了大量实证研究,并总结出 MLLM 中的三个主要推理阶段:(i)令牌之间的早期融合首先迅速完成;(ii)随后模态内建模开始发挥作用;(iii)多模态推理恢复并持续到推理结束。特别地,我们揭示了当文本令牌获得足够的图像信息后,视觉令牌将不再对推理作出贡献,从而产生明显的视觉冗余。基于这些具有普遍性的观察,我们提出了一种简单而有效的方法来提升 MLLM 的效率,称为动态视觉令牌退出(DyVTE)。DyVTE 使用轻量级超网络感知文本令牌状态,并决定在某一层之后移除全部视觉令牌,从而解决所观察到的视觉冗余。为验证 VTE,我们将其应用于一系列 MLLM,包括 LLaVA、VILA、Eagle 和 InternVL,并在多个基准上进行了大量实验。实验结果不仅表明我们的 VTE 在提升 MLLM 效率方面的有效性,还得出了 MLLM 的通用建模模式,有助于深入理解 MLLM。代码已发布于 https://github.com/DoubtedSteam/DyVTE。

英文摘要:

The excessive use of visual tokens in existing Multimoal Large Language Models (MLLMs) often exhibits obvious redundancy and brings in prohibitively expensive computation. To gain insights into this problem, we first conduct extensive empirical studies on the attention behaviors of MLLMs, and summarize three main inference stages in MLLMs: (i) Early fusion between tokens is first accomplished quickly. (ii) Intra-modality modeling then comes to play. (iii) Multimodal reasoning} resumes and lasts until the end of inference. In particular, we reveal that visual tokens will stop contributing to reasoning when the text tokens receive enough image information, yielding obvious visual redundancy. Based on these generalized observations, we propose a simple yet effective method to improve the efficiency of MLLMs, termed dynamic visual-token exit (DyVTE). DyVTE uses lightweight hyper-networks to perceive the text token status and decide the removal of all visual tokens after a certain layer, thereby addressing the observed visual redundancy. To validate VTE, we apply it to a set of MLLMs, including LLaVA, VILA, Eagle and InternVL, and conduct extensive experiments on a bunch of benchmarks. The experiment results not only show the effectiveness of our VTE in improving MLLMs' efficiency, but also yield the general modeling patterns of MLLMs, well facilitating the in-depth understanding of MLLMs. Our code is released at https://github.com/DoubtedSteam/DyVTE.

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

↑