Abstract
Large-scale training for semantic segmentation is challenging due to the expense of obtaining training data for this task relative to other vision tasks. We propose a novel training approach to address this difficulty. Given cheaply-obtained sparse image labelings, we propagate the sparse labels to produce guessed dense labelings. A standard CNN-based segmentation network is trained to mimic these labelings. The label-propagation process is defined via random-walk hitting probabilities, which leads to a differentiable parameterization with uncertainty estimates that are incorporated into our loss. We show that by learning the label-propagator jointly with the segmentation predictor, we are able to effectively learn semantic edges given no direct edge supervision. Experiments also show that training a segmentation network in this way outperforms the naive approach.
Introduction
Semantic segmentation—the task of assigning a category label to every pixel in an image—is notoriously data-hungry. While a human can categorize an entire image in a second, drawing precise boundaries around every object can take minutes per image. This makes scaling datasets to hundreds of thousands of images prohibitively expensive.
Weakly-supervised methods attempt to use cheaper labels like bounding boxes or "scribbles" (rough lines drawn across objects). However, most existing methods use a two-step approach: first, they use a fixed algorithm (like a GrabCut or a CRF) to guess the dense labels, and then they train a CNN on those guesses. The drawback is that the label-guessing step isn't learned; if the initial guess is bad, the CNN learns from noisy data. This paper introduces RAWKS (RAndom-walk WeaKly-supervised Segmentation), a framework that trains high-quality segmentation networks using only sparse scribbles by treating label propagation as a differentiable random-walk process.
Methods
The core innovation of RAWKS is a differentiable label propagator that allows the model to learn to predict semantic boundaries and dense segments simultaneously without ever seeing a full ground-truth mask.
Architecture and Propagation
The system consists of two main branches. One predicts the final semantic segmentation ($Q$), and the other predicts "semantic edges" or boundaries ($B$). Given sparse scribbles and the predicted boundaries, the model calculates the probability that a "random walker" starting at an unlabeled pixel would hit a specific scribble before hitting any others. If a pixel is surrounded by "dog" scribbles and separated from "background" scribbles by a strong predicted boundary, the walker is highly likely to hit a "dog" label.
Differentiability and Uncertainty
Traditionally, solving these random walks involves solving large linear systems, which isn't naturally compatible with deep learning. The authors derive a way to backpropagate through this linear system, allowing the edge predictor to receive gradients based on how well its boundaries helped propagate labels correctly.
Furthermore, not all propagated labels are equally trustworthy. The model calculates the entropy (uncertainty) of the random walk. If the propagator is "confused" about a region, the loss function down-weights those pixels so the segmentation network doesn't learn from noisy guesses.
Experimental Results
The authors evaluated RAWKS on two major benchmarks using scribble annotations:
- PASCAL VOC 2012: RAWKS achieved a Mean Intersection-over-Union (mIOU) of 61.4%, performing competitively with state-of-the-art methods like ScribbleSup (63.1%) despite being a more unified, end-to-end approach.
- PASCAL CONTEXT: On this more challenging dataset with 60 classes, RAWKS (37.4% mIOU) outperformed ScribbleSup (36.1%).
The internal label propagator proved highly accurate, reaching over 80% mIOU on VOC when allowed to abstain from the most uncertain 6% of pixels.
Discussion and Key Insights
- Implicit Edge Learning: The model learns to find semantic boundaries even without direct edge supervision. It discovers that edges are useful because they prevent labels from "leaking" into the wrong areas during the random walk.
- Joint Optimization as Regularization: Training the propagator and the predictor together helps prevent overfitting. On PASCAL CONTEXT, the RAWKS model actually performed better than a model trained on dense ground truth, suggesting the joint task acts as a powerful regularizer.
- Adaptive Pixel-Based Approach: Unlike methods relying on fixed superpixels, RAWKS is pixel-based and adaptive, refining its understanding of boundaries as it processes more data.
Limitations and Future Work
Solving the random-walk linear system is computationally expensive, requiring the authors to perform propagation at 1/4th the original image resolution. This can lead to missing fine details. Additionally, solving the sparse linear system took approximately 800ms per image on a CPU. Future work involves moving to a GPU-based solver to increase speed and resolution, as well as incorporating other weak signals like bounding boxes to further constrain the random-walk process.
Summary updated