2025-02-19 · 专家 · 计算机视觉 · 机器学习

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

该论文提出了一种名为mmMamba的框架,通过从现有的多模态大型语言模型中渐进式蒸馏知识,开发出线性复杂度的原生多模态状态空间模型,从而显著提高计算效率。

更新于 2025-04-03。作者:Bencheng Liao、Hongyuan Tao、Qian Zhang、Tianheng Cheng、Yingyue Li、Haoran Yin、Wenyu Liu、Xinggang Wang。

中文摘要

近期,多模态大型语言模型(MLLMs)取得了显著的性能提升,但由于其二次方的计算复杂性、不断增长的键值缓存需求以及对独立视觉编码器的依赖,其在部署上面临着挑战。我们提出了mmMamba,这是一个通过从现有的MLLMs逐步蒸馏,利用适度的学术计算资源开发线性复杂度原生多模态状态空间模型的框架。我们的方法使得训练好的仅解码器MLLM能够直接转换为线性复杂度架构,无需预训练基于RNN的LLM或视觉编码器。我们提出了一种种子策略,从训练好的Transformer中提取Mamba,并制定了一个三阶段的蒸馏方案,能够在保留多模态能力的同时,有效地将Transformer的知识迁移到Mamba。我们的方法还支持灵活的混合架构,可以将Transformer和Mamba层结合,以实现可定制的效率-性能权衡。从基于Transformer的仅解码器的HoVLE蒸馏而来,mmMamba-linear在性能上与现有的线性复杂度和二次方复杂度的VLMs相当,而mmMamba-hybrid进一步显著提升了性能,接近HoVLE的能力。在103K个标记的情况下,mmMamba-linear相较于HoVLE实现了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.6times speedup and 75.8% GPU memory reduction compared to HoVLE, while mmMamba-hybrid achieves 13.5times speedup and 60.2% memory savings. Code and models are released at https://github.com/hustvl/mmMamba

解读

一句话总结

该论文提出了一种名为mmMamba的框架,通过从现有的多模态大型语言模型中渐进式蒸馏知识,开发出线性复杂度的原生多模态状态空间模型,从而显著提高计算效率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源