CuMo:利用协同升级混合专家扩展多模态大语言模型
CuMo: Scaling Multimodal LLM with Co-Upcycled Mixture-of-Experts
AI总结:
本文提出CuMo,通过在视觉编码器和MLP连接器中引入协同升级的Top-K稀疏MoE模块,以少量推理激活参数增强多模态LLM,并在多个基准上超过同规模先进模型。
摘要:
近期多模态大语言模型(LLM)的进展主要集中于通过增加文本-图像对数据并增强LLM来扩展规模,以提升多模态任务性能。然而,这些扩展方法计算成本高昂,并且忽视了从视觉端提升模型能力的重要性。受混合专家(MoE)在LLM中成功应用的启发——MoE可在训练期间提升模型可扩展性,同时使推理成本与较小模型保持相近——我们提出了CuMo。CuMo将协同升级的Top-K稀疏门控混合专家模块同时纳入视觉编码器和MLP连接器,从而在推理期间仅增加极少激活参数的情况下增强多模态LLM。CuMo首先预训练MLP模块,随后在视觉指令微调阶段,用预训练的MLP模块初始化MoE模块中的每个专家。研究采用辅助损失来确保专家的均衡负载。在仅使用开源数据集进行训练的情况下,CuMo在各类VQA和视觉指令遵循基准测试中,凭借各模型规模组内的模型,性能优于最先进的多模态LLM。CuMo的代码和模型权重已在https://github.com/SHI-Labs/CuMo开源。
英文摘要:
Recent advancements in Multimodal Large Language Models (LLMs) have focused primarily on scaling by increasing text-image pair data and enhancing LLMs to improve performance on multimodal tasks. However, these scaling approaches are computationally expensive and overlook the significance of improving model capabilities from the vision side. Inspired by the successful applications of Mixture-of-Experts (MoE) in LLMs, which improves model scalability during training while keeping inference costs similar to those of smaller models, we propose CuMo. CuMo incorporates Co-upcycled Top-K sparsely-gated Mixture-of-experts blocks into both the vision encoder and the MLP connector, thereby enhancing the multimodal LLMs with minimal additional activated parameters during inference. CuMo first pre-trains the MLP blocks and then initializes each expert in the MoE block from the pre-trained MLP block during the visual instruction tuning stage. Auxiliary losses are used to ensure a balanced loading of experts. CuMo outperforms state-of-the-art multimodal LLMs across various VQA and visual-instruction-following benchmarks using models within each model size group, all while training exclusively on open-sourced datasets. The code and model weights for CuMo are open-sourced at https://github.com/SHI-Labs/CuMo.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。