Generating Question Relevant Captions to Aid Visual Question Answering

Jialin Wu, Zeyuan Hu, Raymond J. Mooney

Introduction

Visual Question Answering (VQA) requires a model to synthesize information from both an image and a natural language question. While current state-of-the-art models often rely on "bottom-up" visual features—such as detected objects and their attributes—raw visual data frequently lacks the structured, high-level semantic information inherent in language.

A surfer on a blue surfboard, illustrating the need for question-specific context in VQA.

A common approach to bridge this gap is using image captions. However, standard captions are typically "question-agnostic." For instance, a generic caption might describe "a man riding a wave," but if the question asks, "What color is the surfboard?", the caption may fail to provide the necessary detail. This paper addresses the challenge of generating "question-relevant" captions that dynamically adapt to the query, providing targeted textual clues to improve answer accuracy.

Methodology

The proposed architecture integrates a VQA module with a question-relevant captioning module. The system is trained using a two-phase strategy designed to ensure the generated text is genuinely helpful for the specific task at hand.

The proposed model architecture featuring joint caption generation and answer prediction.

Gradient-Based Caption Selection

To supervise the relevance of captions, the authors employed an online gradient-based method. A human-written caption is considered "helpful" if the gradient of its generation loss aligns positively with the gradient of the VQA answer prediction loss. This ensures the model learns to prioritize text that directly facilitates correct answering.

Caption-Adjusted Attention (CAA)

The model utilizes a two-layer GRU architecture (Word GRU and Caption GRU) to process and embed the generated captions. A key innovation is Caption-Adjusted Attention (CAA), where the generated caption features are used to refine "top-down" visual attention weights. By incorporating textual information—such as a mention of a "blue surfboard"—the model can more effectively shift its visual focus to the relevant regions of the image.

Key Insights

  • Text as Semantic Knowledge: Sentences offer fewer structural constraints than bounding boxes, allowing for the encoding of complex relationships (e.g., "wearing a wetsuit while surfing") that pixels alone might obscure.
  • Dynamic Relevance: The same image can produce different captions depending on the question, allowing for a flexible and context-aware representation of visual data.
  • Performance in Complex Categories: The method showed significant improvements in "Counting" and "Other" reasoning tasks, suggesting that textual descriptions are particularly effective for high-level relational understanding.

Results and Evaluation

The model was evaluated on the VQA v2.0 benchmark, achieving state-of-the-art performance:

  • Accuracy: A single model reached 68.4% accuracy on the Test-standard set, with a 10-model ensemble reaching 69.7%.
  • Baseline Comparison: The approach significantly outperformed the "Up-Down" baseline (63.2% validation) by reaching 65.8% when question-relevant captions were included.
  • Relevance Impact: Question-relevant captions outperformed generic, question-agnostic captions by 1.2%, validating the core hypothesis of the paper.
  • Visual Grounding: Using Earth Mover’s Distance (EMD), the authors demonstrated that CAA aligns model attention more closely with human visual focus.

Conclusion

This research demonstrates that generating targeted, question-aware textual descriptions is a powerful supplement to raw visual features in VQA. While a performance gap remains between model-generated and human-authored captions, the success of the gradient-based selection and Caption-Adjusted Attention provides a robust framework for future multimodal reasoning tasks.

Summary updated

BibTeX
@inproceedings{wu2019generating,
  author = {Jialin Wu and Zeyuan Hu and Raymond J. Mooney},
  title = {{Generating Question Relevant Captions to Aid Visual Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=YXrAsmjYxFG},
}
Figure