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

TL;DR

This paper tackles the "locality" problem in weakly supervised semantic segmentation (WSSS) by linking it directly to the texture bias of convolutional neural networks (CNNs). By introducing a single-stage framework that injects shape cues and applies a novel semantics-augmented pixel refinement, the authors generate comprehensive, boundary-aligned pseudo-masks using only image-level labels. The resulting model sets a new state-of-the-art on the PASCAL VOC 2012 benchmark while remaining highly training-efficient.

What Problem Does This Paper Address?

Semantic segmentation is incredibly useful for applications like autonomous driving and scene understanding, but training these models typically requires expensive, pixel-wise annotations. Weakly Supervised Semantic Segmentation (WSSS) attempts to cut costs by training models using cheap image-level labels (e.g., "this image contains a cat").

The standard pipeline uses Class Activation Maps (CAMs) to locate objects and generate "pseudo-masks" to train the segmentation network. However, CAMs suffer from locality: because they are trained on a classification loss, they only highlight the most discriminative parts of an object (like a cat's face) rather than its full body.

The authors make a key connection: this locality is caused by the inherent texture bias of CNNs. CNNs naturally look for texture patterns rather than global shapes. To fix this, the paper proposes a way to explicitly extract and leverage shape cues to force the network to see the whole object and align its predictions with actual object boundaries.

Figure 1: Visualization of the effectiveness of our method. Compared to the vanilla CAM that pays attention to only local parts (e.g., faces), our method is able to produce more comprehensive activation maps by exploiting object shape cues.

Methods

The authors propose an end-to-end, single-stage framework consisting of two main components built on top of a DeepLabV3 architecture:

Figure 2: Overview of the proposed framework. It consists of the shape-aware segmentation network and the self-supervised training with pseudo masks.
  1. Shape Cue Module (SCM): To extract shape features, the SCM intentionally erases texture information. It calculates the Shannon entropy (self-information) of local image patches. Texture regions, which are highly repetitive and similar to their neighbors, receive low self-information scores. The module stochastically zeroes out these low-information neurons, forcing the network to rely on unique, high-information boundary/shape features. These shape-biased features are then injected back into the decoder.
  2. Semantics-augmented Pixel Refinement (SPR): Traditional online refinement methods rely solely on RGB color affinities to smooth out masks. SPR improves on this by combining both color intensity and class semantic scores to compute local pixel affinities, ensuring that mask propagation doesn't accidentally bleed into different objects of a similar color.

Additionally, the model utilizes a dual-loss strategy for self-supervised training: a standard pixel-wise cross-entropy loss on confident pseudo-mask pixels, and a region-wise loss that enforces structural consistency by penalizing differences between a pixel and its predicted non-boundary neighbors using KL divergence.

Datasets

The method was evaluated on the widely used PASCAL VOC 2012 benchmark. Following standard practice, the training set was augmented with the Semantic Boundaries Dataset (SBD), resulting in a total of 10,582 training images. The model's performance was evaluated using both standard mean Intersection-over-Union (mIoU) and Boundary IoU to specifically measure edge alignment.

Key Insights and Ideas

  • The Texture-Locality Link: The core "aha!" moment of the paper is recognizing that CAMs fail to cover entire objects precisely because CNNs are over-indexed on texture. By systematically dropping texture features, the network is forced to learn robust shape representations.
  • Synergy Between Shape and Semantics: Injecting shape cues during the decoding process yields a much better initial mask layout. This superior layout directly benefits the SPR module, creating a virtuous cycle that produces highly accurate pseudo-masks online.
  • Single-Stage Efficiency: Unlike dominant multi-stage WSSS methods that require training separate affinity networks offline, this method achieves superior boundary alignment within a single, streamlined training pass.

Key Results

The proposed method achieved outstanding results on PASCAL VOC 2012:

  • Single-Stage Performance: It achieved 66.4% mIoU on the validation set and 66.8% mIoU on the test set (with CRF post-processing), outperforming the previous best single-stage methods (like SSSS and AA&LR) by significant margins.
  • Superior Boundaries: In Boundary IoU evaluations (which strictly measure edge accuracy), the model scored 46.6% (w/o CRF), outperforming competing methods even when they used CRF.
  • Training Efficiency: The entire single-stage pipeline trains in just 372 minutes on two GTX 1080Ti GPUs, making it faster and less complex than multi-stage pipelines that take up to 484 minutes and require multi-scale CAM generation.

Limitations and Future Work

  • Dependence on Shape Quality: The model's performance is bound to the quality of the extracted shape information. If the shape cues are noisy or corrupted by complex backgrounds, it can mislead the segmentation network.
  • Inflexible Hyperparameters: The balancing parameter ($\alpha$) that weighs color vs. semantic affinity in the SPR module is currently fixed. The authors note that making this parameter adaptive per object class or instance could improve results.
  • Moving to Transformers: Since Vision Transformers (ViTs) have been shown to possess a stronger inherent shape bias than CNNs, the authors suggest exploring ViT backbones as a promising direction for future WSSS research.

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