S4OD: Semi-Supervised learning for Single-Stage Object Detection

Yueming Zhang, Xingxu Yao, Chao Liu, Feng Chen, Xiaolin Song, Tengfei Xing, Runbo Hu, Hua Chai, Pengfei Xu, Guoshan Zhang · DOI

Abstract

Single-stage detectors suffer from extreme foreground-background class imbalance, while two-stage detectors do not. Therefore, in semi-supervised object detection, two-stage detectors can deliver remarkable performance by only selecting high-quality pseudo labels based on classification scores. However, directly applying this strategy to single-stage detectors would aggravate the class imbalance with fewer positive samples. Thus, single-stage detectors have to consider both quality and quantity of pseudo labels simultaneously. In this paper, we design a dynamic self-adaptive threshold (DSAT) strategy in classification branch, which can automatically select pseudo labels to achieve an optimal trade-off between quality and quantity. Besides, to assess the regression quality of pseudo labels in single-stage detectors, we propose a module to compute the regression uncertainty of boxes based on Non-Maximum Suppression. By leveraging only 10% labeled data from COCO, our method achieves 35.0% AP on anchor-free detector (FCOS) and 32.9% on anchor-based detector (RetinaNet).

Introduction

Semi-supervised object detection (SSOD) typically employs a "Teacher-Student" framework where a teacher model generates pseudo-labels on unlabeled data to train a student model. While two-stage detectors like Faster R-CNN excel in this setup due to their inherent background filtering mechanisms (like the RPN), single-stage detectors like FCOS or RetinaNet struggle with extreme foreground-background imbalance. In these dense prediction models, a high fixed confidence threshold often filters out too many positive samples, leading to a "starvation" of learning signals and reinforcing background bias. S4OD addresses this by introducing mechanisms to balance pseudo-label quality and quantity dynamically.

Methodology

The S4OD framework introduces two key innovations to adapt semi-supervised learning for single-stage detection.

The S4OD framework overview, featuring the Teacher-Student architecture, DSAT, and NMS-UNC modules.

Dynamic Self-Adaptive Threshold (DSAT)

Instead of a static threshold, DSAT periodically evaluates the teacher model on a validation set to compute precision, recall, and F1-score across various confidence levels. The threshold is automatically set to the point where the F1-score peaks. This ensures the model selects the optimal number of pseudo-labels as its confidence evolves, preventing the imbalance trap where a model might be correct but not yet confident enough to pass a strict 0.9 threshold.

The DSAT strategy selects the optimal threshold by identifying the peak of the F1-score curve.

NMS-based Uncertainty (NMS-UNC)

To evaluate regression quality, S4OD leverages the Non-Maximum Suppression (NMS) process. The variance among redundant boxes filtered during NMS serves as a proxy for regression uncertainty. Objects with tightly clustered predictions are considered "easy" and assigned high-quality pseudo-labels for the student's regression branch, while scattered predictions are treated as uncertain and ignored.

Experimental Results

Evaluations on the MS-COCO dataset demonstrate the effectiveness of S4OD across different labeled data regimes:

  • FCOS (Anchor-free): Achieved 23.7% AP with 1% labeled data (+10.1% over baseline) and 35.0% AP with 10% data.
  • RetinaNet (Anchor-based): Reached 32.9% AP with 10% labeled data, a +5.5% improvement over the supervised baseline.
  • Scalability: Using 100% labeled data plus unlabeled data, the model reached 42.8% AP, showing that the method remains beneficial even when labels are relatively abundant.

Conclusion

S4OD provides a robust solution for single-stage semi-supervised object detection. By replacing static thresholds with a dynamic, F1-score-based approach and utilizing NMS-based uncertainty for regression, it effectively manages the foreground-background imbalance. While it introduces a slight computational overhead (~5.5%), the substantial performance gains make it a compelling framework for efficient and accurate object detection in data-scarce environments.

Summary updated

BibTeX
@misc{zhang2022s,
  author = {Yueming Zhang and Xingxu Yao and Chao Liu and Feng Chen and Xiaolin Song and Tengfei Xing and Runbo Hu and Hua Chai and Pengfei Xu and Guoshan Zhang},
  title = {{S4OD: Semi-Supervised learning for Single-Stage Object Detection}},
  year = {2022},
  eprint = {2204.04492},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.04492},
}
Figure