Visual Relationship Detection With Deep Structural Ranking

Kongming Liang, Yuhong Guo, Hong Chang, Xilin ChenAAAI 2018

Abstract: Visual relationship detection aims to describe the interactions between pairs of objects. Different from individual object learning tasks, the number of possible relationships are much larger, which makes it hard to explore only based on the visual appearance of objects. In addition, due to the limited human effort, the annotations for visual relationships are usually incomplete which increases the difficulty of model training and evaluation. In this paper, we propose a novel framework, called Deep Structural Ranking, for visual relationship detection. To complement the representation ability of visual appearance, we integrate multiple cues for predicting the relationships contained in an input image. Moreover, we design a new ranking objective function by enforcing the annotated relationships to have higher relevance scores. Unlike previous works, our proposed method can both facilitate the co-occurrence of relationships and mitigate the incompleteness problem. Experimental results show that our proposed method outperforms the state-of-the-art on the two widely used datasets. We also demonstrate its superiority in detecting zero-shot relationships.

TL;DR

This research introduces Deep Structural Ranking, a framework designed to identify complex interactions between objects in images. By integrating visual, spatial, and semantic cues with a novel ranking loss that accounts for missing labels, the model achieves state-of-the-art performance and a significant breakthrough in "zero-shot" detection—identifying relationships never seen during training.

The Challenge of Visual Relationship Detection

While AI has mastered identifying individual objects, understanding the relationships between them (e.g., "person riding horse") remains a significant hurdle. The authors identify three primary obstacles:

  1. Combinatorial Explosion: With hundreds of object categories and dozens of predicates, the number of possible triplets reaches hundreds of thousands, most of which are rarely seen in training data.
  2. Incomplete Annotations: Human labelers often miss valid relationships. For instance, they might label "person holding cat" but omit "person behind cat." Standard classification models often penalize AI for correctly identifying these unlabelled truths.
  3. High Intra-class Variance: The visual appearance of a predicate like "on" varies wildly depending on the objects involved (e.g., "cup on table" vs. "car on street").
Qualitative examples of visual relationship detection showing multiple overlapping triplets.

Methodology: Deep Structural Ranking

The proposed framework integrates three distinct types of cues to predict relationship triplets $(subject, predicate, object)$:

  • Visual Cues: Features are extracted from the subject, the object, and their "union" bounding box using a VGG16 backbone.
  • Spatial Cues: The model captures positioning through relative coordinates and binary "spatial masks" (silhouettes of the bounding boxes) processed via a CNN.
  • Semantic Cues: Using Word2Vec embeddings, the model maps object names into a high-dimensional space. This allows the model to generalize knowledge—for example, understanding that a "man" and a "boy" are semantically similar.

Structural Ranking Loss

Rather than simple classification, the authors employ a ranking objective. The model is trained to ensure annotated relationships receive higher relevance scores than unannotated ones. An adaptive margin is used: if a relationship is statistically likely (e.g., "person" likely "wears" a "shirt"), the penalty for it being unlabelled is reduced, making the model robust to incomplete datasets.

Key Results and Insights

The model was evaluated on the Visual Relationship Dataset (VRD) and Visual Genome (VG), significantly outperforming previous state-of-the-art models:

  • Accuracy: On VRD, Predicate Detection (Recall@100) improved from 81.9% to 93.18%.
  • Zero-Shot Generalization: The most dramatic improvement occurred here. In zero-shot predicate detection, the model achieved 79.81% Recall@100, compared to just 8.45% for previous top models.
  • Ranking > Classification: Framing the problem as ranking makes the model much more resilient to the "incomplete label" problem.
  • Language as a Bridge: Semantic embeddings are crucial for zero-shot learning, allowing the model to predict relationships like "truck-on-street" by leveraging its knowledge of "car-on-street."

Limitations and Future Outlook

Currently, the framework depends on a pre-trained object detector; if the detector misses an object, the relationship cannot be found. Furthermore, the "prior probability" used in the adaptive margin is derived from training data. Future work could involve incorporating external knowledge bases (like Wikipedia) to provide a more sophisticated understanding of real-world interactions.

Summary updated

BibTeX
@inproceedings{liang2018visual,
  author = {Kongming Liang and Yuhong Guo and Hong Chang and Xilin Chen},
  title = {{Visual Relationship Detection With Deep Structural Ranking}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=S1NFp1WOZS},
}
Figure