End-to-end Open-vocabulary Video Visual Relationship Detection using Multi-modal Prompting
Yongqi Wang, Xinxiao Wu, Shuo Yang, Jiebo Luo
TL;DR
Open-VidVRD aims to detect visual relationships in videos for unseen object and relation categories, addressing the limitations of relying on pre-trained, closed-set trajectory detectors. The authors propose an end-to-end framework comprising a relationship-aware open-vocabulary trajectory detector and an open-vocabulary relationship classifier that jointly leverage CLIP’s knowledge through a distillation-based Transformer and multi-modal prompting. A relationship query and an auxiliary relationship loss enable the detector to explicitly model object relationships, while spatio-temporal visual prompting and vision-guided language prompting enhance the relationship classifier’s open-vocabulary generalization. Experiments on VidVRD and VidOR show consistent gains, especially in novel-category settings, and cross-dataset evaluation demonstrates strong generalization capabilities, validating the approach's practical impact for open-vocabulary video understanding.
Abstract
Open-vocabulary video visual relationship detection aims to expand video visual relationship detection beyond annotated categories by detecting unseen relationships between both seen and unseen objects in videos. Existing methods usually use trajectory detectors trained on closed datasets to detect object trajectories, and then feed these trajectories into large-scale pre-trained vision-language models to achieve open-vocabulary classification. Such heavy dependence on the pre-trained trajectory detectors limits their ability to generalize to novel object categories, leading to performance degradation. To address this challenge, we propose to unify object trajectory detection and relationship classification into an end-to-end open-vocabulary framework. Under this framework, we propose a relationship-aware open-vocabulary trajectory detector. It primarily consists of a query-based Transformer decoder, where the visual encoder of CLIP is distilled for frame-wise open-vocabulary object detection, and a trajectory associator. To exploit relationship context during trajectory detection, a relationship query is embedded into the Transformer decoder, and accordingly, an auxiliary relationship loss is designed to enable the decoder to perceive the relationships between objects explicitly. Moreover, we propose an open-vocabulary relationship classifier that leverages the rich semantic knowledge of CLIP to discover novel relationships. To adapt CLIP well to relationship classification, we design a multi-modal prompting method that employs spatio-temporal visual prompting for visual representation and vision-guided language prompting for language input. Extensive experiments on two public datasets, VidVRD and VidOR, demonstrate the effectiveness of our framework. Our framework is also applied to a more difficult cross-dataset scenario to further demonstrate its generalization ability.
