
摘要
大规模预训练和指令调优在创建具有广泛能力的通用语言模型方面取得了成功。然而,由于额外的视觉输入导致的丰富输入分布和任务多样性,构建通用的视觉-语言模型仍然充满挑战。尽管视觉-语言预训练已经得到了广泛研究,但视觉-语言指令调优仍处于探索阶段。本文中,我们基于预训练的BLIP-2模型,对视觉-语言指令调优进行了系统而全面的研究。我们收集了26个公开可用的数据集,涵盖了多种任务和能力,并将其转换为指令调优格式。此外,我们引入了一种指令感知的Query Transformer(查询变换器),该模型能够提取与给定指令相关的有用特征。通过在13个内部数据集上进行训练,InstructBLIP在所有13个外部数据集上均达到了最先进的零样本性能,显著优于BLIP-2和更大的Flamingo模型。我们的模型在针对个别下游任务进行微调时也表现出色(例如,在包含图像上下文的ScienceQA问题上达到90.7%的准确率)。此外,我们还从定性的角度展示了InstructBLIP相对于同期多模态模型的优势。所有InstructBLIP模型均已开源,代码库地址为https://github.com/salesforce/LAVIS/tree/main/projects/instructblip。
代码仓库
salesforce/lavis
官方
pytorch
GitHub 中提及
MS-P3/code3/tree/main/instructblip
mindspore
pwc-1/Paper-9/tree/main/instructblip
mindspore
tabtoyou/kollava
pytorch
GitHub 中提及
基准测试
| 基准 | 方法 | 指标 |
|---|---|---|
| long-context-understanding-on-mmneedle | InstructBLIP-Vicuna-13B | 1 Image, 2*2 Stitching, Exact Accuracy: 0 1 Image, 4*4 Stitching, Exact Accuracy: 0 1 Image, 8*8 Stitching, Exact Accuracy: 0 10 Images, 1*1 Stitching, Exact Accuracy: 0 10 Images, 2*2 Stitching, Exact Accuracy: 0 10 Images, 4*4 Stitching, Exact Accuracy: 0 10 Images, 8*8 Stitching, Exact Accuracy: 0 |
| long-context-understanding-on-mmneedle | InstructBLIP-Flan-T5-XXL | 1 Image, 2*2 Stitching, Exact Accuracy: 3.8 1 Image, 4*4 Stitching, Exact Accuracy: 6.2 1 Image, 8*8 Stitching, Exact Accuracy: 2.2 10 Images, 1*1 Stitching, Exact Accuracy: 0 10 Images, 2*2 Stitching, Exact Accuracy: 0 10 Images, 4*4 Stitching, Exact Accuracy: 0 10 Images, 8*8 Stitching, Exact Accuracy: 0 |
| video-question-answering-on-mvbench | InstructBLIP | Avg.: 32.5 |
| visual-instruction-following-on-llava-bench | InstructBLIP-13B | avg score: 58.2 |
| visual-instruction-following-on-llava-bench | InstructBLIP-7B | avg score: 60.9 |
| visual-question-answering-on-benchlmm | InstructBLIP-7B | GPT-3.5 score: 44.63 |
| visual-question-answering-on-benchlmm | InstructBLIP-13B | GPT-3.5 score: 45.03 |
| visual-question-answering-on-vip-bench | InstructBLIP-13B (Visual Prompt) | GPT-4 score (bbox): 35.8 GPT-4 score (human): 35.2 |
| visual-question-answering-vqa-on-core-mm | InstructBLIP | Abductive: 37.76 Analogical: 20.56 Deductive: 27.56 Overall score: 28.02 Params: 8B |