Abstract
While Transformer-based object detectors like Deformable DETR demonstrate superior performance over traditional CNNs in low-data regimes, they frequently fail to converge when integrated into standard semi-supervised learning (SSL) pipelines. This paper presents Momentum Teaching DETR (MT-DETR), a novel framework designed to stabilize SSL for Transformers. By employing "raw" soft pseudo-labels and a dynamic teacher update schedule, MT-DETR avoids the pitfalls of traditional heuristics, setting a new state-of-the-art for object detection with minimal annotations.
The Challenge of Few-Annotation Learning
Deep learning's success in object detection typically relies on massive labeled datasets. However, the high cost of bounding box annotation makes this a significant bottleneck. Researchers often explore Few-Shot Learning (FSL), using a tiny labeled set, or Semi-Supervised Learning (SSL), which leverages a small labeled set alongside a large unlabeled one.
A notable paradox exists in current research: Transformer-based models (e.g., Deformable DETR) significantly outperform traditional CNNs (e.g., Faster R-CNN) in FSL. Yet, when applied to SSL—specifically the "Few-Annotation Learning" (FAL) setup—these models often diverge or collapse.
This failure stems from existing SSL methods' reliance on hand-crafted heuristics like Non-Maximum Suppression (NMS) and hard confidence thresholds. While effective for CNNs, these methods conflict with the end-to-end architecture of Transformers.
Momentum Teaching DETR (MT-DETR)
To address these stability issues, the authors propose MT-DETR, which adapts the student-teacher architecture specifically for Transformer-based detectors.
The framework introduces several key innovations:
- Soft Pseudo-labels: Instead of hard labeling that forces a single class choice, MT-DETR utilizes the raw probability distribution. This preserves class relationship information and prevents premature overconfidence.
- Heuristic-Free Matching: Aligning with the "DETR philosophy," MT-DETR removes NMS and confidence thresholding. It employs Bipartite Matching (the Hungarian algorithm) to directly match student predictions with teacher pseudo-labels.
- Cosine EMA Scheduling: The teacher model's weights are updated via an Exponential Moving Average (EMA) of the student's. MT-DETR uses a cosine schedule to vary the update rate, providing more stable guidance as training matures.
- Strategic Initialization: The process begins with a model fine-tuned on the available labeled data, ensuring the student receives high-quality initial guidance.
Experimental Results
The method was evaluated on MS-COCO and Pascal VOC benchmarks across various low-data regimes.
- MS-COCO (1% labels): MT-DETR achieved 22.03 mAP, significantly outperforming the previous CNN-based state-of-the-art, Soft Teacher (20.46 mAP). This is nearly double the performance of the fully supervised baseline (12.96 mAP).
- Pascal VOC (10% labels): The model reached 43.15 mAP, surpassing the "Unbiased Teacher" framework's 40.34 mAP.
- Stability: Crucially, MT-DETR remained stable across all configurations, successfully preventing the model collapse observed in previous attempts to use Deformable DETR for SSL.
Key Insights
The research highlights that the heuristics used to "clean up" CNN predictions (like NMS) introduce harmful biases for Transformers. By removing these, models can better leverage the diverse proposals inherent in the Transformer's encoder-decoder structure. Furthermore, the results suggest that for tasks where human labeling is the primary cost, Transformers should be the default choice, provided the SSL framework is appropriately designed.
Limitations and Future Work
While MT-DETR removes NMS, it introduces new hyperparameters like the unsupervised loss weight and the EMA schedule. Future research could explore "class-aware" augmentation strategies to handle extreme data scarcity (e.g., 0.5% of COCO) where standard augmentations might obscure rare class instances. Additionally, scaling this approach to even larger unlabeled datasets or open-world detection remains an open area of exploration.
Summary updated