Abstract
Semantic segmentation is a critical computer vision task, yet the high cost of pixel-level annotation remains a significant barrier. Weakly-supervised semantic segmentation (WSSS) using scribbles offers a cost-effective alternative. However, existing methods often rely on local label diffusion, leading to "short-sighted" predictions that fail to capture the full extent of objects. We propose the Class-Driven Scribble Promotion (CDSP) framework, which treats scribbles as image-level class labels to generate global pseudo-labels. By integrating a Localization Rectification Module (LoRM) and a Distance Entropy Loss (DEL), CDSP achieves state-of-the-art performance and exhibits exceptional robustness to degraded annotations.
Introduction
The manual effort required for full semantic segmentation—labeling every pixel in an image—is immense, often exceeding an hour per image. Scribble-based WSSS reduces this burden by using sparse lines. Traditional approaches typically employ local diffusion, spreading labels to adjacent pixels with similar appearances. This strategy is inherently limited: it often misses disconnected object parts or fails entirely if the scribble is minimal or missing for some instances.
The core insight of this work is that a scribble is more than a set of spatial coordinates; it is a definitive indicator of a class's presence. By leveraging this "hidden" class label, we can move from local diffusion to global localization.
Methodology: Class-Driven Scribble Promotion
The CDSP framework operates in two distinct stages to bridge the gap between sparse scribbles and dense segmentation masks.
Stage 1: Global Pseudo-label Generation
Instead of immediate segmentation, the model first treats scribbles as image-level tags. A classifier is trained to produce Class Activation Maps (CAMs). These maps provide a global, albeit coarse, estimation of object locations, ensuring that even areas not directly touched by a scribble are considered.
Stage 2: Refined Segmentation Training
The final segmentor is trained using a combination of high-precision scribbles and high-coverage CAM-based pseudo-labels. To handle the inherent noise in pseudo-labels, two novel components are introduced:
- Localization Rectification Module (LoRM): LoRM operates in the feature space. It identifies pixels that are likely mislabeled (e.g., a foreground pixel labeled as background) by comparing their features to known foreground regions. It then "rectifies" these representations, forcing the model to learn consistent features for the same object class across the image.
- Distance Entropy Loss (DEL): Recognizing that pixels further from ground-truth scribbles are less certain, DEL dynamically weights the loss. It assigns higher confidence to pixels near human-drawn scribbles and lower confidence to pixels near the uncertain boundaries of pseudo-labels.
Experiments and Results
The proposed method was evaluated on the ScribbleSup dataset (based on PASCAL VOC 2012). CDSP achieved a 75.9% mIoU, surpassing recent state-of-the-art methods like TEL and AGMM without requiring post-processing steps like Conditional Random Fields (CRF).
Robustness to Sparse Annotations
A key strength of CDSP is its resilience to poor annotation quality. The authors tested "Scribble-shrink" (reducing scribbles to points) and "Scribble-drop" (removing scribbles for some objects). While baseline methods suffered significant performance drops (up to 10%), CDSP's performance remained stable with less than a 1% decrease, demonstrating its ability to recover object extent from minimal cues.
Conclusion
The CDSP framework demonstrates that treating scribbles as class labels enables a global perspective that overcomes the limitations of local diffusion. Through feature-level rectification (LoRM) and uncertainty-aware loss (DEL), the model achieves high accuracy and remarkable robustness. Future work may explore extending this class-driven logic to other forms of weak supervision, such as bounding boxes or point clicks, to further generalize the approach.
Summary updated