Mining Pixels: Weakly Supervised Semantic Segmentation Using Image Labels

Qinbin Hou, Puneet Kumar Dokania, Daniela Massiceti, Yunchao Wei, Ming-Ming Cheng, Philip H. S. Torr

Abstract

We consider the task of learning a classifier for semantic segmentation using weak supervision in the form of image labels which specify the object classes present in the image. Our method uses deep convolutional neural networks (CNNs) and adopts an Expectation-Maximization (EM) based approach. We focus on the following three aspects of EM: (i) initialization; (ii) latent posterior estimation (E-step) and (iii) the parameter update (M-step). We show that saliency and attention maps, our bottom-up and top-down cues respectively, of simple images provide very good cues to learn an initialization for the EM-based algorithm. Intuitively, we show that before trying to learn to segment complex images, it is much easier and highly effective to first learn to segment a set of simple images and then move towards the complex ones. Next, in order to update the parameters, we propose minimizing the combination of the standard softmax loss and the KL divergence between the true latent posterior and the likelihood given by the CNN. We argue that this combination is more robust to wrong predictions made by the expectation step of the EM method. We support this argument with empirical and visual results. Extensive experiments and discussions show that: (i) our method is very simple and intuitive; (ii) requires only image-level labels; and (iii) consistently outperforms other weakly-supervised state-of-the-art methods with a very high margin on the PASCAL VOC 2012 dataset.

Introduction

Semantic segmentation—the task of assigning a class label to every pixel in an image—is a cornerstone of computer vision. While deep Convolutional Neural Networks (CNNs) have achieved remarkable success in this domain, their performance typically relies on massive datasets with pixel-perfect annotations. Generating such labels is prohibitively expensive, often requiring minutes of manual labor per image.

In contrast, image-level labels (e.g., "this image contains a boat") are abundant and cheap to acquire. This paper addresses the challenge of weakly-supervised semantic segmentation: training a high-quality segmentation model using only these coarse image-level tags. The proposed method leverages an Expectation-Maximization (EM) framework enhanced by a novel initialization strategy and robust loss functions.

Methodology

Initialization via Complementary Cues

A critical challenge in weakly-supervised learning is avoiding poor local maxima. The authors propose a "simple-to-complex" curriculum. Before tackling complex datasets like PASCAL VOC, the model is initialized on a curated subset of ImageNet, $\mathcal{D}(I)$, containing 24,000 simple, single-object images.

To generate pseudo-ground-truth masks for these simple images, the method combines two distinct signals:

  1. Bottom-up (Saliency Maps): Class-agnostic maps that identify prominent foreground regions.
  2. Top-down (Attention Maps): Class-specific maps derived from image labels that highlight regions most discriminative for a particular category.
Figure 1: The combination of (b) saliency and (c) attention maps provides a robust (d) combined map for initializing the segmentation model on simple images.

As shown in Figure 1, while saliency maps capture the object's extent and attention maps capture its identity, their union provides a high-quality mask that serves as a powerful starting point for the subsequent EM loop.

The EM Framework

Following initialization, the model is trained on complex images using a refined EM approach:

  • E-Step (Latent Posterior Estimation): The model estimates the latent segmentation by constraining the CNN's predictions with the known image labels. Probability mass from classes not present in the image is redistributed to valid classes and the background.
  • M-Step (Parameter Update): Rather than using "hard" labels (argmax) which can propagate errors, the authors minimize a combination of standard cross-entropy loss and the KL divergence between the soft latent posterior and the CNN's likelihood. This soft constraint approach acts as a regularizer, making the model robust to the noisy predictions inherent in weak supervision.

Results and Discussion

The proposed method demonstrates a significant performance leap over existing weakly-supervised techniques. On the PASCAL VOC 2012 benchmark, the model achieves 56.91% mIoU on the validation set and 57.74% on the test set using only image labels. When a standard Conditional Random Field (CRF) post-processing step is applied, performance reaches 59.58% on the test set.

Notably, the method outperforms previous state-of-the-art weakly-supervised models by a margin of approximately 10% mIoU. The authors attribute this success to the robust initialization and the use of soft constraints during the EM update, which prevents the network from over-fitting to its own incorrect predictions.

Conclusion

This work demonstrates that effective semantic segmentation can be achieved without expensive pixel-level labels. By leveraging a curriculum of simple images and combining bottom-up and top-down cues, the model establishes a superior initialization. The integration of soft constraints within the EM framework further ensures robustness, resulting in a new state-of-the-art for weakly-supervised semantic segmentation.

Summary updated

BibTeX
@inproceedings{hou2016mining,
  author = {Qinbin Hou and Puneet Kumar Dokania and Daniela Massiceti and Yunchao Wei and Ming-Ming Cheng and Philip H. S. Torr},
  title = {{Mining Pixels: Weakly Supervised Semantic Segmentation Using Image Labels}},
  booktitle = {EMMCVPR},
  year = {2016},
  url = {https://openreview.net/forum?id=NH3CmxE6Mu6},
}
Figure