Weakly- and Semi-Supervised Object Detection with Expectation-Maximization Algorithm

Ziang Yan, Jian Liang, Weishen Pan, Jin Li, Changshui ZhangarXiv 2017

Abstract

This paper introduces a unified framework for object detection that learns from both "weak" image-level tags and "strong" instance-level bounding boxes using the Expectation-Maximization (EM) algorithm. By treating missing bounding boxes as latent variables, the method achieves new state-of-the-art results in weakly-supervised detection and nearly matches fully supervised performance using only a fraction of expensive manual annotations.

Introduction

The gold standard for training object detectors, such as Faster R-CNN, is a massive dataset where every object is meticulously outlined with a bounding box. However, these "strong labels" are incredibly expensive and time-consuming to produce. In contrast, "weak labels"—simple tags indicating that a "dog" or "person" exists somewhere in an image—are abundant and cheap to collect from the internet.

The challenge lies in the performance gap. Weakly Supervised Detection (WSD) typically performs significantly worse than fully supervised methods. Furthermore, existing Semi-Supervised Detection (SSD) methods often rely on transferring knowledge from different categories that already have strong labels. This paper tackles the problem of how to effectively use a mix of weak and strong labels for the same categories to train high-performing detectors with minimal human effort.

Comparison of Weakly Supervised Detection (top), which uses only image-level tags, and Semi-Supervised Detection (bottom), which incorporates a mix of tags and bounding boxes to train a detector.

Methodology

The authors propose an EM-based framework that treats the unknown locations of objects in weakly labeled images as "missing data" or latent variables. The process follows three main stages:

  1. Initialization: Because the optimization problem is highly non-convex, the process begins with a pre-trained Weakly Supervised Deep Detection Network (WSDDN). This provides a reasonably good initial guess of object locations.
  2. The EM Loop:
    • E-step (Expectation): Given the current detector, the model estimates the probability distribution of object locations across all possible bounding box proposals in the weakly labeled images.
  3. M-step (Maximization): The model updates the weights of a standard detector (Fast R-CNN) using both the ground-truth boxes from strongly labeled images and the estimated boxes from the E-step.
  4. K-EM Approximation: To handle the computational complexity of summing over every possible combination of object locations, the authors introduce K-EM. Instead of picking just the single best guess (Hard-EM), the model maintains the top $K$ most likely hypotheses. This "smoother" approach allows the model to support multiple hypotheses early in training when uncertainty is high.
The EM training pipeline: starting with WSDDN pre-training, then iterating between estimating object locations (E-step) and training a Fast R-CNN detector (M-step).

Experimental Results

The method was evaluated on the PASCAL VOC 2007 benchmark, a standard dataset in computer vision containing 20 object categories.

  • Weakly Supervised (WSD): Using only image-level labels, the K-EM method achieved 46.1% mAP (mean Average Precision), outperforming previous state-of-the-art methods using the same VGG16 architecture.
  • Semi-Supervised (SSD): The results in the semi-supervised setting are particularly striking. By using strong labels for only 40% of the images, the model achieved 55.7% mAP, coming within 1.4% of the performance of a fully supervised Fast R-CNN (57.1% mAP) trained on 100% strong labels.

Discussion and Limitations

A key insight of this work is that the EM iterations progressively "tighten" the focus of the detector. While initial guesses might only highlight a discriminative part (like a dog's face), subsequent EM steps help the model encompass the entire object.

However, the method still struggles with certain categories like "chair," "dining table," and "person." In these cases, the detector often fails by focusing on a specific, highly recognizable part rather than the whole object, or by getting confused by complex backgrounds. Future work could involve better initialization strategies or incorporating additional "objectness" priors to help the EM algorithm converge on the full extent of target instances.

Summary updated

BibTeX
@misc{yan2017weakly,
  author = {Ziang Yan and Jian Liang and Weishen Pan and Jin Li and Changshui Zhang},
  title = {{Weakly- and Semi-Supervised Object Detection with Expectation-Maximization Algorithm}},
  year = {2017},
  eprint = {1702.08740},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.08740},
}
Figure