arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.19832cs.CVcs.AIcs.CL
收藏

ML-Mamba: 利用Mamba-2的高效多模态大语言模型

ML-Mamba: Efficient Multi-Modal Large Language Model Utilizing Mamba-2

Sun Yat-sen University(中山大学);Dongguan University of Technology(东莞理工学院);University of the Chinese Academy of Sciences(中国科学院大学)

Wenjun Huang, Jiakai Pan, Jiahao Tang, Yanyu Ding, Yifei Xing, Yuhe Wang, Zhengzhuo Wang, Jianguo Hu

AI总结:

ML-Mamba利用Mamba-2替代Transformer,通过线性序列建模和2D视觉选择性扫描机制,在保持与TinyLaVA等先进方法相当性能的同时,实现更快的推理速度,并优于基于Mamba-1的模型。

摘要:

多模态大语言模型(MLLMs)因其多功能性而备受关注。然而,传统的Transformer架构由于其二次计算复杂度而产生了显著的额外开销。为了解决这一问题,我们引入了ML-Mamba,一种多模态语言模型,它利用最新且高效的Mamba-2模型进行推理。Mamba-2以其线性可扩展性和快速处理长序列的能力而闻名。我们用预训练的Mamba-2模型替换了基于Transformer的主干网络,并探索了将2D视觉选择性扫描机制整合到多模态学习中的方法,同时尝试了各种视觉编码器和Mamba-2模型变体。我们在各种多模态基准测试中的广泛实验证明了ML-Mamba的竞争性能,并突显了状态空间模型在多模态任务中的潜力。实验结果表明:(1)我们经验性地探索了如何有效地将2D视觉选择性扫描机制应用于多模态学习。我们提出了一种新颖的多模态连接器,称为Mamba-2扫描连接器(MSC),它增强了表示能力。(2)ML-Mamba通过其线性序列建模,在推理速度更快的同时,实现了与TinyLaVA和MobileVLM v2等最先进方法相当的性能;(3)与利用Mamba-1的多模态模型相比,基于Mamba-2的ML-Mamba表现出更优越的推理性能和有效性。

英文摘要:

Multimodal Large Language Models (MLLMs) have attracted much attention for their multifunctionality. However, traditional Transformer architectures incur significant overhead due to their secondary computational complexity. To address this issue, we introduce ML-Mamba, a multimodal language model, which utilizes the latest and efficient Mamba-2 model for inference. Mamba-2 is known for its linear scalability and fast processing of long sequences. We replace the Transformer-based backbone with a pre-trained Mamba-2 model and explore methods for integrating 2D visual selective scanning mechanisms into multimodal learning while also trying various visual encoders and Mamba-2 model variants. Our extensive experiments in various multimodal benchmark tests demonstrate the competitive performance of ML-Mamba and highlight the potential of state space models in multimodal tasks. The experimental results show that: (1) we empirically explore how to effectively apply the 2D vision selective scan mechanism for multimodal learning. We propose a novel multimodal connector called the Mamba-2 Scan Connector (MSC), which enhances representational capabilities. (2) ML-Mamba achieves performance comparable to state-of-the-art methods such as TinyLaVA and MobileVLM v2 through its linear sequential modeling while faster inference speed; (3) Compared to multimodal models utilizing Mamba-1, the Mamba-2-based ML-Mamba exhibits superior inference performance and effectiveness.

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

↑