Abstract
Inspired by the success of vision-language methods (VLMs) in zero-shot classification, recent works attempt to extend this line of work into object detection by leveraging the localization ability of pre-trained VLMs and generating pseudo labels for unseen classes in a self-training manner. However, since the current VLMs are usually pre-trained with aligning sentence embedding with global image embedding, the direct use of them lacks fine-grained alignment for object instances, which is the core of detection. In this paper, we propose a simple but effective fine-grained Visual-Text Prompt-driven self-training paradigm for Open-Vocabulary Detection (VTP-OVD) that introduces a fine-grained visual-text prompt adapting stage to enhance the current self-training paradigm with a more powerful fine-grained alignment. During the adapting stage, we enable VLM to obtain fine-grained alignment by using learnable text prompts to resolve an auxiliary dense pixel-wise prediction task. Furthermore, we propose a visual prompt module to provide the prior task information (i.e., the categories need to be predicted) for the vision branch to better adapt the pre-trained VLM to the downstream tasks. Experiments show that our method achieves the state-of-the-art performance for open-vocabulary object detection, e.g., 31.5% mAP on unseen classes of COCO.
Introduction
Traditional object detectors are typically "closed-world," meaning they are limited to recognizing categories seen during training. Open-Vocabulary Detection (OVD) aims to overcome this by allowing models to detect any object described by a text query. Current state-of-the-art approaches leverage Vision-Language Models (VLMs) like CLIP to generate pseudo-labels for unseen objects. However, a significant "granularity gap" exists: VLMs are trained for global image-text alignment, while detection requires fine-grained, pixel-level alignment.
As illustrated in Figure 1, vanilla VLMs often produce noisy or incomplete localization maps. This paper introduces VTP-OVD, a framework that uses learnable visual and text prompts to "steer" pre-trained models toward dense, fine-grained alignment, significantly improving pseudo-label quality.
Methodology
The VTP-OVD framework utilizes a three-stage pipeline to bridge the granularity gap and improve open-vocabulary detection performance.
1. Fine-grained Visual-Text Prompt Adapting
This is the core innovation of the work. Instead of using a frozen VLM, the authors introduce learnable prompt modules:
- Text Prompts: A bidirectional LSTM and MLP generate contextualized embeddings for category names, capturing semantic nuances better than static templates.
- Visual Prompts: A cross-attention mechanism allows image pixels to attend to text embeddings, making visual features "category-aware" and helping the model highlight precise object boundaries.
2. Pseudo-labeling Stage
The prompt-enhanced VLM generates a dense score map for novel classes. This map is combined with region proposals from a standard Region Proposal Network (RPN)—trained only on base classes—to generate high-quality bounding boxes for unseen objects.
3. Self-training Stage
A final detector (such as Mask R-CNN) is trained using a mixture of ground-truth labels for base classes and the high-quality pseudo-labels generated for novel classes.
Key Results
- State-of-the-Art Performance: VTP-OVD achieved 31.5% mAP on COCO novel classes, surpassing previous self-training methods.
- Improved Localization: The prompt-enhanced VLM produced dense score maps with a 4.3% higher mIoU than vanilla CLIP, proving the effectiveness of the fine-grained alignment.
- Generalization: When evaluated on the LVIS dataset (1203 classes) without additional fine-tuning, VTP-OVD outperformed existing baselines, demonstrating its robustness in open-world scenarios.
Conclusion
VTP-OVD effectively addresses the granularity gap in open-vocabulary detection by introducing learnable visual-text prompts. By refining the alignment between text and image features at a dense level, the method generates superior pseudo-labels, leading to state-of-the-art performance. Future work will explore extending this approach to more complex tasks like open-vocabulary instance segmentation.
Summary updated