Re-Attention for Visual Question Answering

Wenya Guo, Ying Zhang, Xiaoping Wu, Jufeng Yang, Xiangrui Cai, Xiaojie Yuan

Introduction

Visual Question Answering (VQA) represents a significant challenge in multimodal AI, requiring models to synthesize information from both images and natural language questions to provide accurate answers. A critical component of successful VQA models is the attention mechanism, which allows the system to "look" at relevant parts of an image based on the query. For instance, when asked "How many tires?", a model should prioritize the wheels of a vehicle rather than the background or the sky.

However, current VQA research faces two primary hurdles. First, most models treat the answer merely as a classification label, ignoring the rich semantic information it contains that could better describe visual content. Second, many models employ coarse attention, using the entire question to scan the image and thereby missing fine-grained relationships between specific words (e.g., "handle") and specific objects.

Conceptual overview of Re-Attention: The answer provides a more precise guide for visual focus during training compared to the question alone.

The Re-Attention Framework

To address these gaps, this paper introduces the Re-Attention framework. This approach leverages answer information during the training phase to supervise and refine the model's visual focus. The architecture is composed of three distinct layers:

  • Feature Representation Layer: The model extracts visual features using a pre-trained Faster R-CNN and processes question text via an LSTM with GloVe embeddings.
  • Cross-Attention Module: Unlike global attention mechanisms, this module computes a similarity matrix between every individual word in the question and every detected object in the image. This enables the model to map specific linguistic concepts to their visual counterparts.
  • Re-Attention and Consistency Loss: During training, the fused representation used for answer prediction is fed back into a "re-attention" branch. An Attention Consistency Loss is then applied to minimize the discrepancy between the initial question-guided attention and this answer-informed re-attention.
The Re-Attention architecture, illustrating the flow from feature representation through the cross-attention layer to the final consistency loss.

Answer-Guided Supervision

The core innovation lies in using the answer as a "teacher." By forcing the model to align its question-based attention with the more accurate re-attention map generated from the answer, the model learns a more robust visual search strategy. Crucially, the re-attention branch is only active during training. At inference time, the model retains the improved attention patterns it learned without requiring the answer as input, ensuring no "cheating" occurs during evaluation.

Results and Performance

The Re-Attention model was evaluated on the VQA v2 benchmark, the field's standard for reducing language bias. The model achieved a state-of-the-art accuracy of 70.72% on the test-standard set, outperforming contemporary models such as VCTREE-HL and CoR-3.

Notably, the model showed substantial gains in the "Number" category, jumping to 52.62% accuracy compared to the previous average of 47-48%. This suggests that the fine-grained cross-attention and answer-guided supervision are particularly effective for tasks requiring precise object localization and counting. Ablation studies further confirmed that the synergy between cross-attention and the consistency loss was vital for these performance leaps.

Limitations and Future Directions

While Re-Attention significantly advances visual focus, it remains sensitive to keyword selection; focusing on a non-critical word in a complex sentence can still lead the attention astray. Furthermore, the model lacks "common sense" reasoning—the ability to understand functional or social contexts not explicitly present in the data (e.g., why a specific sign signifies "caution"). Future research will likely focus on integrating external knowledge bases to bridge this gap between visual perception and logical reasoning.

Summary updated

BibTeX
@inproceedings{guo2020re,
  author = {Wenya Guo and Ying Zhang and Xiaoping Wu and Jufeng Yang and Xiangrui Cai and Xiaojie Yuan},
  title = {{Re-Attention for Visual Question Answering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i01.5338},
}
Figure