Scribble-Supervised Semantic Segmentation with Prototype-based Feature Augmentation

Guiyang Chan, Pengcheng Zhang, Hai Dong, Shunhui Ji, Bainian ChenICML 2024

TL;DR

This paper introduces a novel framework for scribble-supervised semantic segmentation that uses "feature prototypes" to bridge the gap between sparse annotations and full-image masks. By extracting representative features from high-confidence regions and using them to augment the rest of the image via an attention mechanism, the authors achieve a new state-of-the-art (77.9% mIoU) on the PASCAL VOC 2012 benchmark.

The Challenge of Sparse Annotations

Semantic segmentation—the task of assigning a category label to every single pixel in an image—traditionally requires "dense" annotations. Creating these pixel-perfect masks is incredibly expensive and time-consuming. Scribble-based supervision has emerged as a popular, cost-effective alternative where annotators simply draw a few quick lines over the objects of interest.

The primary challenge is that scribbles are inherently sparse, leaving the vast majority of pixels unlabeled. Existing methods attempt to "propagate" information from the scribbles to the rest of the image. However, they often struggle with complex boundaries or fail to fully utilize the rich feature information present in pixels the model has already correctly identified. The authors of this paper aim to better utilize these "known" features to guide the classification of "unknown" pixels.

Proposed Method: Prototype-based Feature Augmentation (PFA)

Comparison of scribble-supervised segmentation frameworks, highlighting the proposed method (f) against prior approaches.

To address the limitations of standard label diffusion, the authors propose a Prototype-based Feature Augmentation (PFA) method. The core idea is to create "prototypes"—representative feature vectors for each object category—and use them to refine the model's internal representation of the image.

  1. Dual Prototype Extraction:
    • Local Prototypes: Extracted from high-confidence regions of the current image. These capture the specific appearance of an object in a single scene (e.g., the exact lighting on a specific car).
  2. Global Prototypes: Stored in a dynamically updated Prototype Memory Bank across the entire dataset. They provide a comprehensive "big picture" view of what a category looks like across different conditions.
  3. Feature Augmentation: The model employs an attention mechanism to compare the original feature map with these prototypes. It effectively asks: "Which parts of this unlabeled region look most like our 'ideal' prototype?" and enhances those features accordingly.
  4. Training Strategy: The system uses a Partial Cross-Entropy Loss (evaluating only the pixels covered by scribbles) alongside a Consistency Loss that ensures the model's predictions remain stable before and after feature augmentation.
  5. Efficient Backbone: The architecture utilizes a hierarchical Vision Transformer (Segformer/MiT-B1) as the encoder, proving more efficient than traditional ResNet backbones.

Key Insights

  • Semantic Similarity over Spatial Proximity: Instead of relying solely on spatial proximity (label diffusion), the model leverages semantic similarity in the feature space. If a pixel in a corner shares features with a "dog" prototype found in the center, it is classified as a dog, even if no scribble touched it.
  • Global vs. Local Synergy: Local prototypes help delineate specific details, while global prototypes prevent the model from being confused by occlusions or unusual lighting by providing a stable, dataset-wide reference.
  • The Importance of Filtering: During inference, the model lacks ground-truth labels to determine which prototypes to activate. The authors found that using a secondary multi-label classifier (like Q2L) to predict present classes significantly boosts performance by filtering out irrelevant prototypes.

Results & Performance

The primary benchmark used is the PASCAL VOC 2012 dataset, adapted for scribble-based supervision (21 categories across roughly 12,000 images).

  • State-of-the-Art Performance: The PFA method achieved 77.9% mIoU on the PASCAL VOC 2012 validation set. This outperforms the previous best method (TEL, 77.3%) and remarkably approaches the performance of models trained on full, expensive pixel-level masks (79.2%).
  • Efficiency: Thanks to the MiT-B1 backbone, the model achieves these results with significantly fewer parameters and lower computational cost (FLOPs) than ResNet-101 based competitors.
  • Qualitative Gains: Visualizations demonstrate that the model is vastly superior at capturing thin structures (like chair legs) and sharp boundaries that sparse scribbles typically miss.

Limitations and Future Directions

  • Inference Dependency: The method's inference performance relies heavily on accurately predicting which classes are present in the image. Any error in the initial multi-label classification can lead the prototype augmentation astray.
  • Initial Confidence: The system depends on the model's ability to find some high-confidence regions early in training to form the initial prototypes. If this "warm-up" phase fails, the resulting prototypes may be noisy.
  • Future Work: The authors suggest extending this prototype-based approach to multimodal tasks, potentially incorporating text descriptions to help form even more robust and generalized feature prototypes.

Summary updated

BibTeX
@inproceedings{chan2024scribble,
  author = {Guiyang Chan and Pengcheng Zhang and Hai Dong and Shunhui Ji and Bainian Chen},
  title = {{Scribble-Supervised Semantic Segmentation with Prototype-based Feature Augmentation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Q8uJyOwOsd},
}
Figure