Skip to main content
QUICK REVIEW

[Paper Review] Stacked Attention Networks for Image Question Answering

Zichao Yang, Xiaodong He|arXiv (Cornell University)|Nov 7, 2015
Multimodal Machine Learning ApplicationsComputer Science193 citations
TL;DR

This paper proposes Stacked Attention Networks (SANs) for image question answering, using a multi-layer attention mechanism to progressively focus on relevant image regions based on question semantics. The model outperforms prior state-of-the-art methods across four benchmark datasets by leveraging hierarchical reasoning through stacked attention layers.

ABSTRACT

This paper presents stacked attention networks (SANs) that learn to answer natural language questions from images. SANs use semantic representation of a question as query to search for the regions in an image that are related to the answer. We argue that image question answering (QA) often requires multiple steps of reasoning. Thus, we develop a multiple-layer SAN in which we query an image multiple times to infer the answer progressively. Experiments conducted on four image QA data sets demonstrate that the proposed SANs significantly outperform previous state-of-the-art approaches. The visualization of the attention layers illustrates the progress that the SAN locates the relevant visual clues that lead to the answer of the question layer-by-layer.

Motivation & Objective

  • Address the need for multi-step reasoning in image question answering, where answers often depend on fine-grained visual regions.
  • Overcome limitations of single-attention mechanisms that fail to localize precise answer-relevant regions in complex images.
  • Develop a deep attention architecture that refines visual focus across multiple layers using question-conditional queries.
  • Demonstrate significant performance gains on diverse image QA benchmarks through progressive attention refinement.
  • Visualize and analyze how attention layers evolve to highlight relevant visual clues step-by-step.

Proposed method

  • Use a convolutional neural network (CNN) to extract region-level visual features from an image, producing a 14×14 feature map.
  • Encode the input question using a CNN or LSTM to generate a semantic question vector.
  • Apply a multi-layer attention mechanism where each layer uses the question vector to query image features and refine the query based on attended regions.
  • In the first layer, the question vector queries the image to produce an initial attention distribution over image regions.
  • In subsequent layers, the refined query (from the combination of the original question and attended features) is used to further focus on more relevant regions.
  • The final answer is predicted by combining the highest-level attended image features with the final query vector using a classifier.

Experimental results

Research questions

  • RQ1Can a multi-layer attention mechanism improve image question answering by enabling progressive reasoning over visual features?
  • RQ2How does stacking attention layers affect the localization of answer-relevant image regions compared to single-attention models?
  • RQ3To what extent does the hierarchical attention mechanism improve performance across diverse image QA benchmarks?
  • RQ4What types of visual and linguistic cues do the attention layers learn to prioritize at each stage of reasoning?
  • RQ5How do attention distributions evolve across layers, and do they align with human interpretation of relevant image regions?

Key findings

  • The two-layer Stacked Attention Network (SAN) outperforms the one-layer version by an average of 2.2% on the COCO-QA dataset, with improvements of 1.3% in Location and 1.0% in Objects.
  • On the VQA dataset, the two-layer SAN improves performance by 1.4% for the 'Other' question type, 0.2% for 'Number', and shows no improvement for 'Yes/No' questions.
  • The SAN achieves state-of-the-art results on four image QA benchmarks, significantly outperforming previous SOTA methods including LSTM-based models and earlier attention mechanisms.
  • Visualization shows that the first attention layer activates on multiple objects and concepts mentioned in the question, while the second layer sharpens focus on the region directly related to the answer.
  • Error analysis reveals that 42% of mistakes stem from correct visual focus but incorrect answer prediction, and 31% involve ambiguous labels where model predictions are visually plausible.
  • The model shows limited improvement on 'Yes/No' questions, suggesting that such answers are highly question-dependent and less sensitive to visual feature refinement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.