CompCap: Improving Multimodal Large Language Models with Composite Captions

Xiaohui Chen, Satya Narayan Shukla, Mahmoud Azab, Aashu Singh, Qifan Wang, David Yang, ShengYun Peng, Hanchao Yu, Shen Yan, Xuewen Zhang, Baosheng He

TL;DR

This paper introduces CompCap, a novel framework for generating detailed captions for composite images (CIs) like charts and diagrams. By curating a large dataset of these CI-caption pairs, they demonstrate significant improvements in Multimodal Large Language Models' (MLLMs) ability to understand and reason about complex visual information, addressing a key limitation in current models.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) have shown impressive capabilities in understanding natural images (NIs) and their corresponding text. However, a significant gap exists in their ability to comprehend composite images (CIs). CIs are complex visuals formed by combining multiple elements such as charts, text, graphics, and images – think of screenshots of web pages, infographics, or even complex diagrams. These are ubiquitous in real-world applications, yet current MLLMs struggle to accurately extract information or perform reasoning based on them. The authors hypothesize that this limitation stems from a lack of high-quality CI-caption pairs in existing training datasets, which are crucial for robust vision-language alignment. While instruction-following datasets exist for CIs, they are insufficient for deep understanding.

Methods

The core contribution is the CompCap framework, a general system designed to synthesize high-quality CI-caption pairs. CompCap leverages metadata (raw data and configuration) to generate both the composite image and its detailed caption.

The process involves:

  1. Metadata Acquisition: Gathering raw data (e.g., image-caption pairs, tabular data, code snippets) and configuration parameters (e.g., chart type, layout specifications).
  2. Composite Image Generation: Using various rendering tools and Python libraries (like Matplotlib, Plotly, OpenCV, PIL) to construct the CI based on the metadata. The paper details specific pipelines for six CI types: Collage, Image-Text, Chart, Diagram, Code, and Table.
  3. Caption Generation: Employing Large Language Models (LLMs) with carefully designed prompts to generate accurate and detailed captions for the synthesized CIs. These prompts are tailored to each CI type, emphasizing accuracy and detailedness, and often include in-context examples.

The paper also introduces CompCap-118K, a dataset containing 118,000 synthetic CI-caption pairs generated using this framework.

Datasets

  • CompCap-118K: A newly curated dataset of 118,000 synthetic image-caption pairs specifically for composite images (CIs). It covers six categories: Collage (42.3%), Image-Text (31.4%), Chart (18.7%), Table (3.4%), Diagram (2.5%), and Code (1.7%).
  • Evaluation Benchmarks: The paper evaluates MLLMs on a mix of natural image (NI) focused benchmarks (SEEDBench, TextVQA, MMBench, MME, LLaVABench) and CI-focused benchmarks (MathVista, OCRBench, ChartQA, DocVQA, InfoVQA, WebSRC).

Key Insights and Ideas

  • CI Understanding is a Major Bottleneck: Current MLLMs perform significantly worse on CIs compared to NIs, indicating a critical gap in their visual comprehension capabilities.
  • Caption Data is Key for Alignment: The authors found that MLLMs' captioning abilities strongly correlate with their Visual Question Answering (VQA) performance, suggesting that detailed caption data is more crucial for deep understanding than just instruction-following data.
  • Synthetic Data Can Bridge the Gap: The CompCap framework demonstrates that synthetic data generation, when done thoughtfully with detailed captions, can effectively augment training data and improve MLLM performance on challenging visual tasks.
  • Accuracy and Detailedness Matter: The quality of CI captions is paramount. Captions must be factually accurate and provide comprehensive details about all visual elements and their relationships to enable effective MLLM understanding.

Key Results

  • Significant Performance Gains: Fine-tuning MLLMs with the CompCap-118K dataset led to average performance gains of 1.7%, 2.0%, and 2.9% across eleven benchmarks for 4B, 7B, and 13B model sizes, respectively, compared to models trained with similar data scales.
  • CI-Specific Improvements: These gains were particularly pronounced on benchmarks containing CIs.
  • Transferable Knowledge: Even on benchmarks not specifically designed for CIs (like MathVista, which often involves mathematical reasoning on charts), CompCap-trained models showed substantial improvements.
  • Qualitative Improvements: Examples show CompCap-trained models generating more informative and accurate captions for complex images compared to baseline models.

Limitations and Future Work

  • Dataset Scale: While CompCap-118K is substantial, the authors acknowledge that a performance gap still exists between their models and state-of-the-art (SOTA) MLLMs. However, they emphasize that their models are trained on significantly smaller datasets.
  • Future Work: The authors suggest expanding CompCap with more CI pipeline implementations and diverse raw data sources to further scale and enhance the generated dataset. They also aim to continue improving the quality and diversity of the synthetic data.

Summary updated

BibTeX
@inproceedings{chen2025compcap,
  author = {Xiaohui Chen and Satya Narayan Shukla and Mahmoud Azab and Aashu Singh and Qifan Wang and David Yang and ShengYun Peng and Hanchao Yu and Shen Yan and Xuewen Zhang and Baosheng He},
  title = {{CompCap: Improving Multimodal Large Language Models with Composite Captions}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure