Relationship Proposal Networks

Ji Zhang, Mohamed Elhoseiny, Scott Cohen, Walter Chang, Ahmed M. ElgammalCVPR 2017

Abstract

Image scene understanding requires learning the relationships between objects in the scene. A scene with many objects may have only a few individual interacting objects (e.g., in a party image with many people, only a handful of people might be speaking with each other). To detect all relationships, it would be inefficient to first detect all individual objects and then classify all pairs; not only is the number of all pairs quadratic, but classification requires limited object categories, which is not scalable for real-world images. In this paper, we address these challenges by using pairs of related regions in images to train a relationship proposer that at test time produces a manageable number of related regions. We name our model the Relationship Proposal Network (Rel-PN). Like object proposals, our Rel-PN is class-agnostic and thus scalable to an open vocabulary of objects. We demonstrate the ability of our Rel-PN to localize relationships with only a few thousand proposals. We demonstrate its performance on the Visual Genome dataset and compare to other baselines that we designed. We also conduct experiments on a smaller subset of 5,000 images with over 37,000 related regions and show promising results.

Introduction: Beyond Object Detection

Traditional computer vision has focused heavily on object detection—identifying "what" is in an image. However, true scene understanding requires identifying "how" those objects interact. For example, recognizing a "person" and a "bicycle" is useful, but recognizing that the "person is riding the bicycle" provides a much deeper level of semantic understanding.

The standard pipeline for visual relationship detection involves two steps: detecting all individual objects and then classifying every possible pair. This approach suffers from a "combinatorial explosion." In a complex scene with $N$ objects, there are $N(N-1)$ potential relationships. As the number of objects grows, the computational cost of evaluating every pair becomes prohibitive. Furthermore, most detectors are bound to a fixed vocabulary, making it difficult to handle the diverse, open-vocabulary nature of real-world interactions.

Complex scenes with many objects create a quadratic explosion of potential relationship pairs.

The Relationship Proposal Network (Rel-PN)

To overcome these bottlenecks, we propose the Relationship Proposal Network (Rel-PN). Rel-PN is an end-to-end trainable framework that directly proposes a manageable set of candidate relationship pairs, bypassing the need to evaluate all possible combinations.

3-Branch RPN Architecture

The core of Rel-PN is a modified Region Proposal Network (RPN) that operates with three parallel branches:

  1. Subject Branch: Proposes regions likely to be the "subject" (the actor) in a relationship.
  2. Object Branch: Proposes regions likely to be the "object" (the entity acted upon).
  3. Relationship (Union) Branch: Proposes a "union box" that encompasses both the subject and the object.

This tripartite structure acknowledges that subjects and objects often have distinct visual characteristics. For instance, subjects are frequently humans or animals, while objects can be a wider variety of inanimate things.

The Rel-PN architecture features a 3-branch RPN followed by proposal selection and compatibility evaluation modules.

Proposal Selection and Pruning

The model uses the relationship (union) branch as a powerful heuristic filter. Instead of pairing every subject proposal with every object proposal, Rel-PN only considers pairs whose combined area aligns closely with a proposed relationship box. This step prunes thousands of irrelevant pairs, significantly reducing the search space while maintaining high recall.

Compatibility Evaluation

Once a set of candidate pairs is selected, they are ranked by a compatibility module consisting of two components:

  • Visual Compatibility: A CNN extracts and concatenates features from the subject, object, and union boxes. This allows the model to determine if the visual appearance of the regions suggests an interaction.
  • Spatial Compatibility: The model analyzes the relative geometry of the two boxes (size, distance, and offset) using an 18-dimensional vector to ensure their positioning is physically plausible for a relationship.

Experimental Results

We evaluated Rel-PN on the Visual Genome (VG) dataset and the Visual Relationship Detection (VRD) benchmark.

On Visual Genome, Rel-PN demonstrated superior efficiency and accuracy. With only 5,000 proposals, Rel-PN achieved a 39.4% recall, significantly outperforming a standard pairwise RPN baseline which only reached 27.3% recall with the same number of proposals. This indicates that Rel-PN is much better at identifying the "needle in the haystack" of meaningful interactions within dense scenes.

Ablation studies further revealed that while both visual and spatial features contribute to performance, visual features are generally more discriminating. The combination of both, however, yielded the best results, confirming that both appearance and relative positioning are crucial for understanding scene dynamics.

Conclusion and Future Work

Rel-PN represents a shift toward more scalable scene understanding. By treating relationship detection as a proposal problem and maintaining class-agnosticism, the model can generalize to an open vocabulary of objects and interactions.

While Rel-PN excels at localizing where relationships are, it does not currently classify what those relationships are (e.g., distinguishing "sitting on" from "standing next to"). Future work will focus on integrating this proposal mechanism into a full detection and classification pipeline, potentially enabling real-time, dense scene description.

Summary updated

BibTeX
@inproceedings{zhang2017relationship,
  author = {Ji Zhang and Mohamed Elhoseiny and Scott Cohen and Walter Chang and Ahmed M. Elgammal},
  title = {{Relationship Proposal Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=Bkbpe0bOZH},
}
Figure