Abstract
Visual Question Answering (VQA) is concerned with answering free-form questions about an image. Since it requires a deep semantic and linguistic understanding of the question and the ability to associate it with various objects that are present in the image, it is an ambitious task and requires multi-modal reasoning from both computer vision and natural language processing. We propose Graphhopper, a novel method that approaches the task by integrating knowledge graph reasoning, computer vision, and natural language processing techniques. Concretely, our method is based on performing context-driven, sequential reasoning based on the scene entities and their semantic and spatial relationships. As a first step, we derive a scene graph that describes the objects in the image, as well as their attributes and their mutual relationships. Subsequently, a reinforcement learning agent is trained to autonomously navigate in a multi-hop manner over the extracted scene graph to generate reasoning paths, which are the basis for deriving answers. We conduct an experimental study on the challenging dataset GQA, based on both manually curated and automatically generated scene graphs. Our results show that we keep up with human performance on manually curated scene graphs. Moreover, we find that Graphhopper outperforms another state-of-the-art scene graph reasoning model on both manually curated and automatically generated scene graphs by a significant margin.
Introduction
Visual Question Answering (VQA) requires a system to understand both an image and a natural language question to produce an answer. While deep learning has made massive strides, most "monolithic" neural network architectures act as black boxes. They often rely on statistical shortcuts—such as assuming the sky is always blue—rather than performing actual logical reasoning.
The authors of Graphhopper address the lack of explicit compositional reasoning in current models. Even on datasets like GQA, designed to minimize language bias, models struggle to connect multiple objects and relationships (e.g., "What is the color of the car to the left of the tall building?"). Graphhopper moves away from implicit "black box" fusion and toward explicit, step-by-step navigation of the visual scene.
Methods
The core innovation of Graphhopper is framing VQA as a goal-oriented random walk on a scene graph.
Scene Graph Construction
The first step involves converting the image into a structured graph where nodes represent objects (with attributes like "black" or "metal") and edges represent relationships (like "part of" or "on top of"). For evaluation, the authors used both manually curated ground-truth graphs and automatically generated graphs created via a pipeline of DetectoRS for object detection and a Relation Transformer Network (RTN).
Architecture and Reasoning
The model processes the scene graph and the question through several specialized components:
- Multi-modal Embedding: Nodes and edges are processed via a Graph Attention Network (GAT) to create context-aware embeddings. Questions are processed via a Transformer and mean pooling.
- The RL Agent: A reinforcement learning agent, trained via the REINFORCE algorithm, navigates the graph. At each step, it uses an LSTM to track its "history" (where it has been) and a policy network to decide which edge to hop on next.
- Auxiliary Nodes: The authors introduce a "hub" node connected to every other node, allowing the agent to start anywhere or "jump" across the scene. They also add "YES" and "NO" nodes to handle binary questions.
- Inference: During testing, the model uses beam search (width 20) to find the most probable reasoning path to the answer node.
Key Results and Insights
Graphhopper demonstrates state-of-the-art performance in structured VQA reasoning, particularly on the GQA dataset:
- Human-Level Logic: On manually curated (ground-truth) graphs, Graphhopper achieved 92.3% accuracy, surpassing the reported human performance of 89.3% on the same data.
- Outperforming Baselines: It significantly outperformed the Neural State Machine (NSM), which scored only 34.5% on the same ground-truth graphs.
- Robustness to Complexity: Surprisingly, the model’s accuracy does not drop significantly as the number of required reasoning steps increases. This suggests that the GAT and Transformer-based contextualization effectively guide the agent even through long paths.
- High Consistency: The model achieved a consistency score of 91.92%, meaning it rarely provides contradictory answers to related questions about the same image.
Perception as the Bottleneck
The massive gap between performance on ground-truth graphs (~92%) and generated graphs (~56.7%) highlights that the "reasoning" part of VQA is nearly solved if the "vision" part (object and relation detection) can be perfected. The model is only as good as the scene graph it walks on; if the object detector misses a critical component, the agent can never arrive at the correct answer.
Conclusion and Future Work
Graphhopper demonstrates that treating reasoning as a symbolic navigation problem provides both high performance and interpretability. You can literally see the path the agent took to arrive at an answer. Future work includes integrating Common Sense Knowledge Graphs to help the agent answer questions that require outside knowledge not present in the pixels, and exploring more sophisticated reinforcement learning techniques to improve navigation efficiency.
Summary updated