TL;DR
This paper introduces VTP-OVD, a novel self-training framework for open-vocabulary object detection that enhances the alignment between visual and textual information. By employing learnable visual and text prompts during an "adapting stage," VTP-OVD achieves significantly better dense pixel-text alignment, leading to more accurate pseudo-label generation and state-of-the-art performance on detecting novel object categories.
What Problem Does This Paper Address?
Traditional object detection models are trained on a fixed set of categories, limiting their applicability to unseen objects. While vision-language models (VLMs) like CLIP have shown promise in zero-shot classification, directly applying them to object detection is challenging because they often lack the fine-grained, pixel-level alignment crucial for localization. Existing self-training methods for open-vocabulary object detection (OVD) often struggle with this fine-grained alignment, leading to suboptimal pseudo-label generation and performance gaps. This paper aims to bridge this gap by developing a method that effectively aligns visual and textual information at a dense, pixel level to improve OVD performance.
Methods
The core of VTP-OVD is a three-stage pipeline:
- Fine-grained Visual-Text Prompt Adapting Stage: This is the key innovation. Instead of directly using pre-trained VLMs, VTP-OVD introduces learnable "prompt modules" for both the image encoder (visual prompt) and text encoder (text prompt).
- Text Prompt: A bidirectional LSTM followed by an MLP processes learnable prompt tokens to generate enhanced text embeddings. This helps the model understand dense alignment cues for categories, which is different from the global alignment in standard VLM pre-training.
- Visual Prompt: A cross-attention mechanism uses the enhanced text embeddings as keys/values and pixel-wise visual features as queries to generate semantic-aware visual embeddings. This aligns the category information to individual pixels.
- A dense alignment loss function is used to fine-tune these prompt modules, improving the VLM's ability to perform pixel-wise classification.
- Pseudo Labeling Stage: The prompt-enhanced VLM generates a dense score map for each category. This map, combined with a pre-trained Region Proposal Network (RPN) (trained only on base categories), is used to generate pseudo bounding-box labels for novel (unseen) classes.
- Self-Training Stage: The generated pseudo labels for novel classes are combined with ground-truth labels for base classes. This combined dataset is then used to train a standard open-vocabulary detector (e.g., Faster R-CNN) for final inference.
Datasets
- COCO 2017: Used for training and evaluation, with categories split into 48 base (seen) and 17 novel (unseen) classes.
- PASCAL VOC, Objects365, LVIS: Used to evaluate the generalization capabilities of the trained detector by transferring it to these datasets.
Key Insights and Ideas
- Fine-grained alignment is crucial for OVD: Standard VLMs excel at global image-text matching but struggle with the pixel-level precision needed for object detection. VTP-OVD's prompt-driven adaptation directly addresses this.
- Learnable prompts unlock dense alignment: Introducing learnable visual and text prompts allows the VLM to adapt its representations for dense prediction tasks, going beyond its original pre-training objective.
- Self-training benefits from better pseudo-labels: The quality of pseudo-labels is paramount in self-training. By improving the dense alignment, VTP-OVD generates more accurate pseudo-labels, leading to better downstream detector performance.
- Pre-trained RPNs are sufficient for localization: The RPN, trained only on base classes, proves effective for generating bounding box proposals, demonstrating that localization knowledge from seen classes can transfer.
Key Results
- State-of-the-art performance on COCO: VTP-OVD achieves 31.5% mAP on novel classes of COCO, outperforming previous self-training methods.
- Improved dense score map: The prompt-enhanced VLM generates a denser score map with 4.3% higher mIoU compared to using a pre-trained CLIP model directly.
- Strong generalization: The model trained on COCO demonstrates excellent transfer performance on PASCAL VOC, Objects365, and LVIS datasets.
- Effectiveness of prompts: Ablation studies show that both visual and text prompts contribute significantly to improving pseudo-label quality and dense score map accuracy, with their combination yielding the best results.
Limitations and Future Work
- Failure on some novel categories: The paper acknowledges that VTP-OVD still fails to detect certain novel categories, attributing this to the generation of incorrect pseudo-labels, particularly for objects that are often part of a larger scene context (e.g., skateboarders and skateboards).
- Future work: The authors suggest that VTP-OVD is a general pipeline that can be extended to other tasks like open-vocabulary instance segmentation and can serve as a strong baseline for future research. They also highlight the potential for further improvements by exploring more sophisticated prompt designs and adaptation strategies.
Summary updated