[Paper Review] Learning to Prompt for Open-Vocabulary Object Detection with Vision-Language Model
This paper proposes Detection Prompt (DetPro), a method to automatically learn continuous prompt representations for open-vocabulary object detection using vision-language models. Unlike prior methods focused on image classification, DetPro introduces a background interpretation scheme to optimize negative proposals and a context grading scheme to tailor prompt learning for foreground proposals, achieving +3.4 AP¹¹ and +3.0 AP¹¹ improvements on novel classes in LVIS over the baseline ViLD.
Recently, vision-language pre-training shows great potential in open-vocabulary object detection, where detectors trained on base classes are devised for detecting new classes. The class text embedding is firstly generated by feeding prompts to the text encoder of a pre-trained vision-language model. It is then used as the region classifier to supervise the training of a detector. The key element that leads to the success of this model is the proper prompt, which requires careful words tuning and ingenious design. To avoid laborious prompt engineering, there are some prompt representation learning methods being proposed for the image classification task, which however can only be sub-optimal solutions when applied to the detection task. In this paper, we introduce a novel method, detection prompt (DetPro), to learn continuous prompt representations for open-vocabulary object detection based on the pre-trained vision-language model. Different from the previous classification-oriented methods, DetPro has two highlights: 1) a background interpretation scheme to include the proposals in image background into the prompt training; 2) a context grading scheme to separate proposals in image foreground for tailored prompt training. We assemble DetPro with ViLD, a recent state-of-the-art open-world object detector, and conduct experiments on the LVIS as well as transfer learning on the Pascal VOC, COCO, Objects365 datasets. Experimental results show that our DetPro outperforms the baseline ViLD in all settings, e.g., +3.4 APbox and +3.0 APmask improvements on the novel classes of LVIS. Code and models are available at https://github.com/dyabel/detpro.
Motivation & Objective
- To address the challenge of manual prompt engineering in open-vocabulary object detection, which is time-consuming and requires domain expertise.
- To enable automatic learning of continuous prompt representations that generalize well to novel object classes.
- To improve detection performance by incorporating negative (background) proposals and varying context levels in positive proposals during prompt learning.
- To adapt prompt representation learning—previously limited to image classification—to the more complex setting of object detection, which requires distinguishing foreground from background.
- To demonstrate that learned prompt representations can outperform hand-crafted prompts in both detection and zero-shot classification tasks.
Proposed method
- DetPro introduces a background interpretation scheme that explicitly optimizes negative proposals to have embeddings far from all class embeddings, improving background discrimination.
- It employs a context grading scheme that segments positive proposals into different context levels and applies tailored prompt learning for each level to handle varying contextual complexity.
- The method trains continuous prompt embeddings using a contrastive cross-entropy loss with a temperature of 0.01, optimizing similarity between image proposal embeddings and corresponding class embeddings.
- DetPro is integrated with ViLD, a state-of-the-art open-vocabulary detector, by replacing its prompt-based text encoder with learned continuous prompts during training and inference.
- The training process uses multi-scale data augmentation and a batch size of 512, with RPN generating up to 1000 proposals per image.
- During inference, the learned prompt embeddings are used to generate class embeddings that serve as classifiers for object proposals in the detector head.
Experimental results
Research questions
- RQ1Can continuous prompt learning be effectively adapted from image classification to the more complex task of object detection?
- RQ2How does including negative (background) proposals in prompt training affect detection performance in open-vocabulary settings?
- RQ3Does tailoring prompt learning based on the context level of positive proposals improve generalization to novel classes?
- RQ4Can learned prompt representations outperform hand-crafted prompts in both detection and zero-shot image classification?
- RQ5What is the impact of varying the number of positive samples used during prompt training on model generalization?
Key findings
- DetPro achieves +3.4 AP¹¹ and +3.0 AP¹¹ improvements on novel classes in the LVIS benchmark compared to the baseline ViLD.
- Using all positive samples during DetPro training yields the best generalization, with AP¹¹ reaching 25.4 on novel classes.
- DetPro improves top-1 and top-5 proposal classification accuracy on novel classes to 21.7% and 40.3%, respectively, compared to 17.7% and 37.2% with prompt engineering.
- Assembling a pre-trained ViLD with DetPro via model ensembling yields further gains, with AP¹¹ increasing to 25.4 under optimal settings.
- t-SNE visualizations confirm that DetPro-generated class embeddings are more discriminative in the embedding space than those from prompt engineering across Pascal VOC, COCO, and Objects365.
- The ablation study shows that the context grading scheme and background interpretation scheme are both critical, as their absence leads to performance degradation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.