StableLLaVA: Enhanced Visual Instruction Tuning with Synthesized Image-Dialogue Data

Yanda Li, Chi Zhang, Gang Yu, Zhibin Wang, Bin Fu, Guosheng Lin, Chunhua Shen, Ling Chen, Yunchao WeiarXiv 2023

Abstract

The remarkable multimodal capabilities demonstrated by OpenAI's GPT-4 have sparked significant interest in the development of multimodal Large Language Models (LLMs). A primary research objective of such models is to align visual and textual modalities effectively while comprehending human instructions. Current methodologies often rely on annotations derived from benchmark datasets to construct image-dialogue datasets for training purposes, akin to instruction tuning in LLMs. However, these datasets often exhibit domain bias, potentially constraining the generative capabilities of the models. In an effort to mitigate these limitations, we propose a novel data collection methodology that synchronously synthesizes images and dialogues for visual instruction tuning. This approach harnesses the power of generative models, marrying the abilities of ChatGPT and text-to-image generative models to yield a diverse and controllable dataset with varied image content. Additionally, datasets can be arbitrarily scaled. This not only provides greater flexibility compared to existing methodologies but also significantly enhances several model capabilities. Our research includes comprehensive experiments conducted on various datasets. The results emphasize substantial enhancements in more than ten commonly assessed capabilities. Additionally, our model achieves state-of-the-art results across multiple widely recognized multimodal benchmarks.

The Data Bottleneck in Multimodal LLMs

Multimodal Large Language Models (MLLMs) like LLaVA have demonstrated impressive potential in bridging the gap between vision and language. However, the performance of these models is fundamentally limited by the quality and diversity of their training data. Most current visual instruction tuning relies on human-annotated datasets like COCO, which present three significant challenges:

  1. Domain Bias: Existing datasets are often confined to everyday photography, lacking representation for stylized art, abstract concepts, or specialized domains.
  2. Annotation Scarcity: Human labeling is expensive and difficult to scale to the massive volumes required for robust model training.
  3. Reasoning Gaps: Standard datasets rarely capture the complex logical relationships needed for advanced tasks like anomaly detection or multi-image reasoning.

StableLLaVA addresses these hurdles by shifting from data discovery to data synthesis, using AI to imagine both the visual scene and the accompanying dialogue simultaneously.

Methodology: The Dual-Generation Pipeline

The core of StableLLaVA is a Dual-Generation Pipeline that creates high-quality training data without requiring pre-existing images. The process begins with SD Prompt Generation, where ChatGPT is tasked with creating detailed prompts for Stable Diffusion. These prompts are categorized by specific "abilities"—such as physical attributes or human societal roles—and are kept diverse through a dynamic substitution strategy.

Once the prompts are generated, Stable Diffusion synthesizes the images. Because ChatGPT already "understands" the intended content of the image from the prompt it created, it can then generate complex, multi-turn dialogues, questions, and answers about that image. This pipeline is further extended to create multi-image instances, where the model learns to compare and contrast related visual inputs.

Figure 6: Examples of synthesized image-dialogue data, including multi-turn cooking instructions, anomaly detection (elephant in a gown), and profession recognition.

Key Insights and Results

By fine-tuning the LLaVA architecture (CLIP visual encoder and Vicuna language model) on this synthesized data, the researchers achieved several breakthroughs:

  • Controllability: Instead of searching for rare images, the pipeline allows for the targeted creation of "stress-test" scenarios, such as identifying unusual objects or complex logical sequences.
  • Multi-Image Reasoning: The inclusion of synthesized image pairs significantly improved the model's ability to perform comparative analysis, a traditional weakness in open-source MLLMs.
  • Benchmark Performance: StableLLaVA achieved state-of-the-art results on major benchmarks, reaching 58.4 on VisWiz and 69.1 on MMBench, outperforming the LLaVA-1.5 baseline.

Qualitative evaluations show that the model is particularly adept at identifying anomalies (e.g., a bike with watermelon wheels) and following complex, multi-step instructions, such as recipe preparation based on a sequence of images.

Conclusion and Future Work

StableLLaVA demonstrates that the internal knowledge of text-only LLMs can be effectively projected into the visual domain using text-to-image models as a bridge. While current limitations include challenges with fine-grained spatial precision and OCR tasks due to the constraints of underlying diffusion models, the framework is highly scalable. Future iterations plan to integrate more advanced generators like DALL-E 3 and expand into synthesized frame sequences for long-form video understanding.

Summary updated

BibTeX
@misc{li2023stablellava,
  author = {Yanda Li and Chi Zhang and Gang Yu and Zhibin Wang and Bin Fu and Guosheng Lin and Chunhua Shen and Ling Chen and Yunchao Wei},
  title = {{StableLLaVA: Enhanced Visual Instruction Tuning with Synthesized Image-Dialogue Data}},
  year = {2023},
  eprint = {2308.10253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.10253},
}
Figure