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

Wenjun Huang, Jiakai Pan, Jiahao Tang, Yanyu Ding, Yifei Xing +3 more
7/29/2024
cs.CVcs.AIcs.CL

No official code found. Best implementation: WenjunHuang94/ML-Mamba (69 stars, MIT, last commit 2024-11-19).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

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

699C, C++Jul 25, 20241 years agoMIT

Similar Papers

Cite this paper

@article{huang2024mlmamba,
  title  = {ML-Mamba: Efficient Multi-Modal Large Language Model Utilizing Mamba-2},
  author = {Wenjun Huang and Jiakai Pan and Jiahao Tang and Yanyu Ding and Yifei Xing and Yuhe Wang and Zhengzhuo Wang and Jianguo Hu},
  year   = {2024},
  eprint = {2407.19832},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.19832v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.19832.svg)](https://codeofpaper.com/paper/2407.19832)

Discussion