Abstract
Referring expression comprehension (REC) aims to locate an object instance in an image based on a natural language description. This task is inherently compositional and requires visual reasoning over object relationships guided by linguistic structure. Existing methods often treat objects in isolation or fail to align with the complexity of the expression. We propose a Dynamic Graph Attention (DGA) network that performs multi-step reasoning by modeling both inter-object relationships and the linguistic structure of the expression. Our method constructs an image graph, utilizes a differential analyzer to predict a reasoning process, and updates compound object representations stepwise. DGA significantly outperforms state-of-the-art algorithms on three benchmarks and provides interpretable visual evidence for its reasoning steps.
Introduction
Referring expression comprehension (REC) is a fundamental task in computer vision and natural language processing, requiring the localization of a specific object (e.g., "the umbrella held by the person in the pink hat") within an image. Humans solve this by following a logical chain of relationships. However, many existing AI models approach this as a global "black box" matching problem, ignoring the nested, compositional nature of language. This lack of structural alignment often leads to failures in complex scenarios and a lack of interpretability.
Methodology: The Dynamic Graph Attention Network
The DGA framework treats REC as a language-driven visual reasoning problem, structured around four primary components:
1. Static Graph Construction
The model represents the image as a graph where nodes correspond to detected objects and edges represent spatial relationships. Eleven types of relationships are modeled, including containment ("inside"), coverage ("cover"), and directional orientations (e.g., "top-left").
2. Differential Analyzer
To handle linguistic complexity, a differential analyzer decomposes the input expression into a sequence of constituent expressions. This module learns a soft distribution over words for each reasoning step, allowing the model to focus on specific parts of the sentence (e.g., "pink hat" then "person in") sequentially.
3. Dynamic Graph Attention
At each step, the model performs stepwise reasoning on the graph. It "attends" to relevant nodes and edges based on the analyzer's output. This process updates the representation of "compound objects"—merging information from related entities into a single logical unit. For instance, after identifying the "pink hat," the model updates the "person" node to represent "the person in the pink hat."
4. Matching and Loss
The final compound object representations are matched against the original expression using a triplet loss function to ensure the correct object is prioritized.
Experimental Evaluation
The DGA model was evaluated on three standard benchmarks: RefCOCO, RefCOCO+, and RefCOCOg. These datasets vary in complexity, with RefCOCO+ forbidding absolute location words and RefCOCOg featuring longer, more natural descriptions.
Performance and Robustness
Using a ResNet-101 backbone, DGA achieved an average accuracy improvement of approximately 4.03% over previous state-of-the-art methods. Notably, the model remained robust even when using automatically detected object boxes rather than ground-truth labels, demonstrating its resilience to visual noise.
Interpretability and Reasoning Depth
A key advantage of the DGA approach is its inherent interpretability. By visualizing the word distributions and graph attention at each step, researchers can trace the model's "thought process." The study found that three reasoning steps typically provide the optimal balance between capturing complexity and avoiding noise; while two steps are often insufficient, four steps can introduce unnecessary noise into the graph propagation.
Conclusion
The Dynamic Graph Attention network represents a significant step toward more human-like visual reasoning in AI. By explicitly modeling the compositional nature of both language and vision, DGA provides a transparent and highly accurate solution for referring expression comprehension. Future work may extend this approach to adaptive reasoning depths or temporal reasoning in video-based tasks.
Summary updated