Abstract
Researchers from China Mobile have introduced a novel visual prompt method for open-set object detection, designed to overcome the inherent limitations of text-only descriptions. By utilizing a few labeled images and a "similarity dictionary" to filter out confusing categories, this approach enhances detection accuracy and stability in complex real-world environments. The method achieves a state-of-the-art 67.7 mAP on the ODinW benchmark, significantly outperforming traditional text-based and offset prompt techniques.
Introduction
Traditional object detectors operate in a "closed-set" environment, limited to categories seen during training. While modern open-set detectors like GLIP or Grounding DINO use text prompts to identify new categories, they face three primary challenges:
- Description Difficulty: Many industrial or medical objects are nearly impossible to describe accurately with words.
- Language Ambiguity: Contextual variations can lead to model hallucinations or misidentifications.
- Optimization Uncertainty: A gap often exists between human descriptions and a model's textual perception.
To address these, this research proposes a visual prompt—a set of learnable vectors derived from actual images—to guide pre-trained detectors more effectively than text alone.
Methodology
The proposed pipeline consists of three core components designed to create a discriminative and efficient visual prompt:
- Statistical-based Visual Prompt Construction: Visual prompts are initialized using statistical priors (mean and variance) from a pre-trained text encoder. A Stochastic Similarity Layer ensures that vectors within a category are correlated yet distinct from other categories, facilitating early-stage feature understanding.
- Similarity Dictionary: To improve discriminative power, a CLIP-based image encoder identifies noun phrases visually similar to the target object from large datasets. These serve as negative samples during training, teaching the model to distinguish the target from visually similar "distractors."
- Training Loop: The visual prompts and negative text prompts are fed into a frozen pre-trained detector (Grounding DINO). This preserves the model's broad knowledge while remaining computationally efficient.
Experimental Results
The method was evaluated on the ODinW (Object Detection in the Wild) benchmark, comprising 13 diverse datasets ranging from PascalVOC to niche categories like thermal imagery and industrial components.
Performance Comparison
The visual prompt method achieved an average of 67.7 mAP, surpassing standard text prompts (50.1 mAP), Context Prompts (62.1 mAP), and Offset Prompts (64.3 mAP). Notably, the method proved robust against poor text descriptions; while text-based methods saw performance drops when given vague labels like "object," the visual prompt remained stable due to its reliance on image data.
Key Insights
- Specificity: Visual prompts capture "ineffable" qualities that text misses, such as the specific texture of industrial hardware.
- Stability: The use of the similarity dictionary prevents "prompt interference," allowing multiple visual prompts to be used simultaneously without significant accuracy degradation.
- Scaling: Performance improves as the number of vectors in the visual prompt increases, peaking at approximately 20 vectors.
Conclusion
This research demonstrates that visual prompts are a powerful alternative to text for specialized open-set detection tasks. While the method currently requires a few-shot training phase for new categories, it significantly reduces the need for manual text tuning. Future work will focus on zero-shot visual prompting to further streamline deployment in rapidly changing environments.
Summary updated