End-to-end Open-vocabulary Video Visual Relationship Detection using Multi-modal Prompting

Yongqi Wang, Shuo Yang, Xinxiao Wu, Jiebo Luo · DOI

Abstract

Video Visual Relationship Detection (VidVRD) aims to identify objects and their interactions over time. Traditional methods rely on a two-stage process involving closed-set trajectory detectors followed by open-vocabulary classifiers, which often fails to detect novel object categories. This paper proposes a novel end-to-end framework that unifies trajectory detection and relationship classification. By leveraging multi-modal prompting with CLIP and a relationship-aware detector, the model generalizes to unseen categories and eliminates the bottleneck of traditional detectors.

Introduction

The task of Open-vocabulary Video Visual Relationship Detection (OV-VidVRD) requires models to recognize interactions like <dog, follow, person> even for object and predicate categories not encountered during training. Existing state-of-the-art methods typically employ a two-stage pipeline: first, a pre-trained closed-set detector extracts object trajectories; second, an open-vocabulary classifier (e.g., CLIP) labels these trajectories.

However, this approach suffers from a critical "blindness" in the first stage. If the initial detector is not trained on a specific category (e.g., "lizard"), it will fail to generate a trajectory, preventing the second stage from ever classifying it. Additionally, there is a significant domain gap between general object detection datasets and VidVRD tasks.

Comparison between traditional two-stage methods (a) and the proposed end-to-end approach (b).

Methodology

The proposed framework addresses these limitations through a unified architecture consisting of two primary components: a Relationship-aware Open-vocabulary Trajectory Detector and an Open-vocabulary Relationship Classifier.

Detailed architecture of the proposed framework, showing the trajectory detector (b) and relationship classifier (c) modules.

Relationship-aware Open-vocabulary Trajectory Detector

Instead of relying on a static, pre-trained detector, the authors utilize a query-based Transformer decoder. To maintain open-vocabulary capabilities, knowledge from CLIP’s visual encoder is distilled into the detector at the frame level. A key innovation is the integration of a "relationship query" within the decoder, allowing the model to incorporate interaction context during the object localization phase. This leads to more precise trajectories for interacting entities. Furthermore, an auxiliary loss function is employed to help the model distinguish between static and dynamic relationships.

Open-vocabulary Relationship Classifier

To adapt the image-based CLIP model for video-level relationship recognition, the authors introduce multi-modal prompting:

  • Spatio-temporal Visual Prompting: Transformer blocks are used to model the spatial layout (subject, object, and background) and temporal dynamics across video frames.
  • Vision-guided Language Prompting: Rather than using generic text prompts (like "a photo of [OBJ]"), the system generates learnable language prompts conditioned on the specific visual features of the objects, enhancing CLIP's contextual understanding.

Experiments and Results

The model was evaluated on the VidVRD and VidOR benchmarks using a "Novel-split" protocol to test generalization to unseen categories.

Performance on Novel Categories

On the VidVRD dataset, the framework achieved a 2.89% mAP improvement on novel relationship categories compared to existing methods. This demonstrates the effectiveness of the end-to-end approach in overcoming the limitations of closed-set detectors.

Cross-Dataset Generalization

In a challenging cross-dataset evaluation (training on VidOR and testing on VidVRD), the model showed significant gains: a 9.77% mAP increase in trajectory detection and a 5.45% mAP increase in relationship classification. These results highlight the robustness of the multi-modal prompting strategy.

Conclusion

This work demonstrates that unifying trajectory detection and relationship classification in an end-to-end manner significantly improves open-vocabulary performance. By incorporating relationship context into the detection phase and using vision-guided prompting for classification, the model effectively bridges the gap between static image recognition and dynamic video interaction analysis. While the current spatio-temporal prompting has quadratic complexity, future work will focus on more efficient attention mechanisms to scale the system for longer videos and more complex scenes.

Summary updated

BibTeX
@article{wang2025end,
  author = {Yongqi Wang and Shuo Yang and Xinxiao Wu and Jiebo Luo},
  title = {{End-to-end Open-vocabulary Video Visual Relationship Detection using Multi-modal Prompting}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2025},
  doi = {10.1109/tpami.2025.3561366},
}
Figure