TL;DR
This paper introduces MM-Instruct, a novel dataset and benchmark designed to improve the instruction-following capabilities of large multimodal models (LMMs). By leveraging existing LLMs to generate diverse visual instruction data from large image captioning datasets, MM-Instruct enables LMMs to better handle real-world tasks beyond simple question-answering, such as creative writing and summarization.
What Problem Does This Paper Address?
Large multimodal models (LMMs) have shown impressive capabilities in understanding and generating content that combines vision and language. However, a significant challenge remains in aligning these models with nuanced human instructions, especially for tasks that go beyond straightforward question-answering or image captioning. Existing instruction-tuning datasets often focus on these simpler tasks, leading to LMMs that struggle with more complex requests like creative writing, summarization, or detailed image analysis. Manually creating such diverse and high-quality instruction data is prohibitively expensive and time-consuming. This paper aims to bridge this gap by proposing an automated method to generate a large-scale, diverse visual instruction dataset that can significantly enhance LMMs' ability to follow complex instructions.
Methods
The core of MM-Instruct's contribution lies in its automated pipeline for generating visual instruction data. The process involves several key steps:
- Instruction Generation: The authors leverage the strong instruction-following capabilities of LLMs, specifically ChatGPT, to generate novel instructions. They start with a small set of manually crafted "seed instructions" and use detailed text descriptions of images (generated by another LMM) as context. ChatGPT then generates new, diverse instructions. To ensure reusability and reduce redundancy, these generated instructions are clustered using k-means on their embeddings and then merged into consolidated instructions. This results in a set of approximately 300 diverse and reusable instructions.
- Instance Generation: For each image, a suitable instruction is selected using CLIP embeddings for image-instruction matching. Then, an LLM (initially a more powerful one like GPT-4 for few examples, followed by an open-source LLM like Mixtral-8x7b for large-scale generation) is prompted to generate an answer. Crucially, detailed text descriptions of the image are provided to the LLM to ensure the generated answer is grounded in the visual content and aligns with the instruction.
- Data Filtering: To maintain data quality, several heuristics are applied. This includes filtering out images with incomplete captions or low resolution, and using the LLM (Mistral-8x7b) to verify if the generated instruction is appropriate for the image description. Additionally, rules are used to filter out answers with incomplete content or repetitive patterns.
- LLaVA-Instruct Baseline: The authors train a LLaVA-1.5 model on their generated MM-Instruct dataset, creating a baseline model named LLaVA-Instruct. This model serves to demonstrate the effectiveness of their dataset.
Datasets
- Training Data: The MM-Instruct dataset is generated using existing large-scale image captioning datasets, specifically Segment Anything 1 Billion (SA-1B) and DataComp-1B.
- Benchmark: A new test set is created for evaluating instruction-following capabilities. This benchmark involves manually selecting 3 images for each of 33 held-out instructions and using GPT-4V to generate target answers.
Key Insights and Ideas
- Leveraging LLMs for Data Generation: The paper demonstrates that powerful LLMs can be effectively used to automate the creation of diverse and complex instruction-following data, overcoming the limitations of manual annotation.
- Bridging the Gap to Real-World Tasks: By moving beyond simple Q&A, MM-Instruct addresses the critical need for LMMs that can handle more creative and nuanced tasks, making them more useful in real-world applications.
- Instruction Diversity is Key: The method's success hinges on generating a wide variety of instructions, covering different verbs and noun objects, which leads to more versatile LMMs.
- Grounding is Crucial: Providing detailed image descriptions to the LLM during answer generation is essential for ensuring that the model's responses are visually grounded and relevant.
Key Results
- Improved Instruction Following: LLaVA-Instruct, trained on MM-Instruct, significantly outperforms LLaVA-1.5 and InstructBLIP in instruction-following capabilities, with GPT-4V judging LLaVA-Instruct-7B to be equally or more preferable in 72% of cases compared to LLaVA-1.5-7B.
- Enhanced General Capabilities: The improved instruction-following abilities also translate to better performance on traditional vision-language benchmarks, with LLaVA-Instruct outperforming LLaVA-1.5 on 9 out of 12 evaluated tasks.
- High-Quality Data Generation: The generated data is shown to be of high quality, with GPT-4V preferring MM-Instruct's answers over those from Gemini-Pro and GPT-4V in 73% and 71% of cases, respectively.
- Effectiveness of Data Size and Filtering: Ablation studies show that increasing the amount of instruction data and applying data filtering significantly improves performance.
Limitations and Future Work
- Reliance on LLMs: While effective, the generation process relies on the capabilities of existing LLMs, which might inherit their biases or limitations.
- Cost-Effectiveness: Although more cost-effective than manual annotation, the automated generation still involves computational costs.
- Future Work: The authors suggest further exploration of instruction diversity and the impact of different base LLMs. They also highlight the potential for their dataset and benchmark to drive further research in LMM alignment.
Summary updated