Exploiting Inherent Class Label: Towards Robust Scribble Supervised Semantic Segmentation

Xinliang Zhang, Lei Zhu, Shuang Zeng, Hangzhou He, Ourui Fu, Zhengjian Yao, Zhaoheng Xie, Yanye LuarXiv 2025

Abstract

Scribble-based weakly supervised semantic segmentation leverages only a few annotated pixels as labels to train a segmentation model, presenting significant potential for reducing the human labor involved in the annotation process. This approach faces two primary challenges: first, the sparsity of scribble annotations can lead to inconsistent predictions due to limited supervision; second, the variability in scribble annotations, reflecting differing human annotator preferences, can prevent the model from consistently capturing the discriminative regions of objects, potentially leading to unstable predictions. To address these issues, we propose a holistic framework, the class-driven scribble promotion network (CSPNet), for robust scribble-supervised semantic segmentation. This framework not only utilizes the provided scribble annotations but also leverages their associated class labels to generate reliable pseudo-labels. Within the network, we introduce a localization rectification module to mitigate noisy labels and a distance perception module to identify reliable regions surrounding scribble annotations and pseudo-labels. In addition, we introduce new large-scale benchmarks, ScribbleCOCO and ScribbleCityscapes, accompanied by a scribble simulation algorithm that enables evaluation across varying scribble styles. Our method demonstrates competitive performance in both accuracy and robustness, underscoring its superiority over existing approaches.

The Challenge of Scribble Supervision

Semantic segmentation is a fundamental computer vision task that requires assigning a category label to every pixel. While fully supervised models achieve high accuracy, they rely on pixel-perfect ground truth masks, which are expensive and time-consuming to annotate. Scribble-based supervision offers a more efficient alternative, requiring only a few strokes per object. However, this efficiency comes at a cost.

Challenges in scribble-supervised segmentation: sparsity and randomness. CSPNet (d) leverages class labels for stability.

As illustrated in the figure above, scribble annotations present two major hurdles:

  1. Sparsity: The limited number of labeled pixels provides a weak signal, often resulting in fragmented or inconsistent object predictions.
  2. Randomness: Human annotators have subjective styles—some draw along boundaries, while others draw through the center. This variability makes it difficult for models to learn stable discriminative features.

Existing methods often employ self-training, where the model iteratively learns from its own predictions. This can lead to a "Matthew Effect," where errors are amplified over time, particularly for challenging object categories.

Methods: The CSPNet Framework

To overcome these challenges, we introduce the Class-driven Scribble Promotion Network (CSPNet). The core philosophy of CSPNet is to treat the high-level class label (e.g., "horse") as a stable anchor that remains constant regardless of the scribble's shape or position.

The two-stage CSPNet architecture: Stage 1 generates pseudo-labels via ToCo; Stage 2 performs segmentation with LoRM and DPM.

The framework operates in two distinct stages:

Stage 1: Robust Pseudo-Label Generation

Instead of relying solely on the sparse scribble geometry, Stage 1 utilizes a transformer-based model (ToCo) trained using both scribbles and image-level class labels. By incorporating the class label, the model gains a global context that helps it "fill in the gaps" left by sparse scribbles, producing dense and reliable pseudo-labels.

Stage 2: Segmentation with Refinement Modules

The second stage trains a standard segmentor (e.g., DeepLabV3+) using the generated pseudo-labels, enhanced by two novel modules:

  • Localization Rectification Module (LoRM): This module uses feature-space similarity to correct noisy labels. It operates on the principle that pixels belonging to the same object class should have similar feature representations. By matching features, LoRM can "rectify" misclassified pixels near object boundaries.
  • Distance Perception Module (DPM): Recognizing that pseudo-labels are not perfectly accurate, DPM weights the loss based on spatial confidence. Pixels closer to the original human-drawn scribbles are given higher confidence, while those near the predicted boundaries of pseudo-labels are treated with more caution.

New Benchmarks and Robustness Testing

To rigorously evaluate scribble-supervised methods, we introduced two large-scale datasets:

  • ScribbleCOCO: Based on MS-COCO, this dataset is roughly eight times larger than previous benchmarks, providing a diverse set of natural images.
  • ScribbleCityscapes: A high-resolution urban scene dataset designed to test performance in complex, structured environments.

Furthermore, we developed a Scribble Simulation Algorithm that mimics various human annotation styles. This allows us to test a model's robustness against "scribble drop" (missing annotations) and "style shift" (different drawing patterns).

Key Results and Insights

CSPNet sets a new state-of-the-art across multiple benchmarks. On ScribbleCOCO, it achieved a mean Intersection over Union (mIoU) of 54.50%, outperforming previous leaders like TEL (52.78%). On ScribbleCityscapes, the lead was even more pronounced, with CSPNet reaching 58.91% mIoU compared to AGMM's 48.41%.

The framework's robustness is particularly noteworthy. In tests where 50% of the scribbles were removed, CSPNet's performance dropped by only 1.53%, whereas competing methods saw drops of nearly 5%. This stability confirms that leveraging class labels as anchors effectively mitigates the randomness of human input. Additionally, the model showed strong versatility by achieving 87.33% mIoU on the ACDC medical imaging dataset.

Conclusion

CSPNet demonstrates that the inherent class labels in scribbles are a powerful, yet often underutilized, source of supervision. By combining these labels with feature-space rectification and distance-aware confidence, we can build segmentation models that are both accurate and resilient to noisy human input. While the current two-stage process is effective, future research will focus on integrating these components into a more computationally efficient, single-stage end-to-end architecture.

Summary updated

BibTeX
@misc{zhang2025exploiting,
  author = {Xinliang Zhang and Lei Zhu and Shuang Zeng and Hangzhou He and Ourui Fu and Zhengjian Yao and Zhaoheng Xie and Yanye Lu},
  title = {{Exploiting Inherent Class Label: Towards Robust Scribble Supervised Semantic Segmentation}},
  year = {2025},
  eprint = {2503.13895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.13895},
}
Figure