Abstract
Semantic segmentation is a cornerstone of computer vision, yet its progress is often hindered by the prohibitive cost of dense pixel-wise labeling. Weakly Supervised Semantic Segmentation (WSSS) using scribbles offers a cost-effective alternative, but research has been bottlenecked by a reliance on limited datasets like PascalVOC. This paper introduces an automated algorithm for generating high-quality, realistic synthetic scribbles and presents four new benchmark datasets: s4Pascal, s4Cityscapes, s4KITTI360, and s4ADE20K. Our evaluation reveals that while current WSSS models perform well on simpler datasets, they face significant challenges in complex, real-world urban scenes, highlighting a critical performance gap.
Introduction
Semantic segmentation—the task of assigning a class label to every pixel in an image—is vital for applications ranging from autonomous driving to medical diagnostics. However, the creation of "dense" ground truth labels is labor-intensive. WSSS aims to mitigate this by utilizing sparse annotations, such as scribbles, which are significantly faster to produce.
Despite the promise of scribble-supervised learning, the field has suffered from a lack of diverse data. Most existing research focuses on PascalVOC, a dataset characterized by large, centered objects that do not represent the complexity of real-world environments. This paper addresses this gap by providing a framework to generate realistic scribbles at scale and benchmarking state-of-the-art models across diverse scenarios.
Methodology: Automated Scribble Generation
To facilitate large-scale benchmarking, we developed an algorithm to automatically generate synthetic scribble labels that mimic human annotation patterns. The process ensures that scribbles are both realistic and effective for training:
- Preprocessing: Masks are separated by class and instance. Size-dependent morphological erosion is applied to keep scribbles away from object boundaries, reflecting human tendency to annotate the interior of objects.
- Polynomial Fitting: The algorithm identifies the object's center of mass and samples edge points to find the "farthest pair." A second-order polynomial is then fitted through these points.
- Refinement: To introduce natural variance, additional points are sampled to fit a fourth-order polynomial, creating complex, human-like curves.
- Validation: A hard constraint ensures the final scribble never crosses class boundaries.
The "Scribbles for All" (s4) Benchmarks
We introduce four new "s4" datasets generated from established dense segmentation benchmarks:
- s4Pascal: A synthetic version of Pascal VOC 2012, used to validate the algorithm against manual labels.
- s4Cityscapes: Focuses on urban driving with diverse object scales and complex boundaries.
- s4KITTI360: Provides high-resolution urban scene complexity.
- s4ADE20K: A massive dataset with 150 semantic classes, testing fine-grained segmentation limits.
Experimental Results and the "Pascal Trap"
Our experiments yield several key insights into the current state of WSSS:
Synthetic vs. Manual Labels
Statistically and functionally, our algorithmically generated scribbles are nearly identical to human-drawn ones. Models like SASformer trained on s4Pascal achieved 79.0 mIoU, nearly matching the 79.5 mIoU achieved on manual labels, validating the utility of our synthetic approach.
The Performance Gap
We identify a phenomenon we call the "Pascal Trap." On the relatively simple PascalVOC dataset, scribble-supervised models reach approximately 91% of the performance of fully supervised models. However, on complex datasets like Cityscapes, this relative performance drops to ~80%. This reveals that current WSSS methods struggle with object-to-object boundaries and small instances (e.g., poles or traffic signs) in cluttered scenes.
Robustness to Label Density
Ablation studies on scribble length showed varying robustness among architectures. Methods like Tree Energy Loss (TEL) remained effective even when scribbles were reduced to 10% of their original length, whereas transformer-based models like SASformer showed higher sensitivity to label density.
Conclusion
"Scribbles for All" provides the tools and benchmarks necessary to move WSSS research beyond the limitations of PascalVOC. While synthetic scribbles are a viable proxy for manual labels, the significant performance gap on complex datasets like Cityscapes and ADE20K indicates that current models are not yet ready for high-stakes real-world applications. Future work should focus on improving boundary refinement and small-object handling in these challenging environments.
Summary updated