arXiv(opens in a new tab)Computer ScienceMar 2022

Manuscript Offprint

arXiv:2203.10593

Open-Vocabulary One-Stage Detection with Hierarchical Visual-Language Knowledge Distillation

Zongyang Ma, Guan Luo, Jin Gao, Liang Li, Yuxin Chen, Shaoru Wang, Congxuan Zhang, Weiming Hu

Abstract

Open-vocabulary object detection aims to detect novel object categories beyond the training set. The advanced open-vocabulary two-stage detectors employ instance-level visual-to-visual knowledge distillation to align the visual space of the detector with the semantic space of the Pre-trained Visual-Language Model (PVLM). However, in the more efficient one-stage detector, the absence of class-agnostic object proposals hinders the knowledge distillation on unseen objects, leading to severe performance degradation. In this paper, we propose a hierarchical visual-language knowledge distillation method, i.e., HierKD, for open-vocabulary one-stage detection. Specifically, a global-level knowledge distillation is explored to transfer the knowledge of unseen categories from the PVLM to the detector. Moreover, we combine the proposed global-level knowledge distillation and the common instance-level knowledge distillation to learn the knowledge of seen and unseen categories simultaneously. Extensive experiments on MS-COCO show that our method significantly surpasses the previous best one-stage detector with 11.9% and 6.7% AP50AP_{50} gains under the zero-shot detection and generalized zero-shot detection settings, and reduces the AP50AP_{50} performance gap from 14% to 7.3% compared to the best two-stage detector. Code will be released at this url .

1 Introduction

Figure

Figure 1: Comparisons between instance-level and global-level knowledge distillation: (a) illustrates the pipelines of two-stage methods and one-stage methods with instance-level knowledge distillation. (b) illustrates our proposed global-level knowledge distillation, which directly distills the caption representation from PVLM to the global image representation from detector.

The emerging trends in advanced detectors [1, 2, 3, 4, 5, 6, 7, 8, 9] have improved the speed and accuracy of traditional object detection tasks significantly, whereas the categories they can recognize are limited. Once the traditional detectors are expected to detect more object categories in the real-world scenarios, the usual solution falls on labeling more categories of objects in training sets. However, the cost may be unaffordable and the long-tail distribution will be exacerbated by increasing the unseen categories linearly according to Zipf’s law[38]. To overcome these limitations, zero-shot [11] and open-vocabulary [13] object detection tasks are proposed to recognize objects from unseen categories (novel categories) while the detector is only trained with annotations from seen categories (base categories). The main difference between these two tasks is that the open-vocabulary detector might have seen a novel object during training though its instance-level annotation is not available. Therefore, the open-vocabulary detector [13, 17, 16] has developed more rapidly recently, and their performance also lead the former by a large margin.

There have been some works attempting to redesign the traditional detectors to accomplish the above two detection tasks. These works can also be divided into two-stage [11, 34, 33, 35, 16, 13] methods and one-stage [12, 36, 21, 17] methods as in traditional detection. It is known that the traditional state-of-the-art one-stage detectors have comparable performance and more concise pipeline compared to traditional two-stage ones. However, in the open-vocabulary object detection, the current best two-stage method ViLD [16] significantly surpasses the similar one-stage method [17]. As such, it is encouraging to analyze the reason behind this phenomenon and find ways to narrow this performance gap, and then construct a high-performance open-vocabulary one-stage detector.

We show pipelines of recent two-stage and one-stage open-vocabulary detection methods in Figure 1 (a). It can be seen that both of them perform Instance-level visual-to-visual Knowledge Distillation (IKD) on possible instances of interest in the images. The key difference lies in the selection of instances, i.e., object proposals for two-stage methods and positive sample points for one-stage methods. Compared to the object proposals, there are severe inherent limitations in the positive sample points. We argue that these limitations cause the performance gap between two-stage and one-stage methods.

Specifically, as illustrated in Figure 1 (a), the positive sample points (red points) only cover the area of the objects from base categories (green boxes), so the one-stage methods can only learn the semantic knowledge about the base categories from the PVLM during the distillation. On the contrary, the class-agnostic proposals (red boxes) in two-stage methods usually cover the regions of the objects from novel categories (purple boxes), which enables the two-stage methods to implicitly learn the semantic knowledge of novel categories from the PVLM (See sec 4.3 for a clearer analysis). This advantage can effectively expand the semantic category space and further improve performance. What’s more, the number of positive sample points is much less than the object proposals in most images, and each positive sample point only covers a smaller area on the feature maps than the proposals. This sparse sampling of the feature map areas during distillation also makes the semantic supervision from PVLM shrink a lot in one-stage methods.

To compensate for these inherent limitations, a straightforward approach is to make use of more sample points of the feature maps for knowledge distillation. Thus, in this work, we propose a weakly supervised global-level language-to-visual knowledge distillation method (GKD) to achieve this approach. As shown in Figure 1 (b), GKD exploits the visual captions that potentially contain semantic knowledge of novel categories, and performs language-to-visual knowledge distillation between caption representation and global-level image representation. In this way, GKD implicitly aligns all sample points in the image with the caption semantics, so that the sample points belonging to the novel categories can also learn their related semantic knowledge from the PVLM.

Finally, our proposed GKD is combined with the commonly used IKD to perform open-vocabulary one-stage detection in an end-to-end fashion, leading to a hierarchical knowledge distillation mechanism-based detector, namely HierKD. We summarize our contributions as follows:

  • A weakly supervised global-level language-to-visual knowledge distillation method is explored to learn novel category knowledge beyond training labels for one-stage detection.
  • An end-to-end hierarchical visual-language knowledge distillation mechanism is proposed to achieve a high-performing open-vocabulary one-stage detector.
  • The proposed HierKD detector significantly surpasses the previous best open-vocabulary one-stage detector with 11.9% and 6.7% AP50AP_{50} gains under the zero-shot detection and generalized zero-shot detection settings respectively on MS-COCO dataset.

References (43)