arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.11273cs.AIcs.CLcs.CVcs.MM
收藏

Uni-MoE:利用混合专家扩展统一多模态大语言模型

Uni-MoE: Scaling Unified Multimodal LLMs with Mixture of Experts

Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Hong Kong University of Science and Technology(香港科技大学);Meituan(美团)

Yunxin Li, Shenyuan Jiang, Baotian Hu, Longyue Wang, Wanqi Zhong, Wenhan Luo, Lin Ma, Min Zhang

AI总结:

本文提出 Uni-MoE,将稀疏 MoE、模态专用编码器与渐进式训练结合,构建可处理多种模态的统一 MLLM,并验证其能降低混合数据集性能偏差、提升专家协作与泛化。

摘要:

多模态大语言模型(MLLMs)的最新进展凸显了可扩展模型和数据对于提升性能的重要性,但这通常会带来巨大的计算成本。尽管混合专家(MoE)架构已被用于高效扩展大语言模型和图文模型,但这些工作通常涉及较少的专家和有限的模态。为解决这一问题,我们的工作首次尝试开发采用 MoE 架构的统一 MLLM,名为 Uni-MoE,它能够处理广泛的模态。具体而言,该模型采用带有连接器的模态专用编码器,以获得统一的多模态表示。我们还在 LLM 中实现稀疏 MoE 架构,通过模态级数据并行和专家级模型并行实现高效训练和推理。为增强多专家协作与泛化,我们提出渐进式训练策略:1)使用不同连接器和各类跨模态数据进行跨模态对齐;2)利用跨模态指令数据训练模态专用专家,以激活专家偏好;3)在混合多模态指令数据上使用低秩适配(LoRA)调优 Uni-MoE 框架。我们在一系列全面的多模态数据集上评估经过指令调优的 Uni-MoE。大量实验结果表明,Uni-MoE 的主要优势在于显著降低处理混合多模态数据集时的性能偏差,同时改善多专家协作与泛化。我们的发现凸显了 MoE 框架在推进 MLLMs 方面的巨大潜力,代码可在 https://github.com/HITsz-TMG/UMOE-Scaling-Unified-Multimodal-LLMs 获取。

英文摘要:

Recent advancements in Multimodal Large Language Models (MLLMs) underscore the significance of scalable models and data to boost performance, yet this often incurs substantial computational costs. Although the Mixture of Experts (MoE) architecture has been employed to efficiently scale large language and image-text models, these efforts typically involve fewer experts and limited modalities. To address this, our work presents the pioneering attempt to develop a unified MLLM with the MoE architecture, named Uni-MoE that can handle a wide array of modalities. Specifically, it features modality-specific encoders with connectors for a unified multimodal representation. We also implement a sparse MoE architecture within the LLMs to enable efficient training and inference through modality-level data parallelism and expert-level model parallelism. To enhance the multi-expert collaboration and generalization, we present a progressive training strategy: 1) Cross-modality alignment using various connectors with different cross-modality data, 2) Training modality-specific experts with cross-modality instruction data to activate experts' preferences, and 3) Tuning the Uni-MoE framework utilizing Low-Rank Adaptation (LoRA) on mixed multimodal instruction data. We evaluate the instruction-tuned Uni-MoE on a comprehensive set of multimodal datasets. The extensive experimental results demonstrate Uni-MoE's principal advantage of significantly reducing performance bias in handling mixed multimodal datasets, alongside improved multi-expert collaboration and generalization. Our findings highlight the substantial potential of MoE frameworks in advancing MLLMs and the code is available at https://github.com/HITsz-TMG/UMOE-Scaling-Unified-Multimodal-LLMs.

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

↑