Hierarchical Graph Attention Network for Visual Relationship Detection

Li Mi, Zhenzhong Chen

Abstract

Visual Relationship Detection (VRD) is a critical task for high-level scene understanding, requiring the identification of triplets in the form of <subject-predicate-object>. While object detection has matured, modeling the complex interactions between objects remains a challenge. Existing graph-based methods often rely on spatial proximity for graph construction, leading to redundant or missing edges, and typically ignore the context provided by co-occurring relationship triplets. This paper introduces the Hierarchical Graph Attention Network (HGAT), which employs a two-stage reasoning process—object-level and triplet-level—to capture global scene context. By integrating semantic priors and a graph attention mechanism, HGAT achieves state-of-the-art results on the VRD and Visual Genome benchmarks, demonstrating significant improvements in relationship detection and zero-shot learning.

The Challenge: Brittle Graph Construction

A primary hurdle in VRD is the "brittle" nature of standard graph construction methods. Most models connect objects based on spatial proximity; if two bounding boxes are close, an edge is formed. However, as illustrated below, this leads to two major issues:

  1. Redundant Edges: Connecting objects that are physically near but not semantically interacting (e.g., two people standing next to each other).
  2. Missing Edges: Failing to connect objects that are semantically related but spatially distant (e.g., a boy and a kite separated by a large distance in the image).
Challenges in standard graph construction: redundant edges between nearby objects (a) and missing edges between distant ones (b).

Methods: The Hierarchical Graph Attention Network (HGAT)

To address these limitations, the authors propose HGAT, a framework consisting of three main components:

1. Feature Representation Module (FRM)

The FRM extracts multi-cue representations for each object by combining visual features (via VGG-16), spatial features (bounding box coordinates and IoU), and semantic features (word embeddings).

2. Hierarchical Reasoning

The core of HGAT is its hierarchical structure, which performs reasoning at two distinct levels:

  • Object-level Reasoning: Captures the immediate interactions between individual objects.
  • Triplet-level Reasoning: Explicitly models dependencies between potential relationship triplets. This "global" view allows the model to leverage co-occurrence patterns, such as the likelihood of seeing a "person on boat" if a "boat in water" is detected.
The HGAT architecture processes information hierarchically, moving from an object-level graph to a triplet-level graph to capture global context.

3. Semantic Prior and Graph Attention

To overcome the brittle graph problem, HGAT uses Semantic Consistency—prior knowledge of object/triplet co-occurrence from training data—to initialize edges. A Graph Attention Mechanism then dynamically weights these edges based on visual and semantic correlations. This allows the model to effectively "ignore" redundant spatial connections and "strengthen" relevant semantic ones, even across large distances.

Key Insights and Results

The hierarchical approach provides a significant advantage by considering the scene as a whole rather than a collection of isolated pairs. Experimental results on the VRD and Visual Genome (VG100K) datasets confirm the effectiveness of this method:

  • State-of-the-Art Performance: On the VRD dataset's Relationship Detection task, HGAT achieved a Recall@50 of 22.52%, outperforming previous graph-based methods like NMP (20.19%). On Visual Genome, it reached a Predicate Detection Recall@100 of 96.65%.
  • Zero-Shot Generalization: HGAT demonstrated strong performance in predicting relationships never seen during training, achieving 29.12% (R@50, k=1) in zero-shot predicate detection, a nearly 2% improvement over previous benchmarks.

Conclusion and Future Work

The Hierarchical Graph Attention Network successfully addresses the limitations of spatial-only graph construction by integrating hierarchical reasoning and semantic priors. While the model sets new benchmarks, its performance is still impacted by "annotation noise" in large datasets like Visual Genome. Future research will focus on developing methods to handle inconsistent ground-truth labels and integrating hierarchical structures into end-to-end scene graph generation pipelines.

Summary updated

BibTeX
@inproceedings{mi2020hierarchical,
  author = {Li Mi and Zhenzhong Chen},
  title = {{Hierarchical Graph Attention Network for Visual Relationship Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01390},
}
Figure