Towards End-to-end Semi-supervised Learning for One-stage Object Detection

Gen Luo, Yiyi Zhou, Lei Jin, Xiaoshuai Sun, Rongrong JiarXiv 2023 · DOI

Abstract

Semi-supervised object detection (SSOD) has significantly reduced the labeling burden for two-stage detectors, yet its application to one-stage detectors like YOLOv5 remains challenging. This paper introduces OneTeacher, a framework designed to overcome the hurdles of low-quality pseudo-labels and multi-task optimization conflicts inherent in dense, one-stage architectures. By employing Multi-view Pseudo-label Refinement (MPR) and Decoupled Semi-supervised Optimization (DSO), OneTeacher achieves a 33.5% relative AP gain on COCO with only 10% labeled data, outperforming previous state-of-the-art methods.

Introduction

Object detection is a cornerstone of computer vision but is notoriously "label-hungry," requiring extensive manual bounding box annotations. Semi-supervised learning offers a solution by leveraging a small set of labeled images alongside a large unlabeled pool. While two-stage detectors (e.g., Faster R-CNN) have successfully integrated SSOD techniques, one-stage detectors—favored in production for their speed—have lagged behind. The authors identify two primary barriers: the massive volume of noisy pseudo-labels generated by dense prediction layers and the optimization conflicts arising from shared classification and regression heads.

Empirical analysis comparing YOLOv5-S and Faster R-CNN (FRCNN) pseudo-label quality, and the impact of thresholding.

The One-Stage SSOD Challenge

One-stage detectors predict bounding boxes at over 100,000 locations simultaneously. Unlike two-stage models, which use a region proposal network to filter candidates, one-stage models produce a high ratio of noisy to accurate pseudo-labels early in training. As shown in Figure 4(a) and (b), the initial pseudo-label accuracy and IoU for YOLOv5 are significantly lower than those for Faster R-CNN. Furthermore, Figure 4(c) demonstrates that classification and regression tasks have different sensitivities to pseudo-label thresholds, suggesting that a single "one-size-fits-all" threshold is suboptimal.

The OneTeacher Framework

To address these issues, the authors propose OneTeacher, a teacher-student framework optimized for one-stage architectures.

Overview of the OneTeacher framework, highlighting the Multi-View Pseudo-Label Refinement (MPR) and Decoupled Semi-supervised Optimization (DSO) modules.

Multi-view Pseudo-label Refinement (MPR)

MPR ensures pseudo-label reliability by examining images from multiple "views" (e.g., original and flipped). The teacher model only retains boxes that appear consistently across views, averaging their coordinates for higher spatial precision. Additionally, a Global-View Filtering mechanism utilizes image-level classification to prune local bounding boxes that do not align with the overall scene context, effectively reducing hallucinations.

Decoupled Semi-supervised Optimization (DSO)

In standard one-stage architectures, classification and regression often share prediction layers. OneTeacher modifies the network head to separate these branches. This decoupling allows for task-specific thresholds: a stricter threshold for regression (requiring high spatial accuracy) and a more relaxed one for classification (which can benefit from more, albeit noisier, data). This prevents the optimization of one task from degrading the performance of the other.

Experimental Results

The framework was evaluated on MS COCO and Pascal VOC benchmarks. On COCO with 10% labels, OneTeacher achieved 29.1 mAP, a substantial improvement over the 21.8 mAP supervised baseline. It outperformed the previous state-of-the-art SSOD method, Unbiased Teacher, by 15.0% relative AP. The benefits scaled with model size; for YOLOv5-x, OneTeacher improved mAP from 23.7 to 38.9. Qualitative analysis confirms that MPR effectively corrects mislabeled categories and recovers objects missed by initial teacher predictions.

Conclusion

OneTeacher successfully bridges the gap between semi-supervised learning and high-performance one-stage object detection. By refining dense pseudo-labels through multi-view consistency and decoupling task optimization, it provides a robust path for training efficient detectors with minimal human supervision. Future work will explore automating threshold selection to further streamline the training process across diverse architectures.

Summary updated

BibTeX
@misc{luo2023towards,
  author = {Gen Luo and Yiyi Zhou and Lei Jin and Xiaoshuai Sun and Rongrong Ji},
  title = {{Towards End-to-end Semi-supervised Learning for One-stage Object Detection}},
  year = {2023},
  eprint = {2302.11299},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.11299},
}
Figure