Introduction
Traditional object detection models operate within a "closed-world" paradigm, limited to identifying only the specific classes present in their training datasets. Expanding these models to recognize thousands of rare or novel categories is often unfeasible due to the high cost of manual annotation. Zero-Shot Detection (ZSD) offers a solution by enabling models to detect "unseen" objects using semantic descriptions. However, previous ZSD approaches frequently suffered from low accuracy on rare objects and high computational latency.
This paper introduces ZSD-YOLO, a framework that integrates the open-vocabulary knowledge of large-scale vision-language models, specifically CLIP, into the efficient YOLOv5 architecture. By aligning the detector's semantic output with CLIP’s embedding space, ZSD-YOLO achieves state-of-the-art performance while maintaining real-time inference speeds.
Methodology
The core of ZSD-YOLO involves modifying the standard YOLOv5 architecture to replace the traditional classification head with a semantic prediction head. Instead of predicting class probabilities, the model generates a 512-dimensional vector designed to align with CLIP's latent space.
Dual-Alignment Loss
A key innovation is the use of a dual-alignment loss. While prior ZSD methods typically align detector outputs only with text embeddings, ZSD-YOLO also incorporates visual alignment. During training, ground-truth objects are cropped and passed through CLIP’s image encoder. The YOLO head is then trained to match these visual features using an $L_1$ loss. This approach allows the model to capture visual nuances and intraclass variance—recognizing, for instance, that different breeds of "dogs" share a semantic label but vary visually.
Self-Labeling and Prompt Engineering
To further enhance performance, the authors employ a Self-Labeling Augmentation strategy. This technique identifies "unseen" objects in the background of training images and generates pseudo-labels, effectively expanding the training signal without additional human effort. Furthermore, to resolve semantic ambiguities (e.g., distinguishing between a biological "mouse" and a computer "mouse"), the model utilizes WordNet-enhanced prompt engineering during inference to provide clearer semantic context.
Experimental Results
ZSD-YOLO was evaluated on standard benchmarks including MS COCO, ILSVRC, and Visual Genome. The model demonstrated significant improvements in both detection accuracy and inference efficiency.
On the COCO 65/15 split, ZSD-YOLO achieved a state-of-the-art 18.3 mAP, a substantial increase over the previous best of 13.6 mAP. Beyond accuracy, the model's efficiency is a major highlight. As shown in the results, the ZSD-YOLOv5x variant achieves a latency of approximately 51.4ms per image, making it roughly 3x faster than the previous leading method, ZSI. Performance scales predictably with the size of the YOLO backbone, with the 'x' variant providing the best balance of speed and zero-shot generalization.
Conclusion
ZSD-YOLO successfully bridges the gap between high-speed one-stage detectors and the broad generalization capabilities of vision-language models. By leveraging dual-alignment losses and background mining, it sets a new standard for zero-shot object detection. Future work may focus on further reducing the inherent bias toward "seen" classes in the objectness branch and refining the filtering of self-labeled background objects.
Summary updated