Abstract
A key solution to visual question answering (VQA) exists in how to fuse visual and language features extracted from an input image and question. We show that an attention mechanism that enables dense, bi-directional interactions between the two modalities contributes to boost accuracy of prediction of answers. Specifically, we present a simple architecture that is fully symmetric between visual and language representations, in which each question word attends on image regions and each image region attends on question words. It can be stacked to form a hierarchy for multi-step interactions between an image-question pair. We show through experiments that the proposed architecture achieves a new state-of-the-art on VQA and VQA 2.0 despite its small size. We also present qualitative evaluation, demonstrating how the proposed attention mechanism can generate reasonable attention maps on images and questions, which leads to the correct answer prediction.
Introduction
Visual Question Answering (VQA) requires models to effectively combine visual features from an image with linguistic features from a question to predict an accurate answer. Historically, this has been approached through either specialized attention mechanisms (e.g., question-guided image attention) or complex mathematical fusion techniques like Multimodal Compact Bilinear pooling. However, these methods often treat attention and fusion as separate processes or rely on coarse interactions. This paper introduces the Dense Co-Attention Network (DCN), which argues that a sufficiently granular, bi-directional attention mechanism—modeling every possible interaction between individual words and specific image regions—can inherently serve as a superior feature fusion method.
Methods
The core contribution is the Dense Co-Attention Network (DCN), which facilitates dense, symmetric interactions between visual and language representations. The model is designed to be stacked, allowing for multi-step reasoning through a hierarchy of co-attention layers.
Dense Co-Attention Mechanism
Unlike standard attention mechanisms that might only compute attention from a global question vector to image regions, the DCN computes an affinity matrix between every question word and every image region. This generates two sets of symmetric attention maps: one for image regions conditioned on each word, and one for words conditioned on each image region.
Key Architectural Components
- Multi-Level Image Feature Extraction: Image features are extracted from four different levels of a pre-trained ResNet-152. This provides a rich hierarchy of visual concepts, from low-level presence to high-level semantics.
- Nowhere-to-attend (Memory): The model appends $K$ learnable vectors to both word and region representations. This acts as an external memory bank or a "sink" for when a specific word or region is irrelevant to the current reasoning step, preventing noise from affecting the fusion.
- Parallel Attention: Similar to multi-head attention in Transformers, the model projects features into multiple lower-dimensional spaces to compute attention in parallel, capturing diverse relational patterns.
Results
The DCN was evaluated on the VQA 1.0 and VQA 2.0 datasets. VQA 2.0 is particularly challenging as it is designed to minimize language biases, requiring models to truly understand the visual content.
- State-of-the-Art Accuracy: The DCN achieved new SOTA results on VQA 1.0 (67.02% accuracy) and VQA 2.0 (67.04% accuracy), outperforming significantly larger models.
- Grounding and Counting: The model showed a notable ~3.4% accuracy jump in the "Number" question category on VQA 1.0, indicating superior grounding of visual objects.
- Parameter Efficiency: Despite its dense interactions, the DCN is highly efficient, requiring only ~31M parameters—roughly half the size of the popular MCB fusion model (63M params).
Conclusion
The Dense Co-Attention Network demonstrates that dense, symmetric interactions between modalities provide a powerful and efficient framework for VQA. While the model still faces challenges with fine-grained visual distinctions (e.g., confusing similar objects like forks and spoons) and dataset biases, its ability to fuse features through bi-directional attention sets a new benchmark for multimodal reasoning. Future work may involve integrating more advanced visual extractors, such as object detectors, to further improve fine-grained recognition.
Summary updated