NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Exploiting shape cues for weakly supervised semantic segmentation

Sungpil Kho, Pilhyeon Lee, Wonyoung Lee, Minsong Ki, Hyeran Byun · DOI · OpenReview

TL;DR

This paper tackles the challenge of semantic segmentation using only image-level labels, a significantly cheaper annotation process. They propose a novel method that leverages "shape cues" to overcome the limitations of existing techniques, leading to more comprehensive and boundary-aligned segmentation masks. Their approach achieves state-of-the-art results on the PASCAL VOC 2012 benchmark.

What Problem Does This Paper Address?

Semantic segmentation, the task of assigning a class label to every pixel in an image, is crucial for many applications like autonomous driving and medical imaging. However, obtaining pixel-level annotations is extremely labor-intensive and expensive. Weakly supervised semantic segmentation (WSSS) aims to alleviate this by using only image-level labels (e.g., "this image contains a cat").

A common approach in WSSS is to generate "pseudo masks" from Class Activation Maps (CAMs). CAMs, however, tend to focus on small, discriminative parts of an object due to the texture bias inherent in Convolutional Neural Networks (CNNs). This results in incomplete segmentation masks that don't cover the entire object and often have inaccurate boundaries. Existing multi-stage methods to refine these masks are computationally expensive and time-consuming. This paper aims to create more comprehensive and accurate pseudo masks in a single-stage, efficient framework.

Methods

The core of the proposed method lies in two main components:

  • Shape-Aware Segmentation Network: This network is designed to explicitly leverage shape information. They hypothesize that CNNs are biased towards texture, leading to localized CAMs. By extracting "shape-biased features" and using them as "shape cues" during the decoding process, they encourage the network to generate masks that are not only comprehensive but also well-aligned with object boundaries.
  • Shape Cue Module (SCM): This module is responsible for extracting shape-related features. It works by intentionally erasing texture information from the encoder's feature maps. This is achieved by identifying "texture regions" (regions with high similarity to their neighbors) and stochastically zeroing out their corresponding neurons. The probability of dropping information is inversely proportional to the "self-information" of a local patch, meaning less informative (texture-rich) regions are more likely to have their information erased, leaving shape-biased features.
  • Semantics-Augmented Pixel Refinement (SPR): This is an online refinement method used to generate high-quality pseudo masks. Unlike previous methods that rely solely on color information (RGB) or local affinities, SPR incorporates both color and class semantics. It uses a joint kernel function that balances color and semantic affinities to refine initial predictions, leading to more accurate pseudo masks that are then used to supervise the segmentation network in an end-to-end fashion.

Datasets

The primary dataset used for training and evaluation is PASCAL VOC 2012. The authors also mention using the SBD (Semantic Boundaries Dataset) to augment the training set, which is a common practice in the field. No new benchmarks were introduced.

Key Insights and Ideas

  • The Texture Bias-Shape Complementarity: The paper highlights a crucial insight: CNNs' strong texture bias, which limits CAMs, is actually complementary to shape information. By explicitly combining these two, one can achieve more complete object representations.
  • Shape Cues for Comprehensive Masks: The core idea of using "shape cues" derived from shape-biased features is novel and directly addresses the "locality" problem of CAMs. This leads to masks that cover the entire object, not just discriminative parts.
  • Online Refinement with Semantics: Integrating class semantics into the pixel refinement process (SPR) is a significant improvement over purely color-based methods, leading to more robust and accurate pseudo masks.
  • Single-Stage Efficiency: The ability to achieve state-of-the-art results in a single-stage, end-to-end training framework is a major advantage, reducing training time and complexity compared to multi-stage approaches.

Key Results

  • State-of-the-Art Performance: The proposed method achieves new state-of-the-art results on the PASCAL VOC 2012 benchmark in both single-stage and multi-stage settings.
  • Single-stage: Achieves a significant margin over existing single-stage approaches, reaching 66.4% mIoU on the validation set and 66.8% on the test set.
  • Multi-stage: When adopted in a simple two-stage pipeline, it outperforms previous multi-stage methods, achieving 70.5% mIoU on the test set.
  • Boundary Alignment: The method demonstrates superior boundary alignment, as evidenced by the boundary IoU metric, where it outperforms existing methods even without CRF post-processing.
  • Qualitative Improvements: Visualizations show that the proposed method produces more comprehensive segmentation masks that closely follow object outlines, even for challenging cases with complex backgrounds or cluttered objects.

Limitations and Future Work

  • Dependence on Shape Information Quality: The authors acknowledge that the performance of their model might depend on the quality of the shape information extracted. Noisy shape information could potentially mislead the model.
  • Inflexibility in Balancing Affinities: The SPR method uses a fixed balancing parameter ($\alpha$) for color and semantic affinities. The authors suggest that different object classes or even instances within a class might benefit from different optimal balancing weights.
  • Future Work: The authors propose exploring Vision Transformers (ViTs) for shape information extraction, as they have shown a greater focus on object shapes compared to CNNs. They also suggest investigating adaptable or learnable balancing weights for the SPR module to further improve pseudo mask generation.

Summary updated

BibTeX
@misc{kho2022exploiting,
  author = {Sungpil Kho and Pilhyeon Lee and Wonyoung Lee and Minsong Ki and Hyeran Byun},
  title = {{Exploiting shape cues for weakly supervised semantic segmentation}},
  year = {2022},
  eprint = {2208.04286},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.04286},
}
Figure