MAGIC: Multimodal relAtional Graph adversarIal inferenCe for Diverse and Unpaired Text-Based Image Captioning

Wenqiao Zhang, Haochen Shi, Jiannan Guo, Shengyu Zhang, Qingpeng Cai, Juncheng Li, Sihui Luo, Yueting Zhuang

Introduction

Text-based image captioning (TextCap) represents a significant advancement over standard captioning by requiring models to integrate visual recognition with optical character recognition (OCR). This allows models to generate descriptions that contextualize text within a scene—for example, identifying a price on a specific product shelf. However, progress in TextCap is hindered by the high cost of paired image-caption datasets and the difficulty of generating diverse descriptions for complex scenes. The MAGIC framework introduces an unpaired learning paradigm that leverages multimodal relational graphs and adversarial training to generate diverse, accurate captions without direct supervision.

Problem Statement: Data Scarcity and Diversity

Current TextCap research faces two primary challenges:

  1. Data Scarcity: Creating paired datasets where images are annotated with captions specifically referencing OCR text is labor-intensive and expensive.
  2. Lack of Diversity: A single image can be described in many ways depending on human focus. Most models produce a single, generic caption, failing to capture the "multiview" nature of complex scenes.
The MAGIC framework addresses TextCap by mapping multimodal relational graphs from images to a sentence domain, enabling inference without paired data.

Methodology

The MAGIC framework (Multimodal relAtional Graph adversarIal inferenCe) bridges the gap between visual and textual domains through three core components designed to function without direct supervision:

1. Multimodal Relational Graph Encoder

Instead of processing an image as a single block, MAGIC identifies "central objects" via a Central Object-Aware Pool (COP). For each object, it constructs a Multimodal Relational Graph (MRG) connecting the object to its visual neighbors and relevant OCR tokens. These graphs are processed through Graph Convolutional Networks (GCNs) to create rich, localized embeddings.

2. Sentence Auto-Encoder

This module is pre-trained on a standalone text corpus. It learns to encode scene graphs (representing sentence structure) into a latent space and then reconstruct the original sentences, effectively teaching the model the linguistic rules of the target domain.

3. Unpaired Adversarial Caption Inference

A cascaded Generative Adversarial Network (GAN) aligns the image-based graph embeddings with the sentence-based latent space. It utilizes Optimal Transport (Wasserstein distance) to overcome the distribution gap between visual features and natural language, while a language discriminator ensures the generated captions are fluent and coherent.

The MAGIC architecture overview: from multimodal graph encoding to adversarial feature alignment and sentence decoding.

Experimental Results

Evaluated on the TextCaps dataset, MAGIC demonstrates significant improvements over unpaired baselines across both accuracy and diversity metrics:

  • Accuracy: MAGIC achieved a CIDEr score of 76.6 on the validation set, substantially outperforming the 31.1 score of a simplified cycle-GAN baseline (ISM-LSTM). This highlights the superiority of the relational graph approach for "reading" images.
  • Diversity: The model reached a Div-2 score of 40.9 and a SelfCIDEr of 49.6, confirming that the generated captions for a single image are semantically varied and distinct.
  • Human Evaluation: In user studies, MAGIC was preferred for its ability to describe images more accurately and fluently than variants lacking the cascaded GAN alignment.

Conclusion

MAGIC effectively addresses the hurdles of data scarcity and caption diversity in TextCap. By using relational graphs as a common language between visual and linguistic domains, it enables high-quality, multi-view captioning in an unpaired setting. Future work may explore more sophisticated object selection methods or extension to video-based text captioning, where temporal relationships add further complexity.

Summary updated

BibTeX
@inproceedings{zhang2022magic,
  author = {Wenqiao Zhang and Haochen Shi and Jiannan Guo and Shengyu Zhang and Qingpeng Cai and Juncheng Li and Sihui Luo and Yueting Zhuang},
  title = {{MAGIC: Multimodal relAtional Graph adversarIal inferenCe for Diverse and Unpaired Text-Based Image Captioning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i3.20243},
}
Figure