Abstract
We propose a novel attention based deep learning architecture for visual question answering task (VQA). Given an image and an image related natural language question, VQA generates the natural language answer for the question. Generating the correct answers requires the model's attention to focus on the regions corresponding to the question, because different questions inquire about the attributes of different image regions. We introduce an attention based configurable convolutional neural network (ABC-CNN) to learn such question-guided attention. ABC-CNN determines an attention map for an image-question pair by convolving the image feature map with configurable convolutional kernels derived from the question's semantics. We evaluate the ABC-CNN architecture on three benchmark VQA datasets: Toronto COCO-QA, DAQUAR, and VQA dataset. ABC-CNN model achieves significant improvements over state-of-the-art methods on these datasets. The question-guided attention generated by ABC-CNN is also shown to reflect the regions that are highly relevant to the questions.
Introduction: The Need for Question-Guided Attention
Visual Question Answering (VQA) requires a machine to understand both a natural language query and the visual content of an image to produce a correct answer. A major challenge in early VQA models was their reliance on global image features. When asked a specific question like, "What color is the umbrella?", a model looking at the entire image might be distracted by irrelevant background elements, such as green trees or a yellow coat.
Humans naturally employ "question-guided attention"—we identify the relevant object (the umbrella) first, then determine its attributes. The authors of this paper aimed to replicate this behavior. They identified that standard integration of vision and language features often loses the spatial context needed to focus on specific objects or regions relevant to the question's intent.
Methodology: The ABC-CNN Framework
The core innovation is the Attention Based Configurable Convolutional Neural Network (ABC-CNN). This architecture bridges the semantic gap between text and pixels through a novel "configurable convolution" mechanism. It consists of four main components:
- Image Feature Extraction: The model uses a deep CNN (such as VGG-19) to extract a spatial feature map, preserving the "where" information within the image.
- Question Understanding: A Long Short-Term Memory (LSTM) network processes the question to generate a dense semantic embedding vector.
- Attention Extraction: This is the defining feature of ABC-CNN. The model projects the question embedding into the visual feature space to create a Configurable Convolutional Kernel (CCK). This kernel is then convolved with the image feature map to produce a Question-guided Attention Map (QAM). Essentially, the question "configures" a search filter to find relevant visual patterns.
- Answer Generation: The original image features are weighted by the attention map and combined with the question embedding. This fused representation is passed to a multi-class classifier to predict the final answer.
Evaluation and Results
The authors evaluated ABC-CNN on three major benchmarks, where it consistently outperformed existing state-of-the-art methods:
- Toronto COCO-QA: ABC-CNN achieved 58.10% accuracy, surpassing the previous best ensemble model (57.84%). It showed particularly strong gains in "Object" and "Location" categories.
- DAQUAR (Dataset for Question Answering on Real-world images): On the reduced version focusing on 37 object classes, the model reached 42.76% accuracy, a significant jump over the previous single-model best of ~35.8%.
- VQA Dataset: On the "Real Image (Open-Ended)" task for the 1000 most frequent answers, it achieved 48.38% accuracy, nearly doubling the performance of simpler baseline models like Q+I (26.78%).
Beyond accuracy, the system is highly efficient, capable of generating an answer in under 10ms on a single GPU.
Discussion and Key Insights
The success of ABC-CNN stems from several key design choices:
- Dynamic Filtering: Instead of a static attention mechanism, the "configurable convolution" allows the model to generate a custom filter for every unique question.
- End-to-End Learning: The model learns where to look without manual "attention labels," discovering relevant regions simply by being trained on question-answer pairs.
- Interpretability: The generated attention maps (QAMs) provide a window into the model's "thought process," allowing visual verification of its focus.
Limitations and Future Work
While ABC-CNN is a significant step forward, some limitations remain. The current implementation is optimized for single-word answers treated as a classification problem. While it can be extended to full sentences using an RNN decoder, this was not the primary focus of the initial results. Additionally, the resolution of the attention maps might be too coarse for very small objects, and complex multi-step logical reasoning remains an area for further exploration. Future work could involve finer-grained attention and more sophisticated language models to handle complex, multi-sentence queries.
Summary updated