arXiv(opens in a new tab)Computer ScienceMay 2023Cited by 25 papers on PaperVantageClassic Paper

Manuscript Offprint

arXiv:2305.06500

InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning

Wenliang Dai, Junnan Li, Dongxu Li, A. Tiong, Junqi Zhao, Weisheng Wang, Boyang Albert Li, Pascale Fung, Steven C. H. Hoi

Abstract

Large-scale pre-training and instruction tuning have been successful at creating general-purpose language models with broad competence. However, building general-purpose vision-language models is challenging due to the rich input distributions and task diversity resulting from the additional visual input. Although vision-language pretraining has been widely studied, vision-language instruction tuning remains under-explored. In this paper, we conduct a systematic and comprehensive study on vision-language instruction tuning based on the pretrained BLIP-2 models. We gather 26 publicly available datasets, covering a wide variety of tasks and capabilities, and transform them into instruction tuning format. Additionally, we introduce an instruction-aware Query Transformer, which extracts informative features tailored to the given instruction. Trained on 13 held-in datasets, InstructBLIP attains state-of-the-art zero-shot performance across all 13 held-out datasets, substantially outperforming BLIP-2 and larger Flamingo models. Our models also lead to state-of-the-art performance when finetuned on individual downstream tasks (e.g., 90.7% accuracy on ScienceQA questions with image contexts). Furthermore, we qualitatively demonstrate the advantages of InstructBLIP over concurrent multimodal models. All InstructBLIP models are open-sourced.

Figure

Figure 1: A few qualitative examples generated by our InstructBLIP Vicuna model. Here, a range of its diverse capabilities are demonstrated, including complex visual scene understanding and reasoning, knowledge-grounded image description, multi-turn visual conversation, etc.

1 Introduction

A longstanding aspiration of Artificial Intelligence (AI) research is to build a single model that can solve arbitrary tasks specified by the user. In natural language processing (NLP), instruction tuning [46, 7] proves to be a promising approach toward that goal. By finetuning a large language model (LLM) on a wide range of tasks described by natural language instructions, instruction tuning enables the model to follow arbitrary instructions. Recently, instruction-tuned LLMs have also been leveraged for vision-language tasks. For example, BLIP-2 [20] effectively adapts frozen instruction-tuned LLMs to understand visual inputs and exhibits preliminary capabilities to follow instructions in image-to-text generation.

Compared to NLP tasks, vision-language tasks are more diverse in nature due to the additional visual inputs from various domains. This poses a greater challenge to a unified model that is supposed to generalize to diverse vision-language tasks, many unseen during training. Most previous work can be grouped into two approaches. The first approach, multitask learning [6, 27], formulates various vision-language tasks into the same input-output format. However, we empirically find multitask learning without instructions (Table 4) does not generalize well to unseen datasets and tasks. The second approach [20, 4] extends a pre-trained LLM with additional visual components, and trains the visual components with image caption data. Nevertheless, such data are too limited to allow broad generalization to vision-language tasks that require more than visual descriptions.

To address the aforementioned challenges, this paper presents InstructBLIP, a vision-language instruction tuning framework that enables general-purpose models to solve a wide range of visual-language tasks through a unified natural language interface. InstructBLIP uses a diverse set of instruction data to train a multimodal LLM. Specifically, we initialize training with a pre-trained BLIP-2 model consisting of an image encoder, an LLM, and a Query Transformer (Q-Former) to bridge the two. During instruction tuning, we finetune the Q-Former while keeping the image encoder and LLM frozen. Our paper makes the following key contributions:

  • We perform a comprehensive and systematic study on vision-language instruction tuning. We transform 26 datasets into the instruction tuning format and group them into 11 task categories. We use 13 held-in datasets for instruction tuning and 13 held-out datasets for zero-shot evaluation. Moreover, we withhold four entire task categories for zero-shot evaluation at the task level. Exhaustive quantitative and qualitative results demonstrate the effectiveness of InstructBLIP on vision-language zero-shot generalization.
  • We propose instruction-aware visual feature extraction, a novel mechanism that enables flexible and informative feature extraction according to the given instructions. Specifically, the textual instruction is given not only to the frozen LLM, but also to the Q-Former, so that it can extract instruction-aware visual features from the frozen image encoder. Also, we propose a balanced sampling strategy to synchronize learning progress across datasets.
  • We evaluate and open-source a suite of InstructBLIP models using two families of LLMs: 1) FlanT5 [7], an encoder-decoder LLM finetuned from T5 [34]; 2) Vicuna [2], a decoder-only LLM finetuned from LLaMA [41]. The InstructBLIP models achieve state-of-the-art zero-shot performance on a wide range of vision-language tasks. Furthermore, InstructBLIP models lead to state-of-the-art finetuning performance when used as the model initialization on individual downstream tasks.

References (49)

  • nocaps: novel object captioning at scale
  • Flamingo: a visual language model for few-shot learning
  • Language Models are Few-Shot Learners
  • Unifying vision-and-language tasks via text generation (opens arXiv in a new tab)
  • Scaling Instruction-Finetuned Language Models
  • Visual dialog
  • Palm-e: An embodied multimodal language model, 2023
  • Eva: Exploring the limits of masked visual representation learning at scale
  • Making the v in vqa matter: Elevating the role of image understanding in visual question answering
  • Vizwiz grand challenge: Answering visual questions from blind people
  • Unnatural instructions: Tuning language models with (almost) no human labor
  • Lora: Low-rank adaptation of large language models
  • Promptcap: Prompt-guided task-aware image captioning, 2023
  • Hudson and Christopher D. Manning
  • Deep visual-semantic alignments for generating image descriptions
  • The hateful memes challenge: Detecting hate speech in multimodal memes
  • Lavis: A library for language-vision intelligence, 2022
  • Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models
  • Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation
  • Align before fuse: Vision and language representation learning with momentum distillation
  • Microsoft coco: Common objects in context
  • Visual spatial reasoning
  • Visual instruction tuning
  • Decoupled weight decay regularization
  • 12-in-1: Multi-task vision and language representation learning
  • Learn to explain: Multimodal reasoning via thought chains for science question answering
  • Iconqa: A new benchmark for abstract diagram understanding and visual language reasoning
  • Ok-vqa: A visual question answering benchmark requiring external knowledge
  • Ocr-vqa: Visual question answering by reading text in images
  • Large-scale pretraining for visual dialog: A simple state-of-the-art baseline
  • Exploring the limits of transfer learning with a unified text-to-text transformer
  • Multitask prompted training enables zero-shot task generalization
  • A-okvqa: A benchmark for visual question answering using world knowledge
  • Prompting large language models with answer heuristics for knowledge-based visual question answering
  • Textcaps: a dataset for image captioningwith reading comprehension
  • Towards vqa models that can read
  • Stanford alpaca: An instruction-following llama model
  • LLaMA: Open and Efficient Foundation Language Models
  • Lawrence Zitnick, and Devi Parikh
  • Git: A generative image-to-text transformer for vision and language, 2022
  • Self-instruct: Aligning language model with self generated instructions
  • Super-NaturalInstructions: Generalization via declarative instructions on 1600+ NLP tasks
  • Finetuned language models are zero-shot learners
  • Video question answering via gradually refined attention over appearance and motion
  • Multiinstruct: Improving multi-modal zero-shot learning via instruction tuning
  • Just ask: Learning to answer questions from millions of narrated videos
  • mplug-owl: Modularization empowers large language models with multimodality
  • From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions
  • Minigpt-4: Enhancing vision-language understanding with advanced large language models, 2023

Cited by (25)