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

Learning structure-aware semantic segmentation with image-level supervision

Jiawei Liu, Jing Zhang, Yicong Hong, Nick Barnes · DOI

TL;DR

This paper tackles the challenge of semantic segmentation using only image-level labels, a significantly weaker form of supervision than pixel-level annotations. They propose a "smoothing branch" that leverages semantic boundary information to create more structured and consistent class activation maps (CAMs), leading to improved segmentation accuracy.

What Problem Does This Paper Address?

Semantic segmentation, the task of assigning a class label to every pixel in an image, typically requires extensive pixel-level annotations. These annotations are costly and time-consuming to create. To overcome this, researchers have explored weakly supervised semantic segmentation (WSSS) methods that use less precise labels, such as image-level tags. A common approach in image-level WSSS is to generate Class Activation Maps (CAMs) from a classification network and then use these CAMs as pseudo-labels for training a segmentation model. However, standard CAMs often highlight only the most discriminative parts of an object, leading to incomplete localization and inconsistent activation scores within the same object. This "lost structure information" limits the effectiveness of CAMs as pseudo-labels, resulting in deteriorated segmentation performance, especially around object boundaries. This paper aims to address this limitation by generating more structured and consistent CAMs.

Methods

The core of the proposed method is a Smoothing Branch (SB) that augments an existing WSSS baseline model (specifically, SEAM [38]). The SB introduces two key components:

  1. Semantic Boundary Detection Module (SBDM): This module aims to make the feature maps of the baseline model "structure-aware." It uses feature maps from different levels of the backbone network, along with Canny edge information from the input image, to predict semantic boundaries. This prediction is trained using a cross-entropy loss against preprocessed semantic boundaries derived from the final segmentation results.
  2. Semantic Boundary-Guided Smoothness Loss: This loss function is designed to enforce consistency within object regions and sharp contrasts at boundaries. Unlike traditional smoothness losses that might suppress structure information, this loss uses the predicted semantic boundary to guide the smoothing process. It encourages high activation scores within the object area while penalizing gradients across semantic boundaries. This is achieved by combining first-order and second-order derivatives of the class activation scores, weighted by the semantic boundary response.

The overall loss function for training the model is a combination of the baseline model's loss, the SBDM's cross-entropy loss for boundary prediction, and the proposed semantic boundary-guided smoothness loss.

Datasets

  • PASCAL VOC 2012: This dataset is used for training and evaluation. The paper utilizes the standard split, including 1,464 training images, 1,449 validation images, and 1,456 test images. They also mention using an augmented training set with 10,582 images.
  • ImageNet: Mentioned in the context of comparing Image Occupancy Percentages (IOP) between PASCAL VOC and ImageNet, highlighting potential differences in class distributions and object sizes that can affect segmentation performance.

Key Insights and Ideas

  • Structure is Key: The paper strongly argues that the "lost structure information" in standard CAMs is a critical bottleneck for effective image-level WSSS. Simply expanding CAMs without considering object structure leads to suboptimal results.
  • Semantic Boundaries as Guides: Using predicted semantic boundaries, derived from the segmentation output itself (avoiding external supervision), is a novel way to inject structural awareness into the CAM generation process.
  • Smoothness with a Purpose: The proposed smoothness loss is not just about making things smooth; it's about making them smooth within objects and sharp at boundaries, guided by the learned semantic structure. This is a crucial distinction from generic smoothness priors.
  • Self-Contained Supervision: The method cleverly avoids explicit ground truth for boundaries by deriving them from the model's own segmentation output, making it truly weakly supervised.

Key Results

  • Improved CAM Quality: Qualitative results (Fig. 1 and Fig. 3) show that the proposed method generates CAMs that are more complete, cover larger portions of objects, and exhibit less spurious activation outside object boundaries compared to the baseline.
  • State-of-the-Art Performance: The paper reports achieving state-of-the-art results on the PASCAL VOC 2012 dataset for image-level WSSS.
  • Quantitative Gains:
    • The proposed method ("Ours") achieved a mean Intersection-over-Union (mIoU) of 57.32% (Train) / 55.24% (Val), outperforming the baseline (CAM+SEAM) which achieved 55.41% (Train) / 52.54% (Val).
  • When used with AffinityNet for random walk post-processing, the proposed method achieved 63.01% (Val) mIoU, a significant improvement over the baseline's 60.08% (Val).
  • On the PASCAL VOC 2012 test set, the method achieved 66.7% mIoU, surpassing previous state-of-the-art methods.

Limitations and Future Work

  • Failure Cases: The paper acknowledges that the method can still fail on certain classes, particularly those with complex shapes or where the initial localization is heavily biased towards specific parts (e.g., dining table, cow, dog). This is illustrated in Fig. 4.

  • Dependency on Initial Localization: While improved, the method still relies on the initial CAMs from the baseline. If the initial localization is severely flawed, the smoothing branch might struggle to correct it entirely.

  • Future Work: The paper implicitly suggests that further exploration of how to better handle challenging classes and improve the robustness of the semantic boundary prediction could be fruitful. The authors also highlight that their improvements are achieved without additional computational cost during inference, which is a significant advantage.

Summary updated

BibTeX
@inproceedings{liu2021learning,
  author = {Jiawei Liu and Jing Zhang and Yicong Hong and Nick Barnes},
  title = {{Learning structure-aware semantic segmentation with image-level supervision}},
  booktitle = {IJCNN},
  year = {2021},
  doi = {10.1109/ijcnn52387.2021.9533846},
}
Figure