Consistent-Teacher: Towards Reducing Inconsistent Pseudo-Targets in Semi-Supervised Object Detection

Xinjiang Wang, Xingyi Yang, Shilong Zhang, Yijiang Li, Litong Feng, Shijie Fang, Chengqi Lyu, Kai Chen, Wayne Zhang

Introduction

Semi-Supervised Object Detection (SSOD) leverages a small amount of labeled data alongside a large pool of unlabeled data to train robust detectors. The standard paradigm involves a "Teacher-Student" framework where a teacher model generates pseudo-labels on unlabeled images to supervise a student model. However, a significant challenge persists: pseudo-target inconsistency. As the teacher model evolves, the pseudo-labels it produces can drift or oscillate between training iterations. When paired with static anchor assignment rules, these minor shifts cause anchors to flip between foreground and background, injecting noise and leading to overfitting.

Addressing the Inconsistency Problem

The authors of "Consistent-Teacher" identify that static assignment strategies (like fixed IoU thresholds) are ill-suited for the noisy nature of pseudo-labels. To stabilize training, they propose three key modules:

1. Adaptive Anchor Assignment (ASA)

Instead of rigid IoU thresholds, ASA employs a cost-aware matching strategy. By calculating a matching cost based on classification, regression, and spatial distance, ASA identifies the most suitable anchors for a given pseudo-box. This flexibility makes the system resilient to the small spatial perturbations common in teacher predictions.

2. 3D Feature Alignment Module (FAM-3D)

Localization and classification often require different feature focuses. FAM-3D allows the network to adaptively query optimal feature vectors across spatial locations and scales within the feature pyramid. This ensures that high classification confidence scores are backed by high-quality spatial features, leading to more reliable bounding box predictions.

3. Dynamic Thresholding via Gaussian Mixture Models (GMM)

Static confidence thresholds (e.g., 0.9) fail to account for the model's learning progress. Consistent-Teacher utilizes a GMM to model the distribution of prediction scores for each class. This allows the model to dynamically set an optimal threshold that evolves, ensuring that only high-quality pseudo-labels are used at each stage of training.

Figure 2: Comparison of training stability and pseudo-label consistency between the baseline Mean-Teacher and the proposed Consistent-Teacher. The top row shows how Mean-Teacher suffers from drifting labels and higher loss, while the bottom row demonstrates the consistency of the proposed method.

Experimental Results

The framework was evaluated on MS-COCO and PASCAL VOC benchmarks, demonstrating significant improvements over existing state-of-the-art methods:

  • MS-COCO (10% Labeled): Achieved 40.0 mAP, a 3.0 mAP improvement over previous leaders like Dense Teacher.
  • Full MS-COCO + Unlabeled: Reached 47.7 mAP, proving scalability.
  • PASCAL VOC: Improved state-of-the-art by 2.2 absolute mAP.

The training overhead is minimal, with only a 10% increase in iteration time, making it highly practical for large-scale applications.

Conclusion

Consistent-Teacher effectively mitigates the "chaos" of pseudo-labels in semi-supervised detection. By replacing static heuristics with adaptive, data-driven modules like ASA and GMM thresholding, the framework achieves superior stability and accuracy. While currently focused on single-stage detectors, its principles offer a promising path toward more robust and efficient semi-supervised learning systems.

Summary updated

BibTeX
@inproceedings{wang2023consistent,
  author = {Xinjiang Wang and Xingyi Yang and Shilong Zhang and Yijiang Li and Litong Feng and Shijie Fang and Chengqi Lyu and Kai Chen and Wayne Zhang},
  title = {{Consistent-Teacher: Towards Reducing Inconsistent Pseudo-Targets in Semi-Supervised Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00316},
}
Figure