Skip to main content
QUICK REVIEW

[Paper Review] Deep Modular Co-Attention Networks for Visual Question Answering

Yu Zhou, Jun Yu|arXiv (Cornell University)|Jun 25, 2019
Multimodal Machine Learning ApplicationsComputer Science33 references99 citations
TL;DR

MCAN introduces deep Modular Co-Attention layers that fuse self-attention and guided-attention for both questions and images, yielding state-of-the-art VQA-v2 results with a deep encoder-decoder or stacking design.

ABSTRACT

Visual Question Answering (VQA) requires a fine-grained and simultaneous understanding of both the visual content of images and the textual content of questions. Therefore, designing an effective `co-attention' model to associate key words in questions with key objects in images is central to VQA performance. So far, most successful attempts at co-attention learning have been achieved by using shallow models, and deep co-attention models show little improvement over their shallow counterparts. In this paper, we propose a deep Modular Co-Attention Network (MCAN) that consists of Modular Co-Attention (MCA) layers cascaded in depth. Each MCA layer models the self-attention of questions and images, as well as the guided-attention of images jointly using a modular composition of two basic attention units. We quantitatively and qualitatively evaluate MCAN on the benchmark VQA-v2 dataset and conduct extensive ablation studies to explore the reasons behind MCAN's effectiveness. Experimental results demonstrate that MCAN significantly outperforms the previous state-of-the-art. Our best single model delivers 70.63$\%$ overall accuracy on the test-dev set. Code is available at https://github.com/MILVLG/mcan-vqa.

Motivation & Objective

  • Aim to improve fine-grained multimodal understanding for VQA by learning dense interactions between image regions and question words.
  • Design a deep architecture that stacks modular co-attention layers to progressively refine cross-modal representations.
  • Investigate the benefits of self-attention in both modalities and the role of deep co-attention in visual reasoning and counting tasks.

Proposed method

  • Introduce Modular Co-Attention (MCA) layer that combines Self-Attention (SA) and Guided-Attention (GA) units.
  • Model two basic attention units: SA for intra-modal (word-to-word or region-to-region) interactions and GA for inter-modal (question word to image region) interactions.
  • Cascade multiple MCA layers to form a deep MCAN with stacking and encoder-decoder variants.
  • Represent images with bottom-up region features from Faster R-CNN, and questions with word embeddings (GloVe) followed by an LSTM to obtain a question feature matrix.
  • Use multi-head scaled dot-product attention with residual connections and layer normalization within SA and GA units.
  • Perform deep co-attention learning with L MCA layers (L in {1,2,4,6,8}) via stacking or encoder-decoder strategies, feeding outputs to a two-layer attentional reduction and a linear multimodal fusion to predict answers via a BCE 3,129-way classifier.

Experimental results

Research questions

  • RQ1Does deep cascading of MCA layers improve VQA performance over shallow co-attention models?
  • RQ2What is the impact of self-attention within image and question modalities on VQA accuracy, including object counting?
  • RQ3How do stacking and encoder-decoder deep co-attention models compare in performance and optimization stability?
  • RQ4How effective is the proposed MCAN fusion and classifier design on the VQA-v2 benchmark?
  • RQ5To what extent do different question representations (GloVe, random, LSTM) affect results?

Key findings

  • MCAN with deep MCA layers significantly outperforms prior co-attention models on VQA-v2.
  • Self-attention on both questions and image regions improves performance, with SA(Y)-SGA(X,Y) yielding strong results.
  • Encoder-decoder deep co-attention generally outperforms stacking as depth increases, due to better use of layered representations.
  • The best single model (MCAN ed-6) achieves 70.63% overall accuracy on the VQA-v2 test-dev split and 70.90% on test-std, with competitive counting abilities.
  • MCAN is parameter-efficient (e.g., MCAN ed-2 around 27M parameters) compared to BAN and MFH, while delivering higher accuracy.
  • Visualization shows learned attentions align with key words and relevant image regions, and image self-attention improves counting by focusing on object regions.

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.