OmniMamba: Efficient and Unified Multimodal Understanding and Generation via State Space Models
OmniMamba通过引入解耦词汇、特定任务的LoRA和分阶段训练策略,实现了高效的跨模态理解和生成,同时显著提高了推理效率。
更新于 2025-03-12。作者:Jialv Zou、Bencheng Liao、Qian Zhang、Wenyu Liu、Xinggang Wang。
中文摘要
近期在统一的多模态理解和视觉生成(或称多模态生成)模型方面的进展受到了其二次计算复杂度和对大规模训练数据的依赖性的限制。我们提出了OmniMamba,这是第一个基于线性架构的多模态生成模型,它通过统一的下一个标记预测范式同时生成文本和图像。该模型充分利用了Mamba-2的高计算和内存效率,将其能力从文本生成扩展到多模态生成。为了解决现有统一模型的数据效率低下问题,我们提出了两项关键创新:(1)解耦词汇表以引导特定模态的生成,以及(2)特定任务的LoRA以提高参数效率的适应性。此外,我们还引入了一种解耦的两阶段训练策略,以缓解两个任务之间的数据不平衡。凭借这些技术,OmniMamba在性能上与JanusFlow相当,并在基准测试中超越了Show-o,尽管它只训练了200万个图像-文本对,这比Show-o少1,000倍。值得注意的是,OmniMamba在推理效率方面表现突出,与基于Transformer的模型相比,在长序列生成中实现了高达119.2倍的加速和63%的GPU内存减少。代码和模型已发布在https://github.com/hustvl/OmniMamba上。
英文摘要
Recent advancements in unified multimodal understanding and visual generation (or multimodal generation) models have been hindered by their quadratic computational complexity and dependence on large-scale training data. We present OmniMamba, the first linear-architecture-based multimodal generation model that generates both text and images through a unified next-token prediction paradigm. The model fully leverages Mamba-2's high computational and memory efficiency, extending its capabilities from text generation to multimodal generation. To address the data inefficiency of existing unified models, we propose two key innovations: (1) decoupled vocabularies to guide modality-specific generation, and (2) task-specific LoRA for parameter-efficient adaptation. Furthermore, we introduce a decoupled two-stage training strategy to mitigate data imbalance between two tasks. Equipped with these techniques, OmniMamba achieves competitive performance with JanusFlow while surpassing Show-o across benchmarks, despite being trained on merely 2M image-text pairs, which is 1,000 times fewer than Show-o. Notably, OmniMamba stands out with outstanding inference efficiency, achieving up to a 119.2 times speedup and 63% GPU memory reduction for long-sequence generation compared to Transformer-based counterparts. Code and models are released at https://github.com/hustvl/OmniMamba
解读
一句话总结
OmniMamba通过引入解耦词汇、特定任务的LoRA和分阶段训练策略,实现了高效的跨模态理解和生成,同时显著提高了推理效率。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:现有的跨模态理解和视觉生成模型存在二次计算复杂性和对大规模训练数据的依赖。
- 现有方案不足:现有模型需要大量图像-文本对进行训练,导致训练效率低下,且推理速度慢。
- 研究目标:开发一个既具有训练效率又具有推理效率的跨模态生成模型。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种基于Mamba-2的线性架构跨模态生成模型,通过统一的下一个标记预测范式生成文本和图像。
- 方法改进:引入了解耦词汇和特定任务的LoRA,以提高数据效率和模型适应性。
- 优势:与现有方法相比,OmniMamba在保持竞争力的同时,实现了更高的推理效率。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在多个视觉-语言基准和MS-COCO生成基准上进行了实验。
- 性能提升:OmniMamba在多个基准上超过了Show-o,并与JanusFlow相当,同时使用了较少的训练数据。
- 对比结果:与基于Transformer的模型相比,OmniMamba在长序列生成任务上实现了高达119.2倍的加速和63%的GPU内存减少。
问题4:这个研究的实际应用价值是什么?
- 应用场景:可用于图像描述、视觉问答、文本到图像生成等任务。
- 实施建议:在资源受限的环境中使用OmniMamba,以提高跨模态理解和生成的效率。
- 局限与展望:尽管OmniMamba表现良好,但仍需进一步研究以解决训练数据量和模型性能之间的权衡问题。