Image Captioning with Multi-Context Synthetic Data

Feipeng Ma, Yizhou Zhou, Fengyun Rao, Yueyi Zhang, Xiaoyan Sun

Abstract

Training high-performing image captioning models typically requires large-scale human-annotated datasets. This paper introduces ICSD (Image Captioning with Multi-Context Synthetic Data), a pipeline that leverages Large Language Models (LLMs) and Diffusion Models to generate complex, multi-context synthetic training data. By training exclusively on this synthetic data, the proposed model achieves state-of-the-art performance on standard benchmarks like MSCOCO and Flickr30k, effectively bridging the gap between simple synthetic data and complex real-world scenes.

Introduction

The primary bottleneck in training image captioning models is the high cost and noise associated with human-annotated or web-crawled image-text pairs. While synthetic data offers a scalable alternative, existing methods often produce "uni-context" data—simple images with single objects—that fail to capture the complexity of real-world photography. Real-world scenes are characterized by multiple interacting objects and specific spatial arrangements. ICSD addresses this by automating the creation of scene-rich synthetic training data.

Methods: The ICSD Pipeline

The ICSD pipeline consists of two primary stages: Generation and Training.

1. The Generation Stage

The generation process begins with a text-only corpus. Using CLIP-based text embeddings, semantically similar simple captions are grouped together. An LLM (GPT-3.5-turbo) then selects captions from these groups that could realistically coexist in a single scene and summarizes them into a coherent "multi-context" caption. Finally, these complex descriptions are fed into Stable Diffusion v1.4 to generate high-quality images that match the multi-faceted descriptions.

The ICSD pipeline overview, illustrating the generation of multi-context synthetic data and subsequent model training.

2. The Training Stage

A standard encoder-decoder model, utilizing a ViT-B/32 encoder and a BERT-base decoder, is trained exclusively on the generated synthetic pairs. The model uses Cross-Entropy loss, treating the synthetic images as visual input and the summarized captions as target text.

Key Insights

The core innovation of ICSD lies in addressing the "complexity gap." By forcing the generative model to create scenes with multiple interacting elements, the training data becomes significantly more representative of real-world photography.

An example of a multi-context image generated from a summarized caption, combining elements like a parked airplane and a luggage cart.

LLMs act as "scene directors," ensuring that the combined elements maintain "common sense" consistency (e.g., a jetliner belongs on a tarmac, not in a living room). To prevent hallucinations, a Chain-of-Thought prompting strategy is employed, requiring the LLM to identify the source sentence indices before generating the summary.

Experimental Results

The ICSD model sets new benchmarks for unsupervised image captioning:

  • MSCOCO: Achieved a CIDEr score of 96.6, outperforming the previous best unsupervised method, DeCap (92.9).
  • Flickr30k: Reached a CIDEr score of 54.3, surpassing the previous state-of-the-art (49.3).
  • NoCaps: Demonstrated strong generalization in cross-domain testing, particularly for in-domain and near-domain categories.

Ablation studies confirmed that the multi-context approach is vital; models trained on complex summarized captions significantly outperformed those trained on simple, single-sentence captions.

Conclusion and Future Work

While ICSD significantly improves synthetic data quality, limitations remain. The diversity of the data is constrained by the initial text corpus, and the model may inherit biases from the underlying LLM or Diffusion model. Additionally, a "realism gap" persists between synthetic textures and real-world sensor noise. Future research may focus on refining the diffusion process to better mimic camera-specific characteristics and expanding the diversity of the source text corpora.

Summary updated

BibTeX
@inproceedings{ma2024image,
  author = {Feipeng Ma and Yizhou Zhou and Fengyun Rao and Yueyi Zhang and Xiaoyan Sun},
  title = {{Image Captioning with Multi-Context Synthetic Data}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i5.28203},
}
Figure