廉价且快速:大型语言模型的高效视觉-语言指令微调
Cheap and Quick: Efficient Vision-Language Instruction Tuning for Large Language Models
AI总结:
本文提出混合模态适应(MMA)方法,通过轻量级适配器和路由算法实现大型语言模型的高效视觉-语言指令微调,构建的LaVIN模型在极低开销下展现出优异性能。
摘要:
近期,扩展大型语言模型(LLMs)的多模态能力(如视觉-语言(VL)学习)引起了越来越多的兴趣,这被视为通用人工智能的下一个里程碑。然而,现有的解决方案代价高昂,不仅需要优化过多的参数,还需要在VL指令微调之前进行另一次大规模预训练。在本文中,我们提出了一种新颖且经济高效的解决方案,用于LLMs的有效VL适应,称为混合模态适应(MMA)。MMA不使用大型神经网络来连接图像编码器和LLM,而是采用轻量级模块(即适配器)来弥合LLMs与VL任务之间的差距,这也使得图像模型和语言模型能够联合优化。同时,MMA还配备了一种路由算法,帮助LLMs在单模态和多模态指令之间实现自动切换,而不损害其自然语言理解能力。为了验证MMA,我们将其应用于一个名为LLaMA的最新LLM,并将由此形成的大型视觉-语言指令模型称为LaVIN。为了验证MMA和LaVIN,我们在两种设置下进行了广泛的实验,即多模态科学问答和多模态对话。实验结果不仅证明了LaVIN相比现有的多模态LLMs具有竞争力的性能和优越的训练效率,还证实了其作为通用聊天机器人的巨大潜力。更重要的是,LaVIN的实际支出极其低廉,例如,仅需1.4个训练小时和3.8M可训练参数,极大地证实了MMA的有效性。我们的项目发布在https://luogen1996.github.io/lavin。
英文摘要:
Recently, growing interest has been aroused in extending the multimodal capability of large language models (LLMs), e.g., vision-language (VL) learning, which is regarded as the next milestone of artificial general intelligence. However, existing solutions are prohibitively expensive, which not only need to optimize excessive parameters, but also require another large-scale pre-training before VL instruction tuning. In this paper, we propose a novel and affordable solution for the effective VL adaption of LLMs, called Mixture-of-Modality Adaptation (MMA). Instead of using large neural networks to connect the image encoder and LLM, MMA adopts lightweight modules, i.e., adapters, to bridge the gap between LLMs and VL tasks, which also enables the joint optimization of the image and language models. Meanwhile, MMA is also equipped with a routing algorithm to help LLMs achieve an automatic shift between single- and multi-modal instructions without compromising their ability of natural language understanding. To validate MMA, we apply it to a recent LLM called LLaMA and term this formed large vision-language instructed model as LaVIN. To validate MMA and LaVIN, we conduct extensive experiments under two setups, namely multimodal science question answering and multimodal dialogue. The experimental results not only demonstrate the competitive performance and the superior training efficiency of LaVIN than existing multimodal LLMs, but also confirm its great potential as a general-purpose chatbot. More importantly, the actual expenditure of LaVIN is extremely cheap, e.g., only 1.4 training hours with 3.8M trainable parameters, greatly confirming the effectiveness of MMA. Our project is released at https://luogen1996.github.io/lavin.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。