Abstract
Most recent semantic segmentation methods train deep convolutional neural networks with fully annotated masks requiring pixel-accuracy for good quality training. Common weakly-supervised approaches generate full masks from partial input (e.g. scribbles or seeds) using standard interactive segmentation methods as preprocessing. But, errors in such masks result in poorer training since standard loss functions (e.g. cross-entropy) do not distinguish seeds from potentially mislabeled other pixels. Inspired by the general ideas in semi-supervised learning, we address these problems via a new principled loss function evaluating network output with criteria standard in "shallow" segmentation, e.g. normalized cut. Unlike prior work, the cross entropy part of our loss evaluates only seeds where labels are known while normalized cut softly evaluates consistency of all pixels. We focus on normalized cut loss where dense Gaussian kernel is efficiently implemented in linear time by fast Bilateral filtering. Our normalized cut loss approach to segmentation brings the quality of weakly-supervised training significantly closer to fully supervised methods.
Introduction
Deep learning for semantic segmentation typically requires thousands of images with pixel-perfect manual labels, a process that is both time-consuming and expensive. To mitigate this, researchers often turn to weak supervision, such as "scribbles" (simple lines drawn over objects).
Traditional approaches use these scribbles to generate "fake" full masks via algorithms like Graph Cuts, then train a CNN on these proposals. However, this often leads to a "garbage in, garbage out" scenario where the network overfits to the errors present in the generated masks. This paper proposes a different path: integrating the principles of high-quality segmentation directly into the network's loss function, bypassing the need for unreliable intermediate masks.
Methodology: The Normalized Cut Loss
The core contribution is a joint loss function consisting of two primary terms:
- Partial Cross Entropy (pCE): This term computes standard cross-entropy loss only on the pixels explicitly labeled by the user (the scribbles). It provides the network with "ground truth" anchors.
- Normalized Cut (NC) Loss: This term acts as a regularizer for the entire image, including unlabeled pixels. Based on classical clustering principles, it encourages the network to assign identical labels to visually similar pixels (based on color and spatial proximity) while separating dissimilar ones.
Computational Efficiency
A major challenge with "dense" Normalized Cut is its $O(N^2)$ complexity, where $N$ is the number of pixels. To make this feasible for CNN training, the authors utilize fast bilateral filtering (specifically via the permutohedral lattice). This optimization reduces the complexity to linear time ($O(N)$), allowing the NC loss gradient to be computed efficiently during every backpropagation step. Despite the high-order nature of the loss, this implementation adds only about 0.1 seconds of overhead per image during training.
Key Results and Insights
The researchers evaluated their approach on the PASCAL VOC 2012 and MSRA10K datasets. A significant finding was that training on only the scribbles (pCE) already achieves roughly 85% of the accuracy of full supervision, suggesting that ignoring uncertain pixels is often superior to training on erroneous "fake" labels.
As shown in the figure above, the addition of the NC loss (f) significantly improves boundary adherence and internal consistency compared to using pCE alone (e). On PASCAL VOC 2012, a ResNet-101 model using NC loss with scribbles achieved an mIOU of 74.5%, coming remarkably close to the 76.8% achieved with full pixel-accurate supervision. This method also outperformed previous state-of-the-art scribble-based techniques like ScribbleSup.
Conclusion
By treating segmentation as a differentiable clustering problem, the Normalized Cut loss allows CNNs to learn effectively from minimal supervision. This "one-pass" training approach eliminates the need for complex iterative proposal generation. Future work may extend this principled loss framework to other forms of weak supervision, such as bounding boxes or image-level tags, and explore applying similar clustering regularizers to intermediate feature maps.
Summary updated