2025-01-28 · 专家 · 机器学习 · 计算机视觉 · 多模态 · 自然语言处理

Mixture-of-Mamba: Enhancing Multi-Modal State-Space Models with Modality-Aware Sparsity

Mixture-of-Mamba通过引入模态感知稀疏性,提高了多模态预训练中状态空间模型(SSMs)的性能和计算效率。

更新于 2025-01-28。作者:Weixin Liang、Junhong Shen、Genghan Zhang、Ning Dong、Luke Zettlemoyer、Lili Yu。

中文摘要

状态空间模型(SSMs)已成为替代Transformer进行序列建模的高效选择,但它们无法利用特定模态的特征,这限制了它们在多模态预训练中的性能。在这里,我们提出了混合Mamba(Mixture-of-Mamba),这是一种新的SSM架构,它通过Mamba块的特定模态参数化引入了模态感知稀疏性。基于混合Transformer(W. Liang等人,arXiv:2411.04996;2024),我们将模态感知稀疏性的优势扩展到SSMs,同时保持其计算效率。我们在三个多模态预训练设置中评估了Mixture-of-Mamba:Transfusion(交织文本和连续图像标记,使用扩散损失)、Chameleon(交织文本和离散图像标记)以及一个扩展的三模态框架,其中包含语音。Mixture-of-Mamba在更早的训练步骤中就达到了相同的损失值,同时显著降低了计算成本。在Transfusion设置中,Mixture-of-Mamba在1.4B规模下仅使用34.76%的训练FLOPs就实现了等效的图像损失。在Chameleon设置中,Mixture-of-Mamba在1.4B规模下仅使用42.50%的FLOPs就达到了类似的图像损失,以及仅使用65.40%的FLOPs的类似文本损失。在三模态设置中,MoM在1.4B规模下匹配语音损失时仅使用24.80%的FLOPs。我们的消融研究突出了解耦投影组件的协同效应,其中联合解耦比单个修改带来更大的收益。这些结果将模态感知稀疏性确立为一种多才多艺且有效的设计原则,将其影响从Transformer扩展到SSMs,并在多模态预训练中设定了新的基准。我们的代码可在以下链接获取:https://github.com/Weixin-Liang/Mixture-of-Mamba

英文摘要

State Space Models (SSMs) have emerged as efficient alternatives to Transformers for sequential modeling, but their inability to leverage modality-specific features limits their performance in multi-modal pretraining. Here, we propose Mixture-of-Mamba, a novel SSM architecture that introduces modality-aware sparsity through modality-specific parameterization of the Mamba block. Building on Mixture-of-Transformers (W. Liang et al. arXiv:2411.04996; 2024), we extend the benefits of modality-aware sparsity to SSMs while preserving their computational efficiency. We evaluate Mixture-of-Mamba across three multi-modal pretraining settings: Transfusion (interleaved text and continuous image tokens with diffusion loss), Chameleon (interleaved text and discrete image tokens), and an extended three-modality framework incorporating speech. Mixture-of-Mamba consistently reaches the same loss values at earlier training steps with significantly reduced computational costs. In the Transfusion setting, Mixture-of-Mamba achieves equivalent image loss using only 34.76% of the training FLOPs at the 1.4B scale. In the Chameleon setting, Mixture-of-Mamba reaches similar image loss with just 42.50% of the FLOPs at the 1.4B scale, and similar text loss with just 65.40% of the FLOPs. In the three-modality setting, MoM matches speech loss at 24.80% of the FLOPs at the 1.4B scale. Our ablation study highlights the synergistic effects of decoupling projection components, where joint decoupling yields greater gains than individual modifications. These results establish modality-aware sparsity as a versatile and effective design principle, extending its impact from Transformers to SSMs and setting new benchmarks in multi-modal pretraining. Our code can be accessed at https://github.com/Weixin-Liang/Mixture-of-Mamba

解读

一句话总结

Mixture-of-Mamba通过引入模态感知稀疏性,提高了多模态预训练中状态空间模型(SSMs)的性能和计算效率。

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

• 问题背景:多模态预训练中,SSMs由于无法利用模态特定特征,导致性能受限。 • 现有方案不足:现有方法往往忽略了模态特定参数化,限制了SSMs在多模态任务中的表现。 • 研究目标:提出Mixture-of-Mamba,通过模态感知稀疏性,提高SSMs在多模态预训练中的性能和计算效率。

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

• 技术创新:引入模态感知稀疏性,通过模态特定参数化,使Mamba块能够针对不同模态进行优化。 • 方法改进:将模态感知稀疏性应用于Mamba块的各个投影组件,实现高效的多模态预训练。 • 优势:与现有方法相比,Mixture-of-Mamba在保持计算效率的同时,显著提高了多模态预训练的性能。

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

• 关键实验:在Transfusion、Chameleon和三模态框架中评估Mixture-of-Mamba。 • 性能提升:Mixture-of-Mamba在所有设置中都达到了与基线模型相当的损失值,同时显著减少了计算成本。 • 对比结果:在Transfusion设置中,Mixture-of-Mamba使用34.76%的训练FLOPs实现了等效图像损失;在Chameleon设置中,使用42.50%的FLOPs实现了等效图像损失和65.40%的FLOPs实现了等效文本损失;在三模态设置中,使用24.80%的FLOPs实现了等效语音损失。

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

• 应用场景:多模态预训练,如图像-文本、图像-语音等。 • 实施建议:结合不同的模态数据和任务需求,调整Mamba块的参数化。 • 局限与展望:Mixture-of-Mamba在多模态预训练中表现出色,未来可以探索其在更多模态和任务中的应用。

来源