Joint Image Captioning and Question Answering

Jialin Wu, Zeyuan Hu, Raymond J. MooneyarXiv 2018

Abstract

Visual Question Answering (VQA) and Image Captioning (IC) are typically treated as independent tasks. This paper proposes a joint framework where these tasks act as complementary partners. By leveraging questions to guide specific caption generation and using these captions as "common knowledge" features for VQA, the system achieves state-of-the-art results on the VQA v2 dataset.

Introduction

Traditionally, VQA and IC operate in silos, each facing distinct bottlenecks. VQA systems often struggle with complex semantic relationships between objects, lacking the "common knowledge" humans use to describe scenes. Conversely, IC models frequently produce generic, safe descriptions that lack the detail necessary for complex reasoning.

This research posits that VQA and IC are two sides of the same coin. A high-quality caption should provide the context needed to answer a query, while a specific question can serve as a heuristic to generate more detailed, relevant descriptive text.

Methodology

The proposed system builds upon the Bottom-Up and Top-Down (BUTD) attention mechanism, integrating several novel components to unify the two tasks.

Overview of the joint framework for Image Captioning and Question Answering.

Caption Embedding and Joint Representation

A two-stage GRU approach is employed for caption embedding. A "Word GRU" encodes individual words, while a "Caption GRU" integrates question-attended image features. This allows the model to identify which words in a caption are most relevant to the current question. The final answer prediction is based on a "question-caption-attended" image feature set, effectively filtering visual information through both linguistic lenses.

Online Relevant Caption Selection

To ensure synergy, the model utilizes an optimization strategy during training that selects annotated captions sharing a "descent direction" with the VQA task. By aligning the gradients of the captioning loss and VQA loss, the model ensures that the generated text specifically aids the reasoning process.

Results and Discussion

The model was evaluated on VQA v2.0 and MSCOCO 2014. It achieved 65.8% accuracy on the VQA v2 validation set using generated captions, rising to 69.1% with ground-truth captions. On the test-standard split, an ensemble of 10 models reached 69.7%, outperforming contemporary models like Beyond Bilinear and VQA-E.

Qualitative results showing how the model attends to specific words in captions to answer a question.

A key insight is the role of captions as "common knowledge." Experiments showed that answering questions using only ground-truth captions (without images) could outperform some image-based VQA systems, highlighting the vital semantic clues captured in text. Furthermore, the proposed model nearly doubled the "Informativeness" score ($Info.$) compared to the BUTD baseline (from 2.22% to 4.11%), indicating that the joint training successfully produces more useful descriptions for downstream reasoning.

Conclusion

This joint framework demonstrates that VQA and IC can significantly benefit from mutual integration. While a performance gap remains between model-generated and human-annotated captions, the synergy achieved through gradient alignment and question-guided generation marks a significant step toward more human-like multimodal reasoning. Future work will focus on increasing the diversity and specificity of the generation sub-system.

Summary updated

BibTeX
@misc{wu2018joint,
  author = {Jialin Wu and Zeyuan Hu and Raymond J. Mooney},
  title = {{Joint Image Captioning and Question Answering}},
  year = {2018},
  eprint = {1805.08389},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.08389},
}
Figure