Question Guided Modular Routing Networks for Visual Question Answering

Yanze Wu, Qiang Sun, Jianqi Ma, Bin Li, Yanwei Fu, Yao Peng, Xiangyang XuearXiv 2019

TL;DR

This paper introduces Question Guided Modular Routing Networks (QGMRN) for Visual Question Answering (VQA). QGMRN addresses the challenges of fusing visual and textual information at multiple semantic levels and enabling visual reasoning for complex questions by dynamically routing computations through modular networks based on the question.

What Problem Does This Paper Address?

Visual Question Answering (VQA) aims to answer questions about images. Two key challenges in VQA are:

  1. Efficiently fusing visual and textual modalities: Traditional methods often fuse features at a high semantic level, potentially missing richer multi-level interactions.
  2. Enabling visual reasoning: VQA models need to go beyond simple feature matching to perform complex reasoning, which is difficult for standard CNNs. Existing modular network approaches for reasoning often require expert knowledge or extra supervision to design modules and parse questions.

This paper tackles these issues by proposing a novel approach that fuses modalities at multiple semantic levels and facilitates visual reasoning without requiring explicit expert knowledge or supervision.

Methods

The core of the proposed QGMRN is a Question Guided Modular Routing Network. It comprises three main components:

  • Visual Network: A generic modular network where each layer consists of multiple modules.
  • Textual Network: A GRU-based network that processes the question to generate question features.
  • Routing Network: This network takes the question features and dynamically selects a subset of modules within each layer of the visual network to process the input. This selection is done in a discrete and stochastic manner using the Gumbel-Softmax trick, allowing for exploration of various reasoning paths.

The key innovation is the dynamic routing mechanism. Instead of processing all modules in a layer, the routing network, guided by the question, determines which modules are relevant for answering that specific question. This allows for:

  • Multi-level fusion: Modalities are fused at multiple semantic levels as the routing network influences processing at each modular layer.
  • Visual Reasoning: The routing path implicitly represents a compositional reasoning process, enabling the model to "reason" by executing specific sequences of modules.

The authors also introduce two specific instantiations:

  • FRN (Filter Routing Network): Routes filters within convolutional layers, pluggable into standard CNNs like ResNet.
  • BRN (Branch Routing Network): Routes branches within multi-branch networks, tested with ResNeXt.

An attention mechanism is also integrated to further enhance feature fusion.

Datasets

The proposed models were evaluated on:

  • CLEVR: A dataset designed to test VQA reasoning abilities, featuring complex questions requiring multi-step reasoning.
  • CLEVR-Humans: A more challenging version of CLEVR with human-posed questions, testing generalization and robustness.

The models were trained from raw pixels on these datasets.

Key Insights and Ideas

  • Dynamic Routing for Reasoning: The core idea that a question can dynamically guide the execution of modular networks for visual reasoning is powerful. It allows for flexible and efficient computation tailored to the question's complexity.
  • Multi-level Modality Fusion: By routing through modular layers, the model can fuse visual and textual information at various semantic depths, leading to richer representations than single-level fusion.
  • Gumbel-Softmax for Differentiable Routing: The use of Gumbel-Softmax is crucial for making the discrete module selection process differentiable, enabling end-to-end training.
  • No Expert Knowledge Needed: A significant advantage is that the model learns to reason and route without requiring pre-defined sub-questions or explicit supervision for module selection, unlike many prior modular network approaches.
  • Routing Path as Reasoning Trace: The learned routing path can be interpreted as a trace of the model's reasoning process, offering a degree of interpretability.

Key Results

  • State-of-the-Art Performance: The QGMRN models (BRN and FRN) achieved state-of-the-art results on both CLEVR and CLEVR-Humans datasets.
  • Outperforming Baselines: QGMRN significantly outperformed classical VQA methods and competitive results against other state-of-the-art approaches. For instance, BRN models outperformed QGHC by a large margin, and achieved comparable or better results than implicit reasoning models like FiLM and MAC.
  • Attention Boost: The integrated attention mechanism further improved overall accuracy by about 0.7%.
  • Module Granularity Matters: Increasing the number of modules per layer generally improved performance, suggesting that more diverse routing options lead to better representation power.
  • Group Normalization Advantage: Replacing batch normalization with group normalization in the ResNeXt backbone for BRN led to significant improvements, especially when the module execution ratio was low.

Limitations and Future Work

  • Performance on "Compare Numbers": The models did not perform as well on the "Compare Numbers" question type, with the authors noting that feature map-based training might be better for this specific type.
  • Generalization of Group Normalization: The authors found that group normalization improved performance in their BRN model, a discovery they suggest warrants further investigation.
  • Future Applications: The authors believe that routing models are a promising direction for multimodal fusion and embedding, especially in scenarios where static models struggle. They suggest that further exploration of routing models in deep learning frameworks could lead to more useful applications.

Summary updated

BibTeX
@misc{wu2019question,
  author = {Yanze Wu and Qiang Sun and Jianqi Ma and Bin Li and Yanwei Fu and Yao Peng and Xiangyang Xue},
  title = {{Question Guided Modular Routing Networks for Visual Question Answering}},
  year = {2019},
  eprint = {1904.08324},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.08324},
}
Figure