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

EE-MLLM:一种数据高效且计算高效的多模态大语言模型

EE-MLLM: A Data-Efficient and Compute-Efficient Multimodal Large Language Model

University of Science and Technology of China(中国科学技术大学);WeChat, Tencent Inc.(腾讯微信);Fudan University(复旦大学);Institute of Artificial Intelligence, Hefei Comprehensive National Science Center(合肥综合性国家科学中心人工智能研究院)

Feipeng Ma, Yizhou Zhou, Zheyu Zhang, Shilin Yan, Hebei Li, Zilong He, Siying Wu, Fengyun Rao, Yueyi Zhang, Xiaoyan Sun

AI总结:

本文提出EE-MLLM,通过将自注意力修改为复合注意力机制,消除视觉token计算开销并复用LLM权重实现模态对齐,在数据和计算效率上均取得显著提升。

摘要:

多模态大语言模型(MLLMs)的最新进展在各种视觉-语言任务中表现出令人满意的性能。当前视觉与语言交互的方法分为两类:基于自注意力的方法和基于交叉注意力的方法。然而,这两种方法都存在固有局限性,迫使在数据和计算效率之间进行权衡。为了解决这个问题,我们引入了数据高效且计算高效的MLLM(EE-MLLM)。具体来说,我们将MLLM中原始的自注意力机制修改为复合注意力机制。该机制有两个关键特征:1)消除视觉token之间自注意力的计算开销,以实现计算效率;2)重用LLM每一层的权重,以促进有效的视觉-语言模态对齐,从而实现数据效率。因此,EE-MLLM在有限的训练数据下显著优于Flamingo,并且在H800 GPU上将预填充时间减少至79毫秒,而LLaVA为277毫秒。为了进一步研究EE-MLLM的效率,我们提出了一个无需训练的变体EE-MLLM-F,它在不进行额外训练的情况下降低了基于自注意力方法的计算成本。实验结果证明了EE-MLLM在一系列基准测试中的有效性,包括像MMBench和SeedBench这样的通用数据集,以及像TextVQA和DocVQA这样的细粒度任务。

英文摘要:

Recent advancements in Multimodal Large Language Models (MLLMs) have demonstrated satisfactory performance across various vision-language tasks. Current approaches for vision and language interaction fall into two categories: self-attention-based and cross-attention-based methods. However, both approaches present inherent limitations, forcing a trade-off between data and computational efficiency. To address this issue, we introduce the Data-$\textbf{E}$fficient and Compute-$\textbf{E}$fficient $\textbf{MLLM}$ ($\textbf{EE-MLLM}$). Specifically, we modify the original self-attention mechanism in MLLM to a composite attention mechanism. This mechanism has two key characteristics: 1) eliminating the computational overhead of self-attention among visual tokens to achieve $\textbf{compute efficiency}$, and 2) reusing the weights from each layer of LLM to facilitate effective vision-language modality alignment for $\textbf{data efficiency}$. As a result, EE-MLLM significantly outperforms Flamingo with limited training data, and reduces the prefilling time to 79 ms on an H800 GPU, compared to LLaVA's 277 ms. To further investigate the efficiency of EE-MLLM, we present a training-free variant named EE-MLLM-F, which reduces the computation cost of self-attention-based method without additional training. Experimental results demonstrate the effectiveness of EE-MLLM across a range of benchmarks, including general-purpose datasets like MMBench and SeedBench, as well as fine-grained tasks such as TextVQA and DocVQA.

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

↑