NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph-Structured Representations for Visual Question Answering

Damien Teney, Lingqiao Liu, Anton van den Hengel

Abstract

Traditional Visual Question Answering (VQA) systems often treat images and questions as monolithic vectors, failing to capture the intricate structural relationships inherent in both modalities. This paper introduces a framework that represents scenes and questions as structured graphs—encoding spatial relationships between objects and syntactic dependencies between words. By utilizing Gated Graph Neural Networks (GGNNs), the model performs explicit, human-like reasoning. Our approach achieves state-of-the-art performance on challenging abstract scene benchmarks, demonstrating improved generalization and a reduction in reliance on language biases.

Introduction

Most VQA models rely on a combination of Convolutional Neural Networks (CNNs) for image feature extraction and Long Short-Term Memory (LSTM) networks for language processing. While effective, these "black-box" approaches suffer from two primary limitations: they ignore rich structural information (e.g., precise spatial arrangements or complex grammatical trees) and often exploit dataset correlations rather than performing true reasoning.

Conceptual overview of the graph-based VQA approach, representing both the image and question as interconnected nodes.

To address these issues, we propose moving beyond linear and grid-based representations toward graph-structured models that explicitly account for the relationships between entities in both the visual and linguistic domains.

Methodology: Graph-Structured Reasoning

The core of our system is the dual-graph representation and a message-passing architecture.

Graph Construction

  • Scene Graph: Each detected object in an image is represented as a node containing visual features such as category and pose. Nodes are fully connected by edges that encode relative spatial positions, allowing the model to understand context (e.g., "the cat on the sofa").
  • Question Graph: Instead of a linear sequence, the question is parsed into a syntactic dependency graph. Words serve as nodes, and edges represent grammatical relationships (e.g., identifying which adjective modifies a specific noun).

Gated Graph Neural Networks (GGNN)

The model processes these graphs using a GGNN, where each node contains a Gated Recurrent Unit (GRU). Through iterative message passing, nodes update their states based on their neighbors. For instance, a "red" node can inform a "ball" node, or an object node can incorporate information from surrounding spatial context.

Detailed architecture of the Graph VQA model, illustrating the pipeline from graph embedding to cross-modal matching and final prediction.

Cross-Modal Alignment

The system computes matching weights between word nodes and object nodes. This form of cross-modal attention allows the model to align specific parts of the question with relevant objects in the scene, facilitating targeted reasoning.

Experimental Results

We evaluated the model on two primary benchmarks: Abstract Scenes and Balanced Abstract Scenes. The latter is particularly rigorous, featuring image pairs that are nearly identical but require opposite answers, thus penalizing models that rely on language priors.

Performance Gains

  • Abstract Scenes: Our model improved accuracy from 71.2% to 74.4% on the multiple-choice task.
  • Balanced Dataset: On the challenging "pairs" setting, the model achieved 39.1% accuracy, a significant improvement over the previous state-of-the-art of 34.7%.

Key Insights

Ablation studies confirmed that both syntactic question graphs and spatial scene edges are critical for performance. Furthermore, the model's internal confidence scores correlate with human answer ambiguity, providing a level of interpretability often missing in VQA systems.

Conclusion

By representing visual and linguistic data as structured graphs, we enable VQA systems to perform more explicit reasoning. This approach not only improves accuracy but also enhances the model's ability to generalize and resist dataset biases. Future work will focus on scaling these methods to real-world images using noisy object detector proposals and incorporating external common-sense knowledge.

Summary updated

BibTeX
@inproceedings{teney2017graph,
  author = {Damien Teney and Lingqiao Liu and Anton van den Hengel},
  title = {{Graph-Structured Representations for Visual Question Answering}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.344},
}
Figure