Weakly Supervised Object Detection

Machine Learning
Introduced by
Bilen, H. & Vedaldi, A. (WSDDN); Multiple Instance Learning origins: Dietterich et al. (1997)
Year
2016 (deep WSOD); MIL roots circa 1997
Type
Weakly supervised detection paradigm
Family
Deep learning / NLP / CV

What does it do?

Weakly Supervised Object Detection (WSOD) trains object detectors using only image-level labels, which record whether each object class appears in an image, rather than bounding boxes.

Multiple Instance Learning (MIL) formulations let the model infer where each class is likely to be located from classification signals alone. This reduces the annotation effort compared with box-level labelling.

The intuition behind the method

Fully supervised detection requires a bounding box for every object instance, which is slow and costly to produce. WSOD asks a cheaper question: which categories appear in this image? Each image is treated as a bag of region proposals, and at least one proposal in a bag containing a class should cover that class. The model learns to favour the most discriminative proposals for each class. Over repeated training rounds, its localisation becomes sharper even though it never sees a ground-truth box.

History

Multiple Instance Learning, the framework on which these methods build, is a general paradigm in which labels attach to bags of instances rather than to individual instances. Deep-learning WSOD was advanced by Bilen and Vedaldi's Weakly Supervised Deep Detection Networks (CVPR 2016), which adapted an image-classification CNN to operate on image regions, performing region selection and classification simultaneously. Tang et al. (CVPR 2017) formulated weakly supervised detection as MIL with online instance classifier refinement (OICR), propagating instance labels to spatially overlapping instances, and reported 47% mAP on PASCAL VOC 2007. Subsequent refinements of these ideas have followed, and the field remains active.

When to use it

Choose WSOD when bounding-box annotation is too expensive or impossible to obtain, but image-level class labels can be collected at scale, for example in medical imaging, satellite imagery, or specialised industrial settings. It suits tasks where approximate localisation is acceptable and some loss of accuracy relative to fully supervised detection is tolerable. Do not use WSOD when precise box localisation is required, when the objects are small, densely packed, or heavily occluded, since the MIL assumption is fragile in those conditions. If even a modest set of boxes can be annotated, fully supervised or semi-supervised detection is usually the better choice.

Limitations and considerations

  • Generally underperforms fully supervised detectors on standard benchmarks, and the gap is a central limitation of the approach.
  • The MIL assumption, that one proposal in a positive bag covers the object, fails for small objects, occluded objects, and scenes with several instances of the same class.
  • Training is sensitive to the quality and diversity of region proposals, and poor proposals lead to systematic localisation errors.
  • Pseudo-label noise can accumulate across refinement iterations and reinforce localisation errors.
  • Results are difficult to reproduce across implementations because they depend on proposal parameters and training schedules.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Removes the need for bounding-box annotation, so training data can be built from image-level labels alone.
  • Makes detection possible in domains where box-level labels are impractical to obtain at scale.
  • Works with standard CNN backbones pre-trained on large image classification corpora, which provide region features for the MIL framework.
  • Online refinement strategies such as OICR improved over earlier weakly supervised detectors on PASCAL VOC, with the cited work reporting 47% mAP on VOC 2007.

Applications

  • Medical image analysis, where radiologist bounding-box annotation is scarce and expensive.
  • Satellite and aerial image analysis, using scene-level labels as supervision.
  • Industrial defect detection in settings where only pass/fail labels are recorded.
  • Wildlife monitoring using camera-trap images tagged with species labels but no bounding boxes.
  • Large-scale web image mining, where image-level tags are plentiful but box annotations are not.

How it works

How it works

1

Training data consists of images annotated only with class presence or absence (for example, 'dog: yes, cat: no'), with no bounding boxes. Collecting such labels is generally much cheaper than producing fully annotated detection datasets such as COCO or Pascal VOC.

2

A region proposal method, such as Selective Search, EdgeBoxes, or an anchor-based region proposal network, generates hundreds of candidate bounding-box proposals per image. These proposals serve as the instances in the Multiple Instance Learning framework.

3

A shared CNN backbone produces features for every proposal, and the network pools these into image-level class scores. In the WSDDN-style design, one stream normalises scores across proposals and another across classes, and their combination gives an image-level prediction that is trained against the image-level labels. The MIL constraint is that an image counts as containing a class when at least one of its proposals responds strongly to that class. The original paper by Bilen and Vedaldi gives the precise pooling and loss formulation.

4

Online refinement modules, such as OICR, use the instance classifiers' high-confidence outputs from one iteration as pseudo-labels for overlapping proposals in the next. Labels are propagated to spatially overlapping instances, so the detector's activations gradually concentrate on the object extent. No ground-truth boxes are introduced during this process.

5

At inference, the highest-scoring proposals for each detected class are taken as predicted bounding boxes. Performance is usually reported with mean Average Precision (mAP) at standard IoU thresholds, and localisation quality is often reported separately with CorLoc. Results are compared with fully supervised detectors trained on box-annotated data.

Common pitfalls

  • Reporting only classification accuracy rather than detection mAP at standard IoU thresholds, which does not test localisation.
  • Overlooking co-occurrence bias, where the detector responds to a frequently co-occurring object instead of the intended class.
  • Applying WSOD to datasets with many small or densely packed objects without acknowledging that the MIL assumption may not hold.
  • Presenting WSOD mAP as comparable to fully supervised results without stating the difference in annotation requirements.
  • Skipping a simple CAM-based localisation baseline, which is an inexpensive reference point to compare against on your own data.

Frequently asked questions

How does WSOD differ from semi-supervised object detection?

WSOD uses no bounding-box annotations at all, only image-level labels. Semi-supervised object detection uses a set of fully annotated (box-level) images together with a larger pool of unannotated or weakly annotated images.

Why is WSOD harder than weakly supervised classification?

Classification only needs to establish that a class is present, while detection must also localise it. The MIL bag assumption becomes fragile when several instances of a class appear in one image or when objects are small relative to the full image.

Can pre-trained models help WSOD?

Yes. The Bilen and Vedaldi approach starts from a CNN pre-trained on large-scale image classification and adapts it to operate on image regions, so pre-trained features are reused at the region level.

What benchmarks are standard for WSOD?

PASCAL VOC 2007 and VOC 2012 are the most commonly reported benchmarks, and COCO is used for harder evaluations. mAP at IoU 0.5 is the primary metric, and CorLoc is used to assess localisation quality separately.

When should I annotate some boxes instead of using WSOD?

If annotating even a small number of boxes is feasible, a semi-supervised or few-shot detection approach is worth comparing against a purely weakly supervised pipeline on your own data. Reserve WSOD for cases where box annotation is effectively impossible, not merely inconvenient.

Related methods

Sources

  1. Bilen, H., & Vedaldi, A. (2016). Weakly supervised deep detection networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2846–2854.

    Open DOI reference
  2. Tang, P., Wang, X., Bai, X., & Liu, W. (2017). Multiple instance detection network with online instance classifier refinement. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2843–2851.

    Open DOI reference