Traditional Visual Question Answering (VQA) models often treat image features as flat 2D grids, ignoring the rich semantic information hidden across different feature channels. This paper introduces Cubic Visual Attention (CVA), a model that applies attention in 3D by simultaneously focusing on specific object regions ("where") and specific feature channels ("what"). By moving from pixel-level grids to object-level proposals, CVA achieves state-of-the-art results on major VQA benchmarks.
What Problem Does This Paper Address?
Visual Question Answering requires a model to understand an image well enough to answer a natural language question about it. Most existing models use "planar" spatial attention: they generate a 2D weight map to decide which pixels are important, but they apply the same weights to every single feature channel (the "depth" of the feature map).
The authors identify two major flaws in this approach:
- Channel Neglect: In a Convolutional Neural Network (CNN), different channels represent different semantic concepts (e.g., one channel might detect "furry textures" while another detects "round shapes"). If a question asks about a "cat," the model should prioritize "furry" channels, not treat them the same as "metallic" ones.
- Pixel vs. Object: Standard attention works on a grid of pixels. However, humans think in terms of objects. Pixel-level attention can lead to "discontinuous regions" where the model looks at fragments of an object rather than the whole thing.
Methods
The CVA framework consists of four main stages:
- Object-Level Feature Extraction: Instead of a raw grid, the model uses Faster R-CNN to identify the top-36 most likely object regions in an image. Each region is represented by a 2,048-dimensional vector.
- Question Encoding: The question is processed using a Gated Recurrent Unit (GRU) to create a semantic vector representation.
- Channel-wise Attention (The "What"): The model uses the question to calculate weights for the 2,048 feature channels. This acts as a semantic filter, highlighting features relevant to the question's context across all candidate objects.
- Object Region-based Spatial Attention (The "Where"): After filtering the channels, the model applies spatial attention to the object proposals. It calculates which specific bounding boxes are most relevant to the question.
Finally, these "cubic" attended features are combined with the question vector to predict the final answer.
Key Insights and Results
CNN features are naturally 3D volumes (Height × Width × Channels). Effective attention must be 3D as well. By weighting channels, the model performs a type of "semantic selection" before it even decides where to look. The authors found that applying Channel-wise attention first, followed by Spatial attention, yielded better results than the reverse. This suggests that knowing what features to look for helps the model better identify where the relevant objects are.
CVA consistently outperformed previous state-of-the-art (SOTA) models across all datasets:
- VQA Dataset: Achieved an accuracy of 65.92% on the test-dev set, significantly higher than popular models of the time like SAN (58.7%) and MCB (60.8%).
- COCO-QA: Reached 67.51% accuracy, outperforming the HieCoAtt model (65.40%).
- Visual7W: Achieved 63.8% average accuracy, showing particular strength in "Who" (70.0%) and "What" (64.8%) type questions.
An ablation study proved that combining both types of attention is crucial. Using only object-region attention yielded 65.37% on VQA, but adding channel-wise attention pushed it to the final 65.92%.
Limitations and Future Work
Like many VQA models, CVA struggled with "Number" (counting) questions due to unbalanced training data. Additionally, while using object proposals (Faster R-CNN) improves accuracy, it adds a significant pre-processing step compared to simple grid-based models. The authors suggest that this cubic attention mechanism could be adapted for other multimodal tasks, such as video captioning or visual dialog, where the "what" and "where" are equally dynamic.
Summary updated