Webly Supervised Semantic Segmentation

Bin Jin, Maria V. Ortiz Segovia, Sabine SüsstrunkCVPR 2017

Abstract

We propose a weakly supervised semantic segmentation algorithm that uses image tags for supervision. We apply the tags in queries to collect three sets of web images, which encode the clean foregrounds, the common backgrounds, and realistic scenes of the classes. We introduce a novel three-stage training pipeline to progressively learn semantic segmentation models. We first train and refine a class-specific shallow neural network to obtain segmentation masks for each class. The shallow neural networks of all classes are then assembled into one deep convolutional neural network for end-to-end training and testing. Experiments show that our method notably outperforms previous state-of-the-art weakly supervised semantic segmentation approaches on the PASCAL VOC 2012 segmentation benchmark. We further apply the class-specific shallow neural networks to object segmentation and obtain excellent results.

Introduction

Semantic segmentation—the task of assigning a category label to every pixel in an image—is one of the most labor-intensive tasks in computer vision. While standard image classification requires only a simple tag, segmentation requires precise, pixel-level outlines. Manually annotating a single image in the PASCAL VOC dataset takes nearly four minutes on average.

To bypass this bottleneck, researchers are turning to weakly supervised learning, which leverages cheaper data like image-level tags. However, tags indicate what is in an image, but not where it is or its exact shape. Previous attempts often resulted in coarse, "blobby" masks. This paper introduces a "webly supervised" framework that exploits vast, noisy internet data to produce high-quality segmentation without human-drawn masks.

The Webly Supervised Framework

The core of the approach is a novel three-stage training pipeline that utilizes three distinct types of web-crawled data: $W_k$ (objects on plain white backgrounds), $C$ (common background scenes like sky or grass), and $R_k$ (realistic scenes containing the object).

Overview of the web-crawled image sets: clean foregrounds ($W$), common backgrounds ($C$), and realistic scenes ($R$).

Stage 1: Initial Training (The "Easy" Phase)

The process begins by training a Shallow Neural Network (SNN) for each class. These SNNs use "hypercolumn" features—extracted from multiple layers of a pre-trained VGG16—to capture both high-level semantics and fine spatial detail. By starting with objects on white backgrounds ($W_k$), the model easily learns the basic visual signature of an object without background interference.

Example of $W_{car}$ images: objects on plain white backgrounds used for initial SNN training.

Stage 2: Iterative Refinement

The SNNs are then transitioned to realistic images ($R_k$). Using an Expectation-Maximization (EM) approach, the SNN predicts a mask, which is then refined by a Dense Conditional Random Field (CRF) to ensure color and spatial consistency. The SNN is then retrained on these improved masks, learning to navigate cluttered backgrounds and complex boundaries.

Stage 3: Assembling the DCNN

Finally, the refined SNNs generate "pseudo-ground truth" masks for a large set of realistic images. These masks serve as training data for a standard Deep Convolutional Neural Network (DCNN)—specifically the DeepLab architecture—enabling end-to-end multi-class segmentation.

Experimental Results

The method was evaluated on the PASCAL VOC 2012 benchmark and the Object Discovery (OD) dataset.

  • State-of-the-Art Performance: On the PASCAL VOC 2012 test set, the method achieved a 55.3% mIoU (mean Intersection over Union), outperforming the previous best weakly supervised method (SEC) by 3.6%.
  • Data Efficiency: The model achieved superior results using significantly fewer web images (~7k Google images) compared to competing methods that used over 40k images.
  • Modular Scalability: Because SNNs are small (~3.6MB per class) and trained independently, adding new classes is highly efficient and does not require retraining the entire system from scratch until the final assembly stage.

Conclusion and Future Work

While the system achieves impressive results, it faces challenges with co-occurrence. For instance, because "trains" frequently appear on "rails," the model sometimes struggles to distinguish the two, occasionally mislabeling tracks as part of the train. Future research will focus on extending this framework to more object classes and developing more sophisticated web-crawling strategies to automatically mitigate noise in raw search results.

Summary updated

BibTeX
@inproceedings{jin2017webly,
  author = {Bin Jin and Maria V. Ortiz Segovia and Sabine Süsstrunk},
  title = {{Webly Supervised Semantic Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=ry-9Y6-uZH},
}
Figure