[Paper Review] Segment Anything Model (SAM) Enhanced Pseudo Labels for Weakly Supervised Semantic Segmentation
This paper proposes SEPL, a simple method that uses CAM-derived pseudo-labels as seeds to select and union SAM masks, producing class-aware and object-aware pseudo-labels that consistently improve WSSS performance on VOC 2012 and MS COCO 2014.
Weakly supervised semantic segmentation (WSSS) aims to bypass the need for laborious pixel-level annotation by using only image-level annotation. Most existing methods rely on Class Activation Maps (CAM) to derive pixel-level pseudo-labels and use them to train a fully supervised semantic segmentation model. Although these pseudo-labels are class-aware, indicating the coarse regions for particular classes, they are not object-aware and fail to delineate accurate object boundaries. To address this, we introduce a simple yet effective method harnessing the Segment Anything Model (SAM), a class-agnostic foundation model capable of producing fine-grained instance masks of objects, parts, and subparts. We use CAM pseudo-labels as cues to select and combine SAM masks, resulting in high-quality pseudo-labels that are both class-aware and object-aware. Our approach is highly versatile and can be easily integrated into existing WSSS methods without any modification. Despite its simplicity, our approach shows consistent gain over the state-of-the-art WSSS methods on both PASCAL VOC and MS-COCO datasets.
Motivation & Objective
- Motivate improving pseudo-label quality in WSSS by making them object-aware, not just class-aware.
- Leverage the Segment Anything Model (SAM) to inject precise object boundaries into pseudo-labels.
- Develop a lightweight, plug-and-play SEPL approach that requires no modification to existing WSSS methods.
- Demonstrate improvements across standard benchmarks (PASCAL VOC 2012 and MS COCO 2014) using existing WSSS baselines.
Proposed method
- SEPL takes CAM-derived pseudo-labels for each class as seeds and a collection of SAM masks for the image.
- Masks are assigned to the class with the largest overlap with CAM pseudo-labels (mask assignment).
- Masks are then selected based on two overlap metrics: o_s (fraction of the mask overlapping the pseudo-label) and o_p (fraction of the pseudo-label overlapped by the mask).
- A mask is kept if o_s > 0.5 or o_p > 0.85; otherwise, initial CAM pseudo-labels are retained if no SAM masks apply.
- The final enhanced pseudo-label for a class is obtained by OR-merging the selected masks and assigning the class label to the nonzero regions.
- SEPL is designed to be easily integrated into existing WSSS pipelines without modifying the underlying methods.
![Figure 1 : Illustration of how SAM addresses partial and false activation on PASCAL VOC 2012 train set: (A) original images; (B) pseudo-labels generated by a SOTA image-level WSSS method, CLIMS [ 50 ] ; (C) masks from SAM; (D) SAM enhanced pseudo-labels; (E) ground-truth labels.](https://ar5iv.labs.arxiv.org/html/2305.05803/assets/figures/fig1_update1.png)
Experimental results
Research questions
- RQ1Can class-agnostic SAM masks, when guided by class-aware CAM pseudo-labels, produce higher-quality, object-aware pseudo-labels for WSSS?
- RQ2Do SAM-enhanced pseudo-labels lead to measurable improvements in downstream semantic segmentation trained with these labels on VOC 2012 and COCO 2014?
- RQ3How robust is SEPL across diverse baseline WSSS methods and datasets?
- RQ4What are the failure modes of SEPL and how can they be mitigated?
Key findings
- SEPL consistently improves pseudo-label quality across multiple state-of-the-art WSSS baselines on VOC 2012 and COCO 2014.
- Training a DeepLab V2 (ResNet-101) with SEPL-enhanced pseudo-labels yields higher IoU than using original pseudo-labels across several baselines (examples include Recurseed, L2G, CLIPES, RCA, EPS, CLIMS, TransCAM, PPC+EPS, PPC+SEAM, SIPE, PuzzleCAM).
- On VOC 2012 train, SEPL achieves an average gain of 5.33% in pseudo-label quality over eleven baselines; on MS COCO 2014 train, the average gain is 3.12%.
- SEPL demonstrates improvements without requiring changes to existing WSSS methods, highlighting its versatility and practicality.
- The study is the first to explore applying SAM in the WSSS context and suggests potential for broader use of segmentation foundation models in CV tasks.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.