CapWAP: Captioning with a Purpose

Adam Fisch, Kenton Lee, Ming-Wei Chang, Jonathan H. Clark, Regina BarzilayarXiv 2020

Abstract

The traditional image captioning task uses generic reference captions to provide textual information about images. Different user populations, however, will care about different visual aspects of images. In this paper, we propose a new task, Captioning with a Purpose (CapWAP). Our goal is to develop systems that can be tailored to be useful for the information needs of an intended population, rather than merely provide generic information about an image. In this task, we use question-answer (QA) pairs—a natural expression of information need—from users, instead of reference captions, for both training and post-inference evaluation. We show that it is possible to use reinforcement learning to directly optimize for the intended information need, by rewarding outputs that allow a question answering model to provide correct answers to sampled user questions. We convert several visual question answering datasets into CapWAP datasets, and demonstrate that under a variety of scenarios our purposeful captioning system learns to anticipate and fulfill specific information needs better than its generic counterparts, as measured by QA performance on user questions from unseen images, when using the caption alone as context.

1. Introduction

Traditional image captioning systems typically generate generic descriptions that often overlook the specific details users actually require. For instance, a standard model might describe a city scene as "a green bus," which, while accurate, fails to provide actionable information for a commuter needing the bus number or a visually impaired user needing to know if the bus is boarding.

The CapWAP framework uses a QA model to reward captions that anticipate user information needs.

The fundamental challenge is that the quality of a caption is subjective and context-dependent. Existing systems are often trained on datasets like COCO, which encourage bland, generalized descriptions. While Visual Question Answering (VQA) can provide specific details, it is inherently reactionary, requiring a user to ask a question first. CapWAP (Captioning with a Purpose) bridges this gap by training models to generate captions that anticipate likely questions and provide the necessary context proactively.

2. Methodology

The CapWAP framework treats captioning as an optimization problem where the objective is to maximize the "informativeness" of a caption relative to a specific population's needs.

2.1 Architecture and Training

The system utilizes a Faster R-CNN for object detection and a Transformer-based encoder-decoder for text generation. To move beyond generic descriptions, the authors employ the REINFORCE algorithm. The reward signal is derived from a pre-trained, extractive Question Answering (QA) model (based on BERT). If the generated caption contains the information necessary for the QA model to correctly answer a user's question, the captioning model receives a high reward.

The relationship between a purposeful caption (y) and its corresponding question-answer pair (q, a).

2.2 Synthetic Policy Pre-training

To address the "sparse rewards" problem common in reinforcement learning, the authors introduced a synthetic pre-training routine. They utilize a question generation model to create QA pairs from generic captions, training the captioner to support these specific answers. This "warm-starts" the model, guiding it toward high-reward regions of the solution space before the full RL process begins.

3. Datasets

The researchers repurposed four major VQA datasets into the CapWAP format, focusing on open-ended questions:

  • CapVQA (VQA v2.0): General crowd-sourced questions.
  • CapGQA: Complex questions focusing on spatial relationships.
  • CapVisual7W: Richer, more descriptive answers.
  • CapVizWiz: Real-world questions from visually impaired users, representing the most challenging "purposeful" scenario.

4. Results and Discussion

CapWAP models demonstrated significant improvements over generic baselines across all tested datasets.

4.1 Quantitative Performance

On the CapVizWiz dataset, the CapWAP model achieved a 27.8 F1 score for question answering, more than doubling the 12.6 F1 score of the standard generic baseline. This indicates a substantial increase in the practical utility of the generated captions.

4.2 Human Evaluation and Qualitative Shifts

Human raters consistently preferred CapWAP captions for their informativeness. For example, on CapVisual7W, purposeful captions were judged superior 38% of the time, compared to 22% for generic ones. Qualitatively, CapWAP captions are denser and more detailed. Instead of "a man playing tennis," the model might generate "a man in a white shirt and white shorts playing a game of tennis on a grass court," anticipating questions about attire and the environment.

5. Conclusion

CapWAP demonstrates that question-answering performance can serve as a robust proxy for caption utility. By shifting from generic description to information-need anticipation, models can be tailored to specific user populations. Future work will focus on addressing the "fluency-fidelity trade-off," where models might sacrifice grammar or truthfulness to maximize rewards, and refining the reward signal to reduce noise from the underlying QA models.

Summary updated

BibTeX
@misc{fisch2020capwap,
  author = {Adam Fisch and Kenton Lee and Ming-Wei Chang and Jonathan H. Clark and Regina Barzilay},
  title = {{CapWAP: Captioning with a Purpose}},
  year = {2020},
  eprint = {2011.04264},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.04264},
}
Figure