Deep Structured Learning for Visual Relationship Detection

Yaohui Zhu, Shuqiang JiangAAAI 2018

Abstract

Visual Relationship Detection (VRD) involves identifying object pairs and their interactions as triplets, such as <subject, predicate, object>. This paper introduces a deep structured learning framework that moves beyond detecting objects and predicates in isolation. By incorporating a label-level prediction layer and a decomposed Structured SVM (SSVM) loss, the model explicitly captures semantic dependencies, significantly improving performance on long-tailed datasets like Visual Genome.

Introduction

While computer vision has become highly proficient at object detection, understanding how those objects interact remains a major hurdle. The primary challenges in VRD are the combinatorial explosion of possible relationships and the extreme long-tail distribution of data, where most relationships occur rarely. Previous works often treated object and predicate detection as independent tasks, ignoring crucial semantic constraints—for instance, a "person" is likely to "wear" a "shirt," but a "building" is not. This paper aims to bridge that gap by modeling the structural dependencies between these components.

Methodology

The proposed architecture consists of two main stages designed to refine visual detections with semantic logic.

Feature-Level Prediction

The model uses a Faster R-CNN backbone to detect object pairs. For every pair, it extracts 4096-D visual features for the subject, the object, and their union region, along with a 128-D spatial feature vector representing relative locations and scales. These features generate initial scores for the subject, predicate, and object.

Label-Level Prediction and Optimization

The core novelty is the label-level prediction layer, which refines scores by capturing dependencies. For example, the label-level score for a predicate is calculated based on the feature-level scores of the subject and object, allowing the model to learn that if the subject is a "horse" and the object is "grass," the predicate is more likely to be "eat" than "wear."

Overview of the proposed deep structured learning framework for visual relationship detection.

To handle the computational cost of joint triplet prediction, the authors use a Structured SVM (SSVM) loss decomposed into three independent sub-problems. This reduces complexity from $O(N^2K)$ to $O(2N + K)$, making the training of deep structured models much more efficient.

Experimental Results

The authors evaluated their method on the VRD and Visual Genome (VG) datasets. The VG dataset is particularly challenging due to its extreme long-tail distribution across 200 object and 100 predicate categories.

Performance comparison on VRD and VG datasets across different model configurations.

The model, referred to as Fo+L (Feature-level with object features + Label-level), consistently outperformed state-of-the-art methods. On the VRD dataset, it achieved a Recall@100 of 23.92% for phrase detection. On the larger Visual Genome dataset, the model achieved a Recall@100 of 14.35%, nearly doubling the performance of the baseline feature-only model (9.07%). Qualitative analysis showed the model successfully learned that "person-wear" is a high-probability structure, while "building-park on" is correctly identified as impossible.

Conclusion

This work demonstrates that incorporating structural dependencies significantly boosts the accuracy of visual relationship detection. By decomposing the SSVM loss, the authors provided a scalable way to implement structured learning in deep networks. Future work may explore higher-order dependencies and more sophisticated fusion methods to further improve open-world relationship understanding.

Summary updated

BibTeX
@inproceedings{zhu2018deep,
  author = {Yaohui Zhu and Shuqiang Jiang},
  title = {{Deep Structured Learning for Visual Relationship Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12271},
}
Figure