[Paper Review] Prompt-Guided Transformers for End-to-End Open-Vocabulary Object Detection
Prompt-OVD proposes a prompt-guided, end-to-end Transformer-based object detection framework that maintains a constant number of object queries by using CLIP class embeddings as prompts, enabling 21.2× faster inference than OV-DETR while achieving higher APs on both base and novel classes through RoI-based masked attention and RoI pruning for efficient zero-shot classification ensembling.
Prompt-OVD is an efficient and effective framework for open-vocabulary object detection that utilizes class embeddings from CLIP as prompts, guiding the Transformer decoder to detect objects in both base and novel classes. Additionally, our novel RoI-based masked attention and RoI pruning techniques help leverage the zero-shot classification ability of the Vision Transformer-based CLIP, resulting in improved detection performance at minimal computational cost. Our experiments on the OV-COCO and OVLVIS datasets demonstrate that Prompt-OVD achieves an impressive 21.2 times faster inference speed than the first end-to-end open-vocabulary detection method (OV-DETR), while also achieving higher APs than four two-stage-based methods operating within similar inference time ranges. Code will be made available soon.
Motivation & Objective
- To address the high inference latency of end-to-end open-vocabulary object detectors like OV-DETR, which scales linearly with the number of classes due to increasing object queries.
- To improve zero-shot generalization for novel classes by efficiently leveraging the vision-language alignment of CLIP without retraining.
- To reduce computational overhead when using large ViT-based CLIP models for classification by introducing RoI-based masked attention and RoI pruning.
- To achieve a balance between detection accuracy and inference speed in end-to-end open-vocabulary detection, especially on large-scale datasets like OV-LVIS and OV-COCO.
Proposed method
- The framework uses CLIP-provided class embeddings as prompts, which are prepended to the decoder’s object queries, enabling class-agnostic queries and constant inference cost regardless of class count.
- RoI-based masked attention extracts CLIP embeddings only for region proposals (RoIs) with high objectness scores, minimizing redundant computation.
- RoI pruning filters out low-confidence bounding boxes before CLIP inference, reducing the number of regions processed and improving efficiency.
- The final detection scores are ensembled from the detector’s predictions and CLIP’s zero-shot classification scores, improving generalization to novel classes.
- The method uses a single forward pass for CLIP inference over selected RoIs, avoiding multiple forward passes and maintaining low latency.
- The approach is compatible with various ViT-based CLIP encoders and input resolutions, with optimal performance at 336×336 resolution for ViT-L/14.
Experimental results
Research questions
- RQ1Can a prompt-guided decoding mechanism maintain a constant number of object queries across all classes, thereby reducing inference latency in end-to-end object detection?
- RQ2How can the zero-shot classification capability of CLIP be efficiently leveraged in an end-to-end object detection pipeline without incurring high computational cost?
- RQ3What is the optimal trade-off between detection accuracy and inference speed when applying RoI-based masked attention and RoI pruning in open-vocabulary detection?
- RQ4Does ensembling predictions from a detection head and CLIP’s zero-shot classifier improve performance on novel classes without retraining?
Key findings
- Prompt-OVD achieves 21.2× faster inference speed than OV-DETR, a prior end-to-end open-vocabulary detector, while maintaining or exceeding its performance.
- On OV-COCO, Prompt-OVD achieves 30.6 AP^{50} on novel classes, demonstrating strong zero-shot generalization.
- On OV-LVIS, Prompt-OVD attains 29.4 mAP^{box}_{novel}, outperforming multiple two-stage methods in both accuracy and inference speed.
- RoI pruning with a threshold of ε = 0.3 achieves the best balance, improving accuracy by excluding false positives without removing true positives.
- Using ViT-L/14 as the CLIP backbone yields the highest performance (29.4 mAP^{box}_{novel} on OV-LVIS), with negligible latency increase due to efficient design.
- Input resolution of 336×336 for ViT-L/14 provides optimal accuracy-latency trade-off, outperforming both smaller and larger resolutions.
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.