[论文解读] Cheap and Quick: Efficient Vision-Language Instruction Tuning for Large Language Models
论文提出 Mixture-of-Modality Adaptation (MMA) 来高效地将大语言模型(LLMs)自适应到视觉-语言(VL)任务,使用轻量级适配器实现端到端训练,参数少。它推出 LaVIN,一个以 LLaMA 为基础的视觉语言指令模型,在极低的训练成本下实现具竞争力的性能。
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.
研究动机与目标
- 为大型语言模型(LLMs)提供可负担的视觉语言(VL)自适应,而无需大规模 VL 预训练。
- 引入 MMA,通过轻量级适配器和动态路由机制将图像编码器与 LLM 连接起来。
- 展示在端到端目标下以较小参数量进行训练,并在多模态科学问答和对话任务上验证。
提出的方法
- 引入 Mixture-of-Modality Adapter (MM-Adapter),通过模态令牌和基于 softmax 的路由器在单模态与多模态自适应之间动态切换。
- 定义 Mixture-of-Modality Training (MMT),在端到端目标下冻结骨干 LLM 与图像编码器,仅对适配器进行微调。
- 将 MMA 应用于 LLaMA,创建 LaVIN,以 CLIP-ViT 作为图像编码器,并使用六个 [cls] ViT 令牌作为视觉特征。
- 使用带小参数量的视觉颈部(如 3–5M 可训练参数),并以文本单元指令和文本-图像指令的混合进行训练。
- 联合优化多模态 LLM,通过端到端训练实现对文本单模态与图像-文本指令的自动切换。
实验结果
研究问题
- RQ1MMA 是否能够在显著降低训练成本和参数量的情况下实现有竞争力的 VL 指令微调性能?
- RQ2LaVIN 是否在没有 VL 预训练的情况下,保持 NLP 能力同时获得 VL 理解能力?
- RQ3MMA 如何在推理阶段实现文本单一指令与图像-文本指令之间的自动切换?
- RQ4适配器大小、图像编码器强度以及 LLM 规模对 ScienceQA 与多模态对话性能有何影响?
主要发现
- 在极大地降低训练时间和存储需求的同时,LaVIN 与 MMA 在多模态大语言模型领域达到有竞争力的结果(例如 ScienceQA 上 1.4 小时训练时间,3.8M 可训练参数)。
- LaVIN-13B 在 ScienceQA 测试集获得约 90.83 的准确率,参数预算为 5.4M,超过了若干参数高效基线。
- MMT 在消融实验中带来最大的增益,在更强的图像编码器和联合优化下,平均准确率提升高达 +4.69。
- 对图像编码器与 LLM 进行联合优化,并使用更强的图像编码器(ViT-L/14)后,取得显著的准确率提升,验证端到端 VL 自适应的益处。
- 在 COCO 标注任务上,LaVIN 在前置训练数据和更新参数显著较少的情况下实现了具竞争力的 CIDEr 分数,且训练成本远低于 BLIP-2 与 LLaVA。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。