Self-supervised Image-specific Prototype Exploration for Weakly Supervised Semantic Segmentation

Qi Chen, Lingxiao Yang, Jianhuang Lai, Xiaohua Xie

Introduction

Weakly Supervised Semantic Segmentation (WSSS) is a critical area of research that aims to reduce the high cost of pixel-level annotation by training models using only image-level labels. While Class Activation Mapping (CAM) has long served as the foundational technique for generating pseudo-masks from these labels, it suffers from a persistent limitation: the "discriminative region" bias. Because classification models only need to identify the most salient features (e.g., a bird's beak rather than its entire body) to assign a label, the resulting localization maps are often incomplete.

This paper introduces SIPE (Self-supervised Image-specific Prototype Exploration), a framework designed to overcome this bias by shifting the focus from global class representations to image-specific prototypes. By enforcing consistency between these tailored prototypes and general class features, SIPE produces significantly more complete and accurate object masks.

The Problem: The Limitation of Global Class Centers

Standard CAM-based methods rely on a "class center"—a global, average representation of a category stored within the classifier's weights. This approach assumes a "one-size-fits-all" representation for every instance of a class. However, objects in the real world vary significantly in pose, lighting, and appearance. A global representation often fails to capture the unique characteristics of a specific object in a specific image, leading the model to default to the most common discriminative "hotspots" and ignoring the rest of the object's extent.

Methodology: The SIPE Framework

SIPE addresses the limitations of CAM through two primary innovations: Image-specific Prototype Exploration (IPE) and General-Specific Consistency (GSC) loss.

1. Image-specific Prototype Exploration (IPE)

Instead of relying on a static classifier, IPE generates custom prototypes for each individual image. This process involves two key steps:

  • Structure-aware Seed Locating: The model analyzes inter-pixel semantic correlations to identify clusters of pixels that share similar structural properties. By comparing these clusters with the initial CAM, the model identifies reliable "seed" regions for both the foreground objects and the background.
  • Background-aware Prototype Modeling: Using a backbone that fuses hierarchical features—combining low-level textures from shallow layers with high-level semantics from deep layers—the model extracts prototypes from the identified seeds. This is particularly effective for the background, which lacks a unified semantic definition and is often better characterized by low-level features like color and texture.

2. General-Specific Consistency (GSC) Loss

The GSC loss serves as a self-supervised signal that bridges the gap between the general classifier and the image-specific prototypes. It minimizes the discrepancy between the standard CAM (generated by the general classifier) and the IS-CAM (generated by the image-specific prototypes). This forces the network to refine its features so that both views agree, effectively pushing the general classifier to recognize the full extent of the object as identified by the specific prototype.

Experimental Results

The authors evaluated SIPE on two major benchmarks, PASCAL VOC 2012 and MS COCO 2014, achieving state-of-the-art results for WSSS using only image-level labels.

  • Localization Accuracy: On PASCAL VOC 2012, SIPE achieved a 58.6% mIoU for localization maps, a notable improvement over previous methods like ECS (56.6%).
  • Segmentation Performance: When these localization maps were used to train a DeepLabV2 segmentation model, SIPE reached 68.8% mIoU on the VOC validation set and 69.7% on the test set.
  • Scalability on MS COCO: On the more complex MS COCO dataset, SIPE achieved 43.6% mIoU, representing a significant leap over the previous best of 36.4% (CSE).

Qualitative analysis confirms that SIPE provides much cleaner background separation and more consistent coverage of the entire object compared to baseline methods, which often only highlight small fragments of the target class.

Conclusion

SIPE demonstrates that the key to improving weakly supervised segmentation lies in moving beyond the "Platonic ideal" of a class and embracing the specific feature distributions of individual images. By using structure as a proxy for labels and hierarchical features to model the background, SIPE provides a robust mechanism for self-correcting localization maps. Future work may extend this concept of image-specific prototypes to other weakly supervised tasks, such as object detection and instance segmentation, where discriminative bias remains a significant challenge.

Summary updated

BibTeX
@inproceedings{chen2022self,
  author = {Qi Chen and Lingxiao Yang and Jianhuang Lai and Xiaohua Xie},
  title = {{Self-supervised Image-specific Prototype Exploration for Weakly Supervised Semantic Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure