Semantic-Aware Modular Capsule Routing for Visual Question Answering

Yudong Han, Jianhua Yin, Jianlong Wu, Yinwei Wei, Liqiang Nie · DOI

TL;DR

The SUPER framework introduces a dynamic, data-driven approach to Visual Question Answering (VQA) by using a "capsule routing" mechanism that allows the model to assemble its own reasoning paths. Unlike previous modular networks that rely on rigid external language parsers, SUPER learns to activate specialized modules—ranging from relational reasoning to external knowledge integration—based on the specific image-question pair at hand.

What Problem Does This Paper Address?

Visual Question Answering (VQA) is inherently compositional; answering "What color is the car next to the red building?" requires detecting objects, identifying attributes, and understanding spatial relationships.

Existing Neural Module Networks (NMNs) try to solve this by assembling small, functional sub-networks. However, they usually rely on "off-the-shelf" language parsers to decide the network layout. This creates two major issues:

  1. Brittleness: If the external parser fails or the question is linguistically complex, the resulting network layout is wrong.
  2. Limited Adaptability: These models often struggle with complex, real-world scenes because their modules are too simple or their routing logic is too rigid to handle the nuance of diverse visual data.

Methods

The authors propose SUPER (Semantic-aware modUlar caPsulE Routing), which treats image features as "capsules" and routes them through an iterative reasoning process.

The Five Specialized Modules

Instead of a single monolithic transformer, SUPER uses five parallel modules in each layer, each designed for a specific type of reasoning:

  1. Focal Context-aware Enhanced Module: Focuses on relational reasoning between different parts of the image.
  2. Identity Retainer Module: Acts as a "skip connection," allowing simple information to pass through without over-processing.
  3. Global Reduction Module: Modulates visual features based on the high-level semantic intent of the question.
  4. Local Semantic Modulated Module: Refines features using fine-grained, word-level question context.
  5. Adaptive Knowledge-augmented Module: Specifically designed to pull in external facts (from sources like ConceptNet) for questions that require common sense.

Dynamic Routing & Gating

The "secret sauce" is the Dynamic Router, which looks at the input and decides which modules to activate. This is followed by a Gating Agreement mechanism (inspired by Capsule Networks), where the model determines which modulated capsules are most relevant to the final answer through iterative "voting." Finally, a Memory Reactivation step ensures that important clues are preserved across reasoning steps while filtering out noise.

Datasets

The model was evaluated across five diverse benchmarks to test both general reasoning and knowledge-based VQA:

  • Conventional VQA: VQA-v2 (the gold standard), VQA-CP v2 (tests for language bias), and Visual7W.
  • Knowledge-Required VQA: OK-VQA (requires outside knowledge) and FVQA (fact-based reasoning).

Key Insights and Ideas

  • Data-Driven Layouts: By moving away from external linguistic parsers, the model becomes more robust. It learns that a "Yes/No" question might only need the Identity Retainer, while a "Why" question might heavily activate the Knowledge-augmented module.
  • Capsule-Inspired Routing: The use of "routing-by-agreement" allows the model to perform "delicate capsule modulation." This means the model doesn't just pass data through; it iteratively refines which visual regions are important based on how well they "agree" with the question's context.
  • Efficiency vs. Power: The paper demonstrates that a modular approach can be more parameter-efficient. SUPER achieves competitive results with significantly fewer parameters than massive, monolithic attention-based models like MCAN.

Key Results

  • State-of-the-Art on OK-VQA: SUPER achieved 30.46% accuracy, outperforming previous specialized models like Mucko (29.20%).
  • Robustness to Bias: On VQA-CP v2, a dataset designed to trick models that rely on "guessing" based on language trends, SUPER outperformed the GVQA baseline by a massive 10.48%.
  • Parameter Efficiency: SUPER (approx. 109M parameters) is roughly one-third the size of the popular MCAN model (317M parameters) while delivering superior performance on several benchmarks.
  • Qualitative Success: T-SNE visualizations of the routing paths showed that the model naturally clusters similar types of questions (e.g., questions about trees vs. questions about vegetables) into distinct reasoning routes.

Limitations and Future Work

While SUPER reduces the need for manual layout design, it still relies on a fixed set of five modules. The authors suggest that future work could involve Neural Architecture Search (NAS) to automatically discover even more specialized modules. Additionally, they aim to scale the framework to even larger-scale pretrained tasks and explore its application in other multimodal domains beyond VQA.

Summary updated

BibTeX
@article{han2023semantic,
  author = {Yudong Han and Jianhua Yin and Jianlong Wu and Yinwei Wei and Liqiang Nie},
  title = {{Semantic-Aware Modular Capsule Routing for Visual Question Answering}},
  journal = {IEEE Trans. Image Process.},
  year = {2023},
  doi = {10.1109/tip.2023.3318949},
}
Figure