Abstract
WS-DETR (Weakly Supervised Detection Transformer) introduces a scalable "pretrain-then-finetune" pipeline for detecting novel objects using only image-level labels. By leveraging a transformer-based architecture and a novel joint probability estimation, it outperforms previous state-of-the-art methods on large-scale datasets and successfully scales to thousands of object categories.
Introduction
Standard object detection requires bounding box annotations, which are incredibly expensive and time-consuming to produce. Weakly Supervised Object Detection (WSOD) attempts to train detectors using only image-level category labels (e.g., "this image contains a dog").
However, existing WSOD methods face three major hurdles:
- Scalability: Most models are designed for small datasets (20–100 classes) and struggle in real-world scenarios with thousands of categories.
- Complexity: They often require "multi-round refinement"—an iterative process of generating pseudo-labels and retraining that is computationally heavy and difficult to tune.
- The "Part-Whole" Problem: WSOD models often overfit to the most "distinctive" part of an object (like a bird’s beak) rather than the whole object.
Methodology
The authors propose WS-DETR, which adapts the Detection Transformer (DETR) architecture for the weakly supervised setting. The model consists of two streams that share "object queries."
- Hybrid Architecture: One stream is a class-agnostic DETR (pretrained on a source dataset with boxes) that acts as a proposal generator to identify "what is an object." The second is a class-aware DETR that learns to classify those objects using only image-level labels.
- Joint Probability Estimation: To solve the "part-whole" problem, final predictions are computed by multiplying the classification score with the pretrained objectness score. This forces the model to ensure that a high-confidence classification also corresponds to a high-confidence "object" box.
- Sparsity with Sparsemax: Instead of using a standard softmax, the model uses
sparsemax. This effectively zeros out low-confidence noise, allowing the model to focus only on the most likely object candidates among its 300 proposals. - Streamlined Training: Unlike previous methods, WS-DETR uses a simple, single-round finetuning procedure, making it practical for large-scale deployment.
Key Insights and Scaling
A key finding of the authors' scaling study is that for WSOD pretraining, the diversity of classes in the source dataset is significantly more important than the total number of images. Exposure to many different types of objects helps the model learn a more robust, universal concept of "objectness." By anchoring the classification to a frozen, pretrained objectness branch, the authors effectively guide the classifier to look at the entire bounding box rather than just discriminative parts.
Experimental Results
The paper evaluates the model on several rigorous benchmarks, including FSOD-800/200, FGVC-Aircraft, and the massive iNaturalist 2017 dataset featuring 2,854 subclasses.
- State-of-the-Art Performance: On the FSOD-200 benchmark, WS-DETR achieved 28.6 mAP, significantly outperforming the previous state-of-the-art (20.6 mAP).
- Near-Supervised Accuracy: On the FGVC-Aircraft dataset, the model reached 79.1 mAP, coming remarkably close to the fully supervised performance of 87.1 mAP.
- Unprecedented Scale: WS-DETR successfully converged on the iNaturalist dataset with nearly 3,000 classes, a scale where previous leading methods failed to even run.
Conclusion
WS-DETR represents a significant step forward in making object detection more scalable. While the method still relies on a box-annotated source dataset for initial pretraining, its ability to handle thousands of novel classes with a streamlined training process addresses the primary bottlenecks of previous weakly supervised approaches. Future work may explore unsupervised pretraining to remove the need for source bounding boxes entirely.
Summary updated