NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Semi-Supervised Object Detection with Object-wise Contrastive Learning and Regression Uncertainty

Honggyu Choi, Zhixiang Chen, Xuepeng Shi, Tae-Kyun Kim · DOI

Abstract

Semi-supervised object detection (SSOD) aims to leverage large-scale unlabeled data to improve detector performance when labeled samples are scarce. However, the common teacher-student framework often suffers from noisy pseudo-labels, where high classification confidence does not necessarily correlate with precise localization. This paper introduces two novel components to address these issues: Object-wise Contrastive Learning (OCL) to enhance feature discriminability and Regression-Uncertainty-guided Pseudo-Labeling (RUPL) to ensure localization quality. Our approach demonstrates significant improvements over state-of-the-art baselines on Pascal VOC and MS-COCO benchmarks.

Introduction

In the realm of semi-supervised object detection, the standard paradigm involves a "teacher-student" framework. A teacher model, trained on limited labeled data, generates pseudo-labels for unlabeled images, which are then used to supervise a student model. The primary bottleneck in this process is the quality of the pseudo-labels. If a teacher provides incorrect but highly confident labels, the student model inherits and amplifies these errors, a phenomenon known as confirmation bias.

Existing methods typically rely on classification scores to filter pseudo-labels. This approach is suboptimal for two reasons:

  1. Feature Blur: With limited labeled data, the feature extractor often fails to learn sufficiently discriminative representations, leading to unreliable classification scores.
  2. The Localization Gap: There is a known misalignment between classification confidence and localization accuracy. A model may be highly confident in an object's category while producing a poorly aligned bounding box.

Methodology

To address these challenges, we propose a dual-pronged approach that refines both the feature representation and the pseudo-label filtering mechanism.

Object-wise Contrastive Learning (OCL)

To mitigate "Feature Blur," we introduce Object-wise Contrastive Learning. While standard contrastive learning often operates at the image level, OCL functions at the Region of Interest (ROI) level. By employing a contrastive loss that pulls together representations of objects from the same class across different images and pushes away those from different classes, the model learns more robust and discriminative features. This regularization of the feature extractor allows the classification head to better distinguish between similar categories even with minimal supervision.

Regression-Uncertainty-guided Pseudo-Labeling (RUPL)

To bridge the "Localization Gap," we move beyond simple classification-based filtering. We incorporate a dedicated uncertainty head into the network to predict "aleatoric uncertainty"—a measure of the inherent ambiguity in bounding box boundaries.

Under the RUPL framework, a pseudo-label is only accepted for training if it passes a dual threshold: high classification confidence and low predicted localization uncertainty. This ensures that the student model is trained on samples that are not only correctly categorized but also precisely localized.

Experimental Results

We evaluated our method on the Pascal VOC and MS-COCO datasets, comparing it against the popular "Unbiased Teacher" (UBT) baseline.

Pascal VOC

Using VOC07 as labeled data and VOC12 as unlabeled data, our model achieved 57.34 mAP₅₀:₉₅, outperforming the UBT baseline by 3.35 points. This demonstrates the effectiveness of our dual-filtering strategy in standard detection tasks.

MS-COCO

On the more challenging MS-COCO benchmark, our method showed consistent gains across various labeled data splits:

  • 1% Labeled Data: Achieved 21.63 mAP, a significant improvement over the supervised-only baseline.
  • Qualitative Analysis: Visual inspections indicate that our model is particularly effective in crowded scenes and at detecting small objects, where standard baselines frequently struggle with overlapping or misplaced boxes.

Discussion and Key Insights

The core contribution of this work is the decoupling of classification and localization validation. Our findings suggest that:

  • Classification is not a proxy for Localization: Relying solely on classification scores for pseudo-label filtering is insufficient for high-precision detection.
  • Unlabeled Data as a Structural Teacher: Beyond providing labels, unlabeled data can be used via OCL to learn the underlying feature structure of objects.
  • Synergistic Effects: Ablation studies confirm that OCL and RUPL are complementary. OCL provides higher quality class candidates, while RUPL ensures those candidates possess high-quality geometry.

Limitations and Future Work

While our method significantly improves localization precision (AP₇₅), we observed that RUPL can sometimes lead to a slight decrease in AP₅₀. This suggests the model becomes more selective, prioritizing highly precise samples over a broader range of noisier ones. Additionally, the inclusion of contrastive learning and uncertainty heads adds some computational complexity to the training phase. Future research will explore the application of these techniques to anchor-free detectors and their integration with advanced data augmentation strategies.

Conclusion

By addressing the fundamental disconnect between classification confidence and localization accuracy in semi-supervised learning, this work provides a more robust framework for training object detectors with limited supervision. The combination of Object-wise Contrastive Learning and Regression-Uncertainty-guided Pseudo-Labeling sets a new standard for reliability in pseudo-label generation.

Summary updated

BibTeX
@inproceedings{choi2022semi,
  author = {Honggyu Choi and Zhixiang Chen and Xuepeng Shi and Tae-Kyun Kim},
  title = {{Semi-Supervised Object Detection with Object-wise Contrastive Learning and Regression Uncertainty}},
  booktitle = {BMVC},
  year = {2022},
  url = {https://openreview.net/forum?id=dnis8y5S04D},
}
Figure