Boundary Perception Guidance: A Scribble-Supervised Semantic Segmentation Approach

Bin Wang, Guojun Qi, Sheng Tang, Tianzhu Zhang, Yunchao Wei, Linghui Li, Yongdong Zhang

Abstract

Semantic segmentation typically requires dense, pixel-level annotations, which are expensive and time-consuming to produce. Weakly-supervised methods using sparse "scribbles" offer a cost-effective alternative but often suffer from coarse, inaccurate object boundaries. This paper introduces the Boundary Perception Guidance (BPG) framework, which utilizes iterative prediction refinement and class-agnostic boundary regression to recover sharp boundaries from sparse supervision. BPG achieves a state-of-the-art 76.0% mIoU on PASCAL VOC 2012, nearly matching the performance of fully supervised models.

Introduction

Semantic segmentation—the task of assigning a category label to every pixel in an image—is a cornerstone of computer vision. However, creating "gold standard" ground truth masks requires annotators to meticulously trace object boundaries, a process that is both slow and costly.

Weakly-supervised methods aim to use cheaper alternatives like "scribbles" (simple strokes indicating an object's category). However, because scribbles only cover a tiny fraction of pixels and provide no explicit information about where an object ends, models trained on them often produce "blobby" results with coarse, inaccurate boundaries.

Example of scribble-based annotation used for weak supervision.

This paper tackles the challenge of recovering those sharp, fine-grained boundaries using only sparse scribble supervision.

Methodology

The authors propose the Boundary Perception Guidance (BPG) framework, which integrates two novel sub-networks into a standard segmentation backbone:

  1. Prediction Refinement Network (PRN): Standard models often use a simple 8x upsampling to reach the final resolution, which loses fine detail. The PRN instead uses iterative upsampling and fuses high-level semantic features with high-resolution, low-level texture features from earlier layers. This allows the model to progressively "sharpen" its predictions.
  2. Boundary Regression Network (BRN): This module provides explicit guidance on boundary locations. It leverages class-agnostic edge maps generated by an off-the-shelf edge detector. To handle noise in these maps, the BRN employs a "max-pooling" strategy: it only propagates gradients to the semantic channel with the highest probability at a given pixel, preventing noisy background edges from corrupting the model.

Experiments and Results

The approach was evaluated on the PASCAL VOC 2012 benchmark. Using 10,582 images annotated with scribbles for training, the BPG framework set a new benchmark for weakly-supervised segmentation.

Quantitative Performance

On PASCAL VOC 2012, BPG achieved 76.0% mIoU (with CRF). For context, the fully supervised baseline using expensive per-pixel masks achieves 76.4%—meaning BPG reaches 99.5% of full-supervision performance using only scribbles.

Qualitative Comparison

As illustrated in the comparison below, BPG produces significantly cleaner boundaries that align better with actual object shapes compared to standard baselines.

Qualitative comparison of segmentation results: (a) Input image, (b) Per-pixel Ground Truth, (c) Scribble Ground Truth, (e) Baseline result, and (f) BPG result showing significantly sharper boundaries.

Key Insights

  • Class-Agnosticism is Robust: Treating boundaries as class-agnostic (simply "is there an edge here?") makes the model more robust to the imperfections of automated edge detectors.
  • The "Max" Gradient Trick: The use of a max operation in the BRN ensures that only the most confident semantic prediction is "pulled" toward a nearby edge, preventing the model from forcing boundaries onto background regions.
  • Iterative Refinement: The PRN demonstrates that achieving pixel-level accuracy requires a structured way to re-integrate low-level spatial information with high-level semantic data.

Conclusion

BPG significantly narrows the performance gap between cheap, sparse annotations and expensive, pixel-perfect masks. While it currently relies on an external edge detector, the modular nature of the PRN and BRN allows for easy integration into other architectures. Future work may explore joint training to further reduce reliance on external pre-trained modules.

Summary updated

BibTeX
@inproceedings{wang2019boundary,
  author = {Bin Wang and Guojun Qi and Sheng Tang and Tianzhu Zhang and Yunchao Wei and Linghui Li and Yongdong Zhang},
  title = {{Boundary Perception Guidance: A Scribble-Supervised Semantic Segmentation Approach}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/508},
}
Figure