Abstract
ViP-CNN (Visual Phrase Guided Convolutional Neural Network) is a framework designed to detect visual relationships—such as "person-riding-horse"—by treating them as unified phrases rather than isolated objects. By implementing a novel message-passing structure that allows the subject, predicate, and object to communicate during feature extraction, the model achieves a significant leap in both accuracy and processing speed compared to previous bottom-up approaches.
Introduction
In computer vision, significant progress has been made in object detection (identifying individual entities) and image captioning (describing entire scenes). However, a critical middle ground exists: Visual Relationship Detection (VRD). The primary challenge in VRD is that relationships are inherently interdependent; for instance, the visual appearance of a person "sitting" is inextricably linked to the "chair" beneath them.
Previous "bottom-up" methods typically detected objects independently and then attempted to infer relationships. This approach often fails by ignoring shared visual context and suffers from a "combinatorial explosion" of possible object pairs, leading to slow and redundant models. ViP-CNN addresses these issues through a top-down architecture that views a relationship as an integrated triplet: <subject-predicate-object>.
Methods
Multi-branch Architecture
Based on the VGG-Net backbone, the ViP-CNN architecture splits into four distinct branches after initial shared convolutional layers. One branch is dedicated to generating "triplet proposals," while the remaining three focus on recognizing the subject, the predicate (the interaction), and the object.
Phrase-guided Message Passing Structure (PMPS)
The core innovation of ViP-CNN is the PMPS, which enables the branches to exchange information rather than working in isolation. This structure consists of two primary flows:
- Gather Flow: The predicate branch collects features from the subject and object branches to better understand the interaction.
- Broadcast Flow: The predicate branch sends global context back to the subject and object branches to refine their individual classifications.
Triplet Non-Maximum Suppression (NMS)
To address computational efficiency, the authors adapted the standard NMS algorithm to work on triplets. By filtering out redundant overlapping pairs early in the process, they reduced candidate triplets from over 60,000 to approximately 1,600 per image, resulting in a 20x speedup during inference.
Datasets and Evaluation
The model was evaluated on several key benchmarks:
- Visual Relationship (VR) Dataset: A primary benchmark with 5,000 images and 100 object categories.
- Visual Genome Relationship (VGR): A large-scale dataset. The authors introduced "cleansed" versions (VGR-Dense and VGR-Frequent) to remove misspellings and infrequent categories, providing a more robust training ground.
Key Results and Insights
- Accuracy: On the VR benchmark, ViP-CNN significantly outperformed the previous state-of-the-art "Language Prior" method, increasing Recall@100 for phrase detection from 17.03% to 27.91%.
- Efficiency: The model processes an image in approximately 0.6 seconds on a single GPU, a massive improvement over previous top-tier methods that required over 10 seconds.
- Contextual Object Detection: Interestingly, by considering relationships, the model improved at basic object detection, increasing mean Average Precision (mAP) from 14.35% to 20.56%. This demonstrates that relationship context helps identify individual objects more accurately.
Conclusion
ViP-CNN demonstrates that visual interdependency is a powerful signal for relationship detection. By placing the predicate at the center of a message-passing flow, the model learns that the appearance of one component provides evidence for the others. While the model handles frequent relationships well, future work will focus on the "long-tail" problem—generalizing to rare or unseen relationships by better utilizing semantic embeddings and linguistic information.
Summary updated