Generating Diverse and Accurate Visual Captions by Comparative Adversarial Learning

Dianqi Li, Qiuyuan Huang, Xiaodong He, Lei Zhang, Ming-Ting Sun

Abstract

Standard image captioning models often produce generic, repetitive descriptions that fail to capture the unique details of an image. This paper introduces Comparative Adversarial Learning (CAL), a framework designed to move beyond "one-size-fits-all" captions. By training a discriminator to rank captions based on their relative relevance rather than providing a simple binary "real or fake" label, the model learns to generate descriptions that are both more accurate and significantly more diverse.

The Challenge of Generic Captions

Most state-of-the-art image captioning models suffer from a "boringness" problem. Because they are typically trained using Maximum Likelihood Estimation (MLE) to match ground-truth human captions, they gravitate toward safe, high-frequency phrases. For example, a model might describe almost any man in formal wear as "a man wearing a suit and tie," ignoring specific details like a striped tie or glasses that make that specific image unique.

While these captions are technically accurate, they lack distinctiveness—the ability to distinguish one image from a group of similar ones. Previous attempts to use Generative Adversarial Networks (GANs) for this task often struggled because a simple binary discriminator provides a weak and noisy signal for the complex, high-variability space of natural language.

Comparative Adversarial Learning (CAL)

The authors propose the CAL framework to provide a more stable and informative training signal. The core innovation is moving from an absolute binary score to a relative comparative relevance score (cr-score).

Architecture and Training

The system consists of two main components:

  • The Discriminator ($D$): Instead of looking at one caption at a time, the discriminator evaluates a set of captions for a given image: a generated caption ($g$), a human-written caption ($h$), and unrelated captions from other images ($u$). It learns to rank the human caption highest and the generated/unrelated ones lower.
  • The Generator ($G$): Based on a standard CNN-LSTM architecture, the generator is augmented with a random noise vector ($z$) to encourage variation. Because text generation involves discrete steps that are non-differentiable, the authors use Policy Gradient with Monte Carlo rollouts to train the generator using the cr-score as a reward.
The CAL architecture utilizes a discriminator to provide a comparative reward signal to the generator via policy gradients and Monte Carlo rollouts.

Experimental Results

The models were trained and evaluated on the MSCOCO dataset. To measure success, the authors looked beyond standard metrics like BLEU or CIDEr, which often penalize diversity, and introduced a new metric based on the semantic variance of caption embeddings.

Human Evaluation

In head-to-head tests on Amazon Mechanical Turk, humans significantly preferred CAL's captions over baselines. As shown in the evaluation results, CAL outperformed the MLE baseline in 57% of cases and standard G-GANs in 51.4% of cases.

Human evaluation results show that CAL captions are preferred over MLE and standard G-GAN baselines significantly more often.

Distinctiveness and Retrieval

The effectiveness of CAL is further evidenced by image retrieval tasks. The authors tested how well a generated caption could "find" its original image in a large pool. CAL achieved a Recall@1 of 18.81%, significantly higher than MLE (3.03%), proving that CAL captions are far more distinctive and descriptive.

Conclusion

Comparative Adversarial Learning successfully addresses the lack of diversity in automated image captioning. By shifting the training objective from absolute classification to relative ranking, the CAL framework encourages the model to adopt the specific, descriptive language used by humans, resulting in captions that are both accurate and uniquely representative of the visual content.

Summary updated

BibTeX
@misc{li2018generating,
  author = {Dianqi Li and Qiuyuan Huang and Xiaodong He and Lei Zhang and Ming-Ting Sun},
  title = {{Generating Diverse and Accurate Visual Captions by Comparative Adversarial Learning}},
  year = {2018},
  eprint = {1804.00861},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.00861},
}
Figure