Abstract
Weakly Supervised Semantic Segmentation (WSSS) aims to reduce the burden of pixel-level annotation by training models using only image-level labels. While recent approaches leverage the vision-language model CLIP to generate initial Class Activation Maps (CAMs), they often suffer from semantic misalignment and spatial bleeding. This paper introduces Semantic and Spatial Rectification (SSR), a framework that bridges the cross-modal gap through prototype alignment and filters background noise using superpixel-guided priors. SSR achieves state-of-the-art results on PASCAL VOC and MS COCO, demonstrating significant improvements in both semantic accuracy and boundary precision.
Introduction
The primary challenge in WSSS is generating high-quality pseudo-labels from sparse image-level annotations. CLIP-based methods have shown promise but face two critical "over-activation" issues:
- Semantic Misalignment: The "modality gap" between abstract text semantics and low-level image patterns causes CLIP to confuse similar foreground objects (e.g., misidentifying a chair as a sofa).
- Spatial Bleeding: During refinement, noisy affinity matrices in Vision Transformers (ViTs) cause attention to leak into background regions, blurring object boundaries.
SSR addresses these challenges by rectifying the semantic space and the spatial attention mechanisms simultaneously.
Methodology
Cross-Modal Prototype Alignment (CMPA)
To resolve semantic confusion, SSR introduces CMPA. Instead of relying on raw CLIP features, the framework projects image and text features into a shared embedding space. It employs K-means clustering to generate image and text prototypes, which are then optimized via a contrastive loss. This process pulls matching cross-modal prototypes together while pushing mismatched ones apart, effectively closing the modality gap and enhancing inter-class discrimination.
Superpixel-Guided Correction (SGC)
To combat spatial bleeding, SSR utilizes Superpixel-Guided Correction (SGC). By applying the SLIC superpixel clustering algorithm, the model generates structural priors that serve as a binary mask. This mask filters the ViT's affinity matrix, zeroing out connections to non-target background regions. Furthermore, SSR fuses the global semantic attention of CLIP with the fine-grained local attention of DINO, creating a robust, noise-filtered affinity matrix for CAM refinement.
Key Results and Discussion
SSR sets a new benchmark for single-stage WSSS methods. On the PASCAL VOC 2012 validation set, it achieves an mIoU of 79.5%, and 50.6% on MS COCO 2014. Notably, SSR's initial CAM seeds on VOC reach 78.7% accuracy, outperforming previous state-of-the-art models like ExCEL and VPL.
Qualitative analysis (as seen in the figure above) reveals that SSR produces significantly sharper object boundaries and less background noise than baseline CLIP-based methods. By combining high-level semantic alignment with low-level structural priors, SSR reaches 97.4% of the performance of fully-supervised segmentation models on the VOC dataset.
Conclusion
The SSR framework demonstrates that the limitations of CLIP in WSSS—specifically semantic confusion and spatial bleeding—can be effectively mitigated through targeted rectification. By aligning cross-modal prototypes and enforcing spatial constraints via superpixels, SSR provides a powerful and efficient path toward high-fidelity weakly supervised segmentation.
Summary updated