FullAnno: A Data Engine for Enhancing Image Comprehension of MLLMs

Jing Hao, Yuxiang Zhao, Song Chen, Yanpeng Sun, Qiang Chen, Gang Zhang, Kun Yao, Errui Ding, Jingdong WangarXiv 2024 · DOI

TL;DR

This paper introduces FullAnno, an automated data engine that generates high-quality, fine-grained image annotations for training Multimodal Large Language Models (MLLMs). By employing a cascade of expert models and rich prompts, FullAnno significantly enhances the detail and accuracy of image-text data, leading to improved MLLM performance.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) are powerful tools for understanding and generating content that combines vision and language. However, their performance heavily relies on the quality and richness of the data used during supervised fine-tuning (SFT). Existing methods for generating high-quality data, often leveraging models like GPT-4V, face scalability issues due to commercial access and simplistic prompting strategies. Furthermore, mainstream image-text datasets, while abundant, often lack the fine-grained details (like precise object locations, attributes, and textual information within images) necessary for truly comprehensive image comprehension. This deficiency can lead to suboptimal modality alignment and limit the MLLMs' ability to grasp complex visual information.

Methods

The core of this work is the FullAnno system, a data engine designed for automated, large-scale, and fine-grained image annotation. FullAnno operates through a three-stage cascade process:

  1. Augmented Annotation and Data Filtering: This stage leverages enhanced object detection models and open-vocabulary detection to identify objects, their categories, and precise locations. To combat noise and inaccuracies from these specialized models, a filtering process involving Non-Maximum Suppression (NMS) and thresholding is applied.
  2. Text Information and Region Description:
    • Optical Character Recognition (OCR): An OCR model is used to extract text present within images. The accuracy of this OCR information is further refined by using LLaVA-v1.5 for verification and correction. A crucial step here is establishing a robust matching relationship between OCR outputs and object regions, ensuring that text is correctly associated with its visual context.
  3. Region Description: For each detected object, LLaVA-v1.5 is prompted to generate detailed descriptions. These prompts include the object's cropped region, surrounding context, and a specific query asking for a few descriptive sentences about the object.
  4. Integrate Annotations to Obtain Final Annotation: This final stage uses a large language model (GPT-3.5 in this case) to synthesize all the gathered information (object categories, positions, region descriptions, and OCR text) into comprehensive, dense image captions. The prompts used here are deliberately rich, incorporating these discrete pieces of information to guide the LLM towards generating more accurate and detailed captions, mitigating hallucinations.

Datasets

The authors re-annotated two widely used datasets:

  • COCO (Common Objects in Context): A standard dataset for object detection and image captioning.
  • Visual Genome: A dataset known for its detailed scene understanding, including object relationships and attributes.

The FullAnno system was used to augment these existing datasets, significantly increasing the number of object annotations and the length of image captions.

Key Insights and Ideas

  • Cascading Expert Models for Richness: The multi-stage approach, where each stage builds upon the output of the previous one (detection -> OCR/description -> LLM integration), is key to generating highly detailed annotations.
  • Rich Prompts for LLM Guidance: Simply asking an LLM to describe an image is insufficient. Providing structured information about objects, their locations, and associated text significantly improves the quality and accuracy of generated captions.
  • Mitigating Hallucinations: By grounding the LLM's generation process with concrete visual and textual information, FullAnno helps reduce instances of the model "making things up."
  • "Quality over Quantity" in SFT: The paper reinforces the idea that for MLLM training, detailed and accurate annotations are more impactful than simply having a larger volume of simpler data.

Key Results

  • Data Augmentation: The re-annotated COCO and Visual Genome datasets saw a tripling in the number of object annotations and a 15-fold increase in the average token length of image captions.
  • Performance Improvement: When the FullAnno-enhanced data was used to fine-tune LLaVA-v1.5 (without increasing the overall data volume), significant and consistent performance improvements were observed across several benchmarks (e.g., SQA_I, TextVQA, POPE, MME, MM-Vet, SEED). For instance, SQA_I improved from 66.8 to 69.6 (+2.8), and TextVQA from 58.2 to 59.4 (+1.2).
  • Qualitative Improvements: The generated captions are more detailed, accurate, and less prone to hallucinations compared to previous methods like LLaVA-ReCap, particularly in handling abbreviations and providing textual information.

Limitations and Future Work

  • Scalability of GPT-3.5: While FullAnno is more scalable than relying solely on GPT-4V for caption generation, the use of GPT-3.5 still involves commercial API calls, which could be a bottleneck for extremely large-scale deployments.
  • Computational Cost: The cascade of multiple models and the detailed annotation process inherently involve significant computational resources.
  • Future Work: The authors express hope that their FullAnno system will pave the way for further advancements in MLLMs by enabling the generation of even larger, higher-quality, and more fine-grained image caption datasets. The availability of the re-annotated data is intended to facilitate this research.

Summary updated

BibTeX
@misc{hao2024fullanno,
  author = {Jing Hao and Yuxiang Zhao and Song Chen and Yanpeng Sun and Qiang Chen and Gang Zhang and Kun Yao and Errui Ding and Jingdong Wang},
  title = {{FullAnno: A Data Engine for Enhancing Image Comprehension of MLLMs}},
  year = {2024},
  eprint = {2409.13540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.13540},
}
Figure