Scaling Novel Object Detection with Weakly Supervised Detection Transformers

Tyler LaBonte, Yale Song, Xin Wang, Vibhav Vineet, Neel Joshi

TL;DR

WS-DETR is a new framework that scales weakly supervised object detection to hundreds of novel classes by combining the power of Transformers with a refined Multiple Instance Learning (MIL) approach. Its key finding: when pretraining a model to detect new things, the diversity of classes in your source data matters far more than the total number of images.

What Problem Does This Paper Address?

Training a standard object detector is expensive because it requires "bounding box" annotations—drawing a precise rectangle around every object in every image. Weakly Supervised Object Detection (WSOD) tries to bypass this by training models using only image-level labels (e.g., "this image contains a dog" without saying where).

However, traditional WSOD methods have two major flaws:

  1. Scaling: They usually only work on small datasets with a few dozen classes.
  2. The "Part-Whole" Problem: Models often get "lazy" and overfit to the most distinctive part of an object (like a bird’s beak or a plane’s tail) instead of the whole thing.
  3. Complexity: They often require multiple, messy rounds of training and "pseudo-label" mining.

Methods

The authors propose the Weakly Supervised Detection Transformer (WS-DETR). It adopts a "pretrain-then-finetune" workflow similar to how we use BERT or GPT, but for vision.

Figure 1: WS-DETR is a hybrid approach utilizing a class-agnostic DETR as proposal generator and a class-aware DETR for weakly supervised finetuning. The two streams share object queries. The MIL classifier leverages objectness knowledge from the pretrained class-agnostic DETR to detect novel objects using only image-level labels.

Key technical innovations include:

  • Hybrid Architecture: It uses a pretrained, class-agnostic DETR to generate object proposals and a class-aware DETR for finetuning. They share "object queries," ensuring the model looks at the same potential object locations in both branches.
  • Joint Probability Estimation: To solve the "part-whole" problem, the MIL classifier calculates the probability that a proposal is both a specific class and a valid object. By using the objectness scores from the pretrained model, it forces the detector to pick boxes that cover the entire object.
  • Sparsity: They use a sparsemax function in the classifier. This effectively "zeros out" low-confidence noise, allowing the model to focus only on the most likely object candidates.

Datasets

The authors moved beyond the standard small-scale benchmarks to test WS-DETR in the "wild":

  • FSOD (Few-Shot Object Detection): Used for large-scale pretraining (800 classes) and testing (200 novel classes).
  • iNaturalist 2017: A massive fine-grained dataset. They evaluated on 2,854 subclasses, a scale previously untouched by WSOD research.
  • FGVC-Aircraft: Used to test fine-grained detection of 100 aircraft types.
  • PASCAL VOC 2007: The traditional (but smaller) WSOD benchmark.

Key Insights and Ideas

  • Diversity > Quantity: The most significant insight is the scaling study. The authors found that increasing the number of classes in the pretraining set improves downstream performance much more effectively than just adding more images of the same classes.
  • Objectness as an Anchor: By freezing the box predictor and objectness scores from a pretrained class-agnostic model, they provide a stable "anchor" that prevents the weakly supervised branch from drifting or overfitting to small object parts.
The scaling study shows that class quantity (solid lines) contributes more to performance than image quantity (dashed lines).

Key Results

  • State-of-the-Art (SOTA): On the large-scale FSOD-200 dataset, WS-DETR achieved 28.6 mAP, outperforming the previous best method (20.6 mAP) by a wide margin.
  • Near-Supervised Performance: On the FGVC-Aircraft dataset, WS-DETR reached 79.1 mAP, coming remarkably close to the fully supervised upper bound of 87.1 mAP.
  • Solving the Part-Whole Problem: As shown below, while "Base" models often get stuck on the tail or nose of a plane, the "Joint" and "Full" versions of WS-DETR correctly identify the entire aircraft.
Figure 2: Visualization of how our joint probability tech- nique prevents overfitting to distinctive classification fea- tures on the FGVC-Aircraft dataset. Best viewed electroni- cally and zoomed in. Models (c) and (d) both use our tech- nique. The plotted box is the highest confidence detection.

Limitations and Future Work

  • Data Hunger: Like most Transformer-based models, WS-DETR requires a large, diverse pretraining dataset to be effective. It performs slightly worse than specialized models on very small-scale tasks like the classic PASCAL VOC benchmark.
  • Diversity Metrics: While the paper uses "class quantity" as a proxy for diversity, the authors note that future work should aim to more precisely quantify "class diversity" and its impact on knowledge transfer.
  • Social Impact: The authors acknowledge that making fine-grained detection easier could have negative implications for surveillance and explicitly discourage such uses.

Summary updated

BibTeX
@inproceedings{labonte2023scaling,
  author = {Tyler LaBonte and Yale Song and Xin Wang and Vibhav Vineet and Neel Joshi},
  title = {{Scaling Novel Object Detection with Weakly Supervised Detection Transformers}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  doi = {10.1109/wacv56688.2023.00017},
}
Figure