ScribbleSup: Scribble-Supervised Convolutional Networks for Semantic Segmentation

Di Lin, Jifeng Dai, Jiaya Jia, Kaiming He, Jian Sun

Abstract

Large-scale data is of crucial importance for learning semantic segmentation models, but annotating per-pixel masks is a tedious and inefficient procedure. We note that for the topic of interactive image segmentation, scribbles are very widely used in academic research and commercial software, and are recognized as one of the most user-friendly ways of interacting. In this paper, we propose to use scribbles to annotate images, and develop an algorithm to train convolutional networks for semantic segmentation supervised by scribbles. Our algorithm is based on a graphical model that jointly propagates information from scribbles to unmarked pixels and learns network parameters. We present competitive object semantic segmentation results on the PASCAL VOC dataset by using scribbles as annotations. Scribbles are also favored for annotating stuff (e.g., water, sky, grass) that has no well-defined shape, and our method shows excellent results on the PASCAL-CONTEXT dataset thanks to extra inexpensive scribble annotations.

Introduction

Semantic segmentation—the task of assigning a category label to every single pixel in an image—is notoriously data-hungry. Traditionally, training high-performance models requires "mask-level" annotations, where human annotators meticulously trace the boundaries of every object. This process is a significant bottleneck; for instance, labeling a single image in the MS COCO dataset can take several minutes.

Comparison of mask and scribble annotations, highlighting the efficiency of scribbles for both objects and 'stuff'.

While "weak" supervision methods exist—such as using only image-level tags or bounding boxes—they often struggle with boundary accuracy or fail to capture "stuff" (like sky, water, or grass) that lacks a distinct shape. Scribbles represent a "Goldilocks" solution: they are significantly faster than masks (taking ~25 seconds vs. minutes) while providing more spatial detail than simple image tags.

Methods

The core of this work is the ScribbleSup algorithm, which treats semantic segmentation as a joint optimization problem. It alternates between propagating labels through a graphical model and training a fully convolutional network (FCN).

The Graphical Model

The image is first decomposed into "super-pixels" (small, uniform clusters of pixels). A graph is constructed where each super-pixel is a node. The algorithm propagates information from the user's scribbles to the rest of the image based on spatial and appearance constraints—ensuring similar-looking adjacent super-pixels share labels—and the current network predictions.

Iterative Training Pipeline

The training process follows an alternating cycle:

  1. Label Propagation: The graphical model propagates labels from scribbles across the entire image.
  2. Network Training: An FCN is trained using these propagated labels as "ground truth."
  3. Refinement: The FCN’s updated predictions are fed back into the graphical model to refine the labels for the next iteration.
The ScribbleSup training pipeline, showing the interaction between scribbles, super-pixels, and the FCN.

This cycle typically converges in just three iterations. Initially, label propagation relies on low-level features like color and texture. As the CNN learns, its high-level semantic understanding (e.g., recognizing the shape of a leg) helps the graphical model produce much more accurate masks for subsequent training rounds.

Experimental Results

The authors evaluated ScribbleSup on major benchmarks including PASCAL VOC 2012 and PASCAL-CONTEXT.

  • Competitive Performance: On PASCAL VOC 2012, ScribbleSup achieved a 63.1% mIoU (mean Intersection-over-Union). This is remarkably close to the 68.5% mIoU achieved by a fully supervised model, despite the massive reduction in annotation effort.
  • Superiority over Weak Supervision: ScribbleSup significantly outperformed methods based on image-level tags (38.2% mIoU) and point-based supervision (51.6% mIoU).
  • Semi-Supervised Boost: By combining a small amount of mask data with a larger amount of scribble data, the authors reached 71.3% mIoU, proving that scribbles are an excellent way to scale up existing datasets inexpensively.

Conclusion

ScribbleSup demonstrates that scribbles are a highly efficient and effective way to supervise deep networks for semantic segmentation. By leveraging a graphical model to bridge the gap between sparse scribbles and dense pixel predictions, the approach achieves near-state-of-the-art results while drastically reducing the human labor required for data annotation.

Summary updated

BibTeX
@inproceedings{lin2016scribblesup,
  author = {Di Lin and Jifeng Dai and Jiaya Jia and Kaiming He and Jian Sun},
  title = {{ScribbleSup: Scribble-Supervised Convolutional Networks for Semantic Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  url = {https://openreview.net/forum?id=BkV0JkG_ZS},
}
Figure