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

Sparse Semi-DETR: Sparse Learnable Queries for Semi-Supervised Object Detection

Tahira Shehzadi, Khurram Azeem Hashmi, Didier Stricker, Muhammad Zeshan AfzalCVPR 2024

Abstract

In this paper, we address the limitations of the DETR-based semi-supervised object detection (SSOD) framework, particularly focusing on the challenges posed by the quality of object queries. In DETR-based SSOD, the one-to-one assignment strategy provides inaccurate pseudo-labels, while the one-to-many assignments strategy leads to overlapping predictions. These issues compromise training efficiency and degrade model performance, especially in detecting small or occluded objects. We introduce Sparse Semi-DETR, a novel transformer-based, end-to-end semi-supervised object detection solution to overcome these challenges. Sparse Semi-DETR incorporates a Query Refinement Module to enhance the quality of object queries, significantly improving detection capabilities for small and partially obscured objects. Additionally, we integrate a Reliable Pseudo-Label Filtering Module that selectively filters high-quality pseudo-labels, thereby enhancing detection accuracy and consistency. On the MS-COCO and Pascal VOC object detection benchmarks, Sparse Semi-DETR achieves a significant improvement over current state-of-the-art methods that highlight Sparse Semi-DETR's effectiveness in semi-supervised object detection, particularly in challenging scenarios involving small or partially obscured objects.

Introduction

Object detection has undergone a significant transformation with the advent of transformer-based architectures like DETR. However, these models typically demand vast amounts of labeled data, which is both costly and time-intensive to acquire. Semi-Supervised Object Detection (SSOD) addresses this by leveraging a small labeled dataset alongside a larger pool of unlabeled data.

Despite progress, the current "Teacher-Student" paradigm in SSOD faces three critical challenges. First, DETR-based models often struggle with small or partially occluded objects due to inadequate multi-scale feature integration. Second, the "Teacher" model frequently generates noisy or redundant pseudo-labels, which can mislead the "Student" model. Finally, the use of a large, fixed number of object queries leads to computational inefficiency and duplicate predictions requiring manual post-processing.

Methodology

Sparse Semi-DETR introduces a novel framework designed to enhance detection quality and efficiency through two key components: the Query Refinement Module (QRM) and the Reliable Pseudo-Label Filtering Module.

The overall framework of Sparse Semi-DETR, highlighting the Query Refinement and Reliable Pseudo-Label Filtering modules.

Query Refinement Module (QRM)

The QRM addresses the "small object struggle" by integrating low-level features from the backbone via ROI alignment. Unlike standard models that rely on high-level abstract features, the QRM uses an attention mechanism to aggregate multi-scale features and a similarity-based filtering strategy. This process refines object queries, making them more sensitive to fine-grained details necessary for detecting small or obscured objects.

Reliable Pseudo-Label Filtering

To mitigate the impact of noisy "Teacher" advice, this module selectively filters pseudo-labels using a top-k selection strategy within a one-to-many assignment framework. By ensuring the Student trains only on high-quality, semantically rich proposals, the model naturally reduces redundant predictions and improves overall consistency.

Experiments and Results

The performance of Sparse Semi-DETR was evaluated on the MS-COCO and Pascal VOC benchmarks. On MS-COCO, the model was tested under various label availability settings (1%, 5%, and 10%).

Comparison of Sparse Semi-DETR against other state-of-the-art SSOD methods on the MS-COCO benchmark.

Key Performance Metrics

  • State-of-the-Art Accuracy: On MS-COCO with 10% labeled data, Sparse Semi-DETR achieved 44.3 mAP, surpassing the previous state-of-the-art (Semi-DETR) by 0.8 points.
  • Enhanced Small Object Detection: The most significant improvements were observed in small object detection, with a +1.7 mAP boost over the baseline on the COCO 10% set.
  • Improved Efficiency: Despite the added complexity of the refinement module, the "sparse" query strategy reduced training time by approximately 10.8% (saving ~4 minutes per 1k iterations) by decreasing the number of queries processed by the decoder.

Conclusion

Sparse Semi-DETR demonstrates that query sparsity and refinement are powerful tools for improving both the accuracy and efficiency of semi-supervised object detection. By bridging the resolution gap and implementing robust pseudo-label filtering, the model achieves superior results, particularly in challenging scenarios involving small or crowded objects. Future work will focus on achieving a completely "NMS-free" end-to-end pipeline and exploring further query sparsification.

Summary updated

BibTeX
@inproceedings{shehzadi2024sparse,
  author = {Tahira Shehzadi and Khurram Azeem Hashmi and Didier Stricker and Muhammad Zeshan Afzal},
  title = {{Sparse Semi-DETR: Sparse Learnable Queries for Semi-Supervised Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=l8yVfj01d6},
}
Figure