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

Semi-Weakly Supervised Object Detection by Sampling Pseudo Ground-Truth Boxes

Akhil Meethal, Marco Pedersoli, Zhongwen Zhu, Francisco Perdigon Romero, Eric Granger

Abstract

Training modern object detectors typically requires extensive datasets with dense, manually annotated bounding boxes. This paper presents a semi-weakly supervised approach that leverages a small set of fully labeled images alongside a larger corpus of images with only image-level tags. By introducing an online importance sampling strategy to generate pseudo-ground-truth boxes during training, the proposed method achieves state-of-the-art performance without the need for complex, multi-stage pipelines or specialized architectures.

1. Introduction

Deep learning-based object detection has seen remarkable progress, yet its reliance on "dense annotations"—where every object instance must be precisely localized with a bounding box—remains a significant bottleneck. The cost and time required to produce such datasets limit the scalability of these models to new domains.

To mitigate this, researchers have explored Weakly Supervised Object Detection (WSOD), which uses only image-level labels, and Semi-Supervised Object Detection (SSOD), which utilizes a mix of labeled and unlabeled data. However, WSOD often suffers from poor localization, while SSOD methods frequently involve complex multi-stage training (e.g., teacher-student frameworks) or rigid architectures like Multiple Instance Learning (MIL) heads. This paper proposes a "semi-weakly supervised" framework that combines the strengths of both approaches in a single-stage, end-to-end training process.

2. Methodology: Online Pseudo-GT Sampling

The core innovation of this work is a generic sampling-based learning strategy that can be integrated into standard detectors such as Faster R-CNN.

2.1 Importance Sampling and Monte Carlo Estimation

Rather than generating static pseudo-labels offline, the model samples "pseudo" ground-truth boxes from a pool of object proposals during each training iteration. To distinguish between actual objects and background noise, the model employs an importance sampling strategy. Using a categorical score for each proposal, it applies a Monte Carlo approach to select the most probable boxes. This probabilistic selection allows the model to "explore" various proposals early in training and "exploit" high-confidence detections as the model matures.

2.2 Score Propagation and Memory

To maintain consistency across training steps, the system implements a score propagation mechanism. This acts as a "memory" for the dataset, storing and updating scores for every object proposal. After a training step, the detector’s output is used to update these scores. By utilizing Intersection over Union (IoU) metrics, high scores are propagated to neighboring, overlapping proposals, ensuring that the sampler converges on the most accurate bounding boxes over time.

2.3 CAM Filtering and Batch Balancing

To further refine the candidate pool, Class Activation Maps (CAMs) are used to filter out proposals that fall within background regions. Additionally, the authors introduce a hyperparameter $r$ to control the ratio of fully-labeled to weakly-labeled images in each training batch. This balancing ensures that the model is not led astray by the inherent noise in the weakly-labeled data.

3. Experimental Evaluation

The method was evaluated on the Pascal VOC benchmarks, specifically using VOC 2007 as the fully-labeled set and VOC 2012 as the weakly-labeled set.

3.1 Performance and State-of-the-Art Comparison

The proposed approach achieved a significant performance boost, reaching 79.4 mAP (at AP50). This represents a 5.0% improvement over the baseline and outperforms existing semi-weakly supervised methods like WSSOD (78.9 mAP).

3.2 Data Efficiency

Ablation studies demonstrated the method's efficiency in low-data scenarios. When only 10% of the VOC 2007 images were fully annotated, the model achieved 60.3 mAP by incorporating the additional weakly-labeled data. In contrast, using only the 10% labeled subset without the weak labels resulted in a significantly lower mAP of 50.9.

4. Discussion and Limitations

While the sampling strategy is effective, analysis using the TIDE evaluation tool indicates that localization error remains the primary source of failure. Because image-level labels do not provide explicit boundary information, the model occasionally struggles with precise box placement.

Furthermore, the sampler faces challenges with:

  • Small Objects: These are often missed or incorrectly localized.
  • Background Co-occurrence: Objects that consistently appear against specific backgrounds (e.g., water for ducks) can lead the model to include background elements within the pseudo-GT boxes.

5. Conclusion

This paper demonstrates that a simple, end-to-end sampling strategy can effectively bridge the gap between weakly and fully supervised object detection. By treating pseudo-labeling as an online importance sampling problem, the method achieves high accuracy and data efficiency without the complexity of traditional multi-stage pipelines. Future work will focus on enhancing the sampler's exploration capabilities to better handle small and difficult-to-localize object instances.

Summary updated

BibTeX
@inproceedings{meethal2022semi,
  author = {Akhil Meethal and Marco Pedersoli and Zhongwen Zhu and Francisco Perdigon Romero and Eric Granger},
  title = {{Semi-Weakly Supervised Object Detection by Sampling Pseudo Ground-Truth Boxes}},
  booktitle = {IJCNN},
  year = {2022},
  url = {https://openreview.net/forum?id=qlKrsmRw9v},
}
Figure