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

Multimodal Mamba:通过二次到线性蒸馏实现的仅解码器多模态状态空间模型

Multimodal Mamba: Decoder-only Multimodal State Space Model via Quadratic to Linear Distillation

Institute of Artificial Intelligence, Huazhong University of Science \& Technology;School of EIC, Huazhong University of Science \& Technology

Bencheng Liao, Hongyuan Tao, Qian Zhang, Tianheng Cheng, Yingyue Li, Haoran Yin, Wenyu Liu, Xinggang Wang

AI总结:

本文提出 mmMamba 框架,通过播种策略与三阶段蒸馏将仅解码器 Transformer MLLM 转换为线性复杂度多模态 Mamba,并支持混合架构,在保持竞争力的同时大幅降低长上下文时延与显存。

摘要:

近期的多模态大语言模型(MLLM)取得了显著性能,但由于其二次计算复杂度、不断增长的 Key-Value 缓存需求以及对独立视觉编码器的依赖,面临部署挑战。我们提出 mmMamba,这是一个利用适度学术计算资源,通过从现有 MLLM 进行渐进式蒸馏来开发线性复杂度原生多模态状态空间模型的框架。我们的方法能够将经过训练的仅解码器 MLLM 直接转换为线性复杂度架构,而无需基于 RNN 的预训练 LLM 或视觉编码器。我们提出一种从已训练 Transformer 中雕琢出 Mamba 的播种策略,以及一套三阶段蒸馏方案,可在保留多模态能力的同时,有效将知识从 Transformer 迁移到 Mamba。该方法还支持结合 Transformer 与 Mamba 层的灵活混合架构,以实现可定制的效率—性能权衡。从基于 Transformer 的仅解码器 HoVLE 蒸馏后,mmMamba-linear 在现有线性和二次复杂度 VLM 中取得了具有竞争力的性能,而 mmMamba-hybrid 进一步显著提升性能,接近 HoVLE 的能力。在 103K token 时,与 HoVLE 相比,mmMamba-linear 实现 20.6 倍加速和 75.8% 的 GPU 显存减少,而 mmMamba-hybrid 实现 13.5 倍加速和 60.2% 的显存节省。代码和模型发布于 https://github.com/hustvl/mmMamba。

英文摘要:

Recent Multimodal Large Language Models (MLLMs) have achieved remarkable performance but face deployment challenges due to their quadratic computational complexity, growing Key-Value cache requirements, and reliance on separate vision encoders. We propose mmMamba, a framework for developing linear-complexity native multimodal state space models through progressive distillation from existing MLLMs using moderate academic computational resources. Our approach enables the direct conversion of trained decoder-only MLLMs to linear-complexity architectures without requiring pre-trained RNN-based LLM or vision encoders. We propose an seeding strategy to carve Mamba from trained Transformer and a three-stage distillation recipe, which can effectively transfer the knowledge from Transformer to Mamba while preserving multimodal capabilities. Our method also supports flexible hybrid architectures that combine Transformer and Mamba layers for customizable efficiency-performance trade-offs. Distilled from the Transformer-based decoder-only HoVLE, mmMamba-linear achieves competitive performance against existing linear and quadratic-complexity VLMs, while mmMamba-hybrid further improves performance significantly, approaching HoVLE's capabilities. At 103K tokens, mmMamba-linear demonstrates 20.6$\times$ speedup and 75.8% GPU memory reduction compared to HoVLE, while mmMamba-hybrid achieves 13.5$\times$ speedup and 60.2% memory savings. Code and models are released at https://github.com/hustvl/mmMamba

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

↑