Bilateral Cross-Modality Graph Matching Attention for Feature Fusion in Visual Question Answering

Jianjian Cao, Xiameng Qin, Sanyuan Zhao, Jianbing Shen

TL;DR

This paper introduces a novel Graph Matching Attention (GMA) network for Visual Question Answering (VQA). GMA constructs explicit graph representations for both images and questions, enabling a more nuanced understanding of their relationships and improving cross-modal feature fusion for more accurate answer prediction.

What Problem Does This Paper Address?

Visual Question Answering (VQA) is a challenging task that requires understanding both visual and textual information and reasoning about their relationships to answer a question about an image. While deep learning has advanced image representation, questions are often simply embedded, lacking rich semantic meaning. Furthermore, there's a significant gap between visual and textual features, making it difficult to align and utilize cross-modal information effectively. Existing methods often rely on "black-box" attention mechanisms or struggle to capture the inherent structural information within images and questions, leading to sub-optimal feature representations and limited relational reasoning capabilities.

Methods

The core of this work is the Graph Matching Attention (GMA) network. GMA tackles the VQA problem by:

  • Graph Construction:
    • Visual Graph: Creates a graph where nodes represent detected objects in an image, and edges represent spatial relationships (specifically, IoU thresholds between object bounding boxes). This captures explicit visual relationships.
  • Question Graph: Constructs a graph where nodes represent words in a question, and edges represent syntactic relationships derived from a dependency parsing tree. This captures the question's structure and semantic relevance.
  • Dual-Stage Graph Encoder: This module processes each graph independently to infer both explicit (based on graph structure) and implicit (based on node feature similarity) intra-modality relationships. It uses cascaded graph convolutional layers to enrich node representations.
  • Bilateral Matching Attention: This novel mechanism aligns the visual and textual graphs. It first performs a graph matching operation to learn similarity scores between nodes of different modalities. Then, a bilateral attention mechanism uses these scores to fuse cross-modal features, allowing each modality to update its representation based on the other. This is a key departure from previous methods that often fused features in a monolithic way.
  • Stacked GMA Modules: Multiple GMA modules can be stacked to learn deeper relational reasoning, progressively enhancing the model's understanding.
  • Answer Prediction: The fused reasoning features are combined with the question's embedding and fed into a multi-layer perceptron (MLP) for final answer prediction.

Datasets

The proposed GMA network is evaluated on two prominent VQA datasets:

  • VQA 2.0: A widely-used dataset built on VQA 1.0, containing over a million questions and 200,000 images. It features multiple-choice and open-ended questions, with answers typically labeled by 10 human annotators.
  • GQA: A newer dataset designed to require more complex reasoning skills, including spatial understanding and multi-step reasoning. A significant portion of GQA questions (52%) necessitate understanding visual relationships and conducting relational reasoning.

Key Insights and Ideas

  • Explicitly modeling structure is crucial: By constructing graphs for both visual objects and question syntax, the model gains a richer understanding of intra-modality relationships than methods relying solely on feature embeddings.
  • Bilateral attention for true cross-modal interaction: The proposed bilateral matching attention allows for a more dynamic and interactive fusion of visual and textual information, moving beyond simple concatenation or attention maps.
  • Graph matching as a bridge: The graph matching component effectively bridges the gap between the distinct structural representations of images and questions, enabling meaningful alignment.
  • Stacking for deeper reasoning: The ability to stack GMA modules highlights the potential for hierarchical relational reasoning, which is essential for complex VQA tasks.

Key Results

  • State-of-the-art performance: The GMA network achieves state-of-the-art accuracy on both the VQA 2.0 and GQA datasets.
  • VQA 2.0 improvements: GMA outperforms strong baselines like BUTD [1] by 4.49% and other attention-based methods. It also surpasses graph-based methods that only consider visual modality.
  • GQA effectiveness: On the GQA dataset, GMA shows significant improvements over baselines (e.g., 28.33% higher accuracy than Local Prior) and attention-based methods, demonstrating its strength in complex reasoning.
  • Ablation studies confirm module effectiveness: Deleting the Dual-Stage Graph Encoder or using only one stage (explicit or implicit) leads to performance degradation, validating the importance of both intra-modality reasoning components. The bilateral matching attention also proves crucial.
  • Qualitative results showcase reasoning: Visualizations demonstrate that GMA can effectively identify relevant objects and words, understand complex questions, and provide correct answers, often outperforming other methods.

Limitations and Future Work

  • Over-smoothing in deep stacking: The paper notes that stacking too many GMA modules can lead to a slight performance degradation, potentially due to over-smoothing in deep graph convolutional networks. This suggests a need for further research into managing message passing in very deep graph structures.
  • Future work: The authors suggest that their GMA network can be extended to other multi-modal tasks requiring relational reasoning. The current work focuses on improving feature fusion and relational reasoning, implying that further exploration of different graph construction strategies or attention mechanisms could yield even better results.

Summary updated

BibTeX
@article{cao2021bilateral,
  author = {Jianjian Cao and Xiameng Qin and Sanyuan Zhao and Jianbing Shen},
  title = {{Bilateral Cross-Modality Graph Matching Attention for Feature Fusion in Visual Question Answering}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2021},
  doi = {10.1109/tnnls.2021.3135655},
}
Figure