Relation-Aware Graph Attention Network for Visual Question Answering

Linjie Li, Zhe Gan, Yu Cheng, Jingjing LiuICCV 2019

TL;DR

ReGAT (Relation-aware Graph Attention Network) significantly improves Visual Question Answering (VQA) by modeling images as dynamic graphs of object interactions. By combining explicit semantic/spatial relations with implicit learned dynamics—all conditioned on the specific question being asked—the model achieves state-of-the-art performance across major benchmarks.

What Problem Does This Paper Address?

While standard VQA models have become adept at identifying individual objects (e.g., "zebra," "grass"), they often struggle to understand the interactive dynamics between them. Answering a question like "Is the zebra at the far right a baby zebra?" requires more than just object detection; it requires understanding spatial positioning and relative attributes.

There is a significant "semantic gap" between the raw visual features extracted by a CNN and the complex relational concepts expressed in natural language. Previous attempts to bridge this gap often relied on static relations or treated all object pairs equally. The authors argue that a model must interpret the visual scene holistically and, crucially, adapt its focus based on the question's context.

Methods

The core contribution is the Relation-aware Graph Attention Network (ReGAT). Instead of treating an image as a collection of isolated regions, ReGAT transforms it into a graph where nodes are objects and edges represent their relationships.

An overview of the ReGAT model showing how image and question features are processed through a relation encoder.

The architecture utilizes three distinct types of relation encoders:

  1. Explicit Semantic Relations: Uses a pre-trained classifier to identify 14 actionable relationships (e.g., "wearing," "holding," "eating") between objects.
  2. Explicit Spatial Relations: Categorizes geometric arrangements into 11 types (e.g., "inside," "overlap," "around") based on bounding box coordinates.
  3. Implicit Relations: A fully-connected graph where the model learns hidden dynamics between regions that might not fit into pre-defined labels.

The "secret sauce" is the Question-adaptive Graph Attention. Unlike standard Graph Convolutional Networks (GCNs), ReGAT uses an attention mechanism that injects the question's embedding into the graph. This allows the model to dynamically assign higher weights to relations that are most relevant to the specific question on the fly.

Detailed architecture of the three relation encoders: Semantic, Spatial, and Implicit.

Datasets

The authors evaluated ReGAT on two primary benchmarks:

  • VQA 2.0: The standard large-scale dataset for visual question answering.
  • VQA-CP v2: A more challenging "Compositional Partition" version designed to test a model's ability to overcome language biases (where the distribution of answers differs between training and testing).
  • Visual Genome: Used specifically to pre-train the semantic relation classifier.

Key Insights and Ideas

  • Relations are Question-Dependent: A "holding" relation between a man and a bat is vital if the question is "What is the man holding?", but irrelevant if the question is "What color is the grass?". ReGAT’s ability to adapt its graph weights based on the question is its most powerful feature.
  • Explicit + Implicit Synergy: While explicit labels (spatial/semantic) provide a strong inductive bias, implicit relations capture subtle visual cues that human-defined categories might miss. The best results come from using all three types together.
  • Plug-and-Play Compatibility: ReGAT is designed as a generic relation encoder. The authors demonstrated that it could be added to existing SOTA architectures (like BAN or BUTD) to consistently boost their performance without requiring a total redesign.

Key Results

ReGAT achieved state-of-the-art results at the time of publication:

  • VQA 2.0: Reached 70.58% accuracy on the test-std split, outperforming previous models like Pythia and MuRel.
  • VQA-CP v2: Achieved 40.42% accuracy, a significant jump over the 39.54% SOTA baseline, proving the model relies more on visual reasoning than just memorizing language biases.
  • Ablation Studies: The authors found that combining graph attention with question-adaptivity provided a greater performance gain than the sum of their individual parts, highlighting a powerful non-linear synergy.
Visualization of attention maps showing how the question-adaptive mechanism sharpens the model's focus on relevant image regions.

Limitations and Future Work

The authors note that their current method for combining the three relation types is a relatively simple weighted sum of predicted answer distributions. They suggest that more sophisticated fusion strategies—perhaps learning how to gate or combine these features earlier in the pipeline—could yield even better results. Additionally, they aim to investigate how to automatically route specific question types to the most appropriate relation encoder (e.g., routing "where" questions primarily to the spatial encoder).

Summary updated

BibTeX
@inproceedings{li2019relation,
  author = {Linjie Li and Zhe Gan and Yu Cheng and Jingjing Liu},
  title = {{Relation-Aware Graph Attention Network for Visual Question Answering}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  url = {https://openreview.net/forum?id=EPDP_ke7QA5},
}
Figure