Lune

CVPR2024Top-tier venue

From SAM to CAMs: Exploring Segment Anything Model for Weakly Supervised Semantic Segmentation

Hyeokjun Kweon, Kuk-Jin Yoon

Abstract

Weakly Supervised Semantic Segmentation (WSSS) aims to learn the concept of segmentation using image-level class labels. Recent WSSS works have shown promising results by using the Segment Anything Model (SAM), a foundation model for segmentation, during the inference phase. However, we observe that these methods can still be vulnerable to the noise of class activation maps (CAMs) serving as initial seeds. As a remedy, this paper introduces From-SAM-to-CAMs (S2C), a novel WSSS framework that directly transfers the knowledge of SAM to the classifier during the training process, enhancing the quality of CAMs itself. S2C comprises SAM-segment Contrasting (SSC) and a CAM-based prompting module (CPM), which exploit SAM at the feature and logit levels, respectively. SSC performs prototype-based contrasting using SAM's automatic segmentation results. It constrains each feature to be close to the prototype of its segment and distant from prototypes of the others. Meanwhile, CPM extracts prompts from the CAM of each class and uses them to generate classspecific segmentation masks through SAM. The masks are aggregated into unified self-supervision based on the confidence score, designed to consider the reliability of both SAM and CAMs. S2C achieves a new state-of-the-art performance across all benchmarks, outperforming existing studies by significant margins. The code is available at https://github.com/sangrockEG/S2C .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

17 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Segment Anything cites Learning Transferable Visual Models From Natural Language Supervision
  • Multi-class Token Transformer for Weakly Supervised Semantic Segmentation cites Reliability Does Matter: An End-to-End Weakly Supervised Semantic Segmentation Approach
  • Bootstrapping Video Semantic Segmentation Model via Distillation-assisted Test-Time Adaptation cites Segment Anything
  • Know Your Attention Maps: Class-specific Token Masking for Weakly Supervised Semantic Segmentation cites Multi-class Token Transformer for Weakly Supervised Semantic Segmentation
  • Know Your Attention Maps: Class-specific Token Masking for Weakly Supervised Semantic Segmentation cites Class Re-Activation Maps for Weakly-Supervised Semantic Segmentation
  • E-SAM: Training-Free Segment Every Entity Model cites Segment Anything
  • Weakly-Supervised Image Forgery Localization via Vision-Language Collaborative Reasoning Framework cites Learning Transferable Visual Models From Natural Language Supervision
  • ConformalSAM: Unlocking the Potential of Foundational Segmentation Models in Semi-Supervised Semantic Segmentation with Conformal Prediction cites Segment Anything
  • ConformalSAM: Unlocking the Potential of Foundational Segmentation Models in Semi-Supervised Semantic Segmentation with Conformal Prediction cites Learning Transferable Visual Models From Natural Language Supervision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers17

  1. Bootstrapping Video Semantic Segmentation Model via Distillation-assisted Test-Time AdaptationJihun Kim, Hoyong Kwon, Hyeokjun Kweon, Kuk-Jin YoonCVPR 2026 · 3 citations
  2. Know Your Attention Maps: Class-specific Token Masking for Weakly Supervised Semantic SegmentationJoëlle Hanna, Damian BorthICCV 2025 · 3 citations
  3. E-SAM: Training-Free Segment Every Entity ModelWeiming Zhang, Dingwen Xiao, Lei Chen, Lin WangICCV 2025 · 3 citations
  4. Weakly-Supervised Image Forgery Localization via Vision-Language Collaborative Reasoning FrameworkZiqi Sheng, Junyan Wu, Wei Lu, Jiantao ZhouAAAI 2026 · 3 citations
  5. ConformalSAM: Unlocking the Potential of Foundational Segmentation Models in Semi-Supervised Semantic Segmentation with Conformal PredictionDanhui Chen, Ziquan Liu, Chuxi Yang, Dan Wang et al.ICCV 2025 · 3 citations

Builds on35

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
  3. Multi-class Token Transformer for Weakly Supervised Semantic SegmentationLian Xu, Wanli Ouyang, Mohammed Bennamoun, Farid Boussaïd et al.CVPR 2022 · 275 citations
  4. Reliability Does Matter: An End-to-End Weakly Supervised Semantic Segmentation ApproachBingfeng Zhang, Jimin Xiao, Yunchao Wei, Mingjie Sun et al.AAAI 2020 · 227 citations
  5. Class Re-Activation Maps for Weakly-Supervised Semantic SegmentationZhaozheng Chen, Tan Wang, Xiongwei Wu, Xian-Sheng Hua et al.CVPR 2022 · 223 citations

Related papers

  1. Weakly Supervised Semantic Segmentation by Pixel-to-Prototype ContrastYe Du, Zehua Fu, Qingjie Liu, Yunhong WangCVPR 2022 · 175 citations
  2. Pseudo-mask Matters in Weakly-supervised Semantic SegmentationYi Li, Zhanghui Kuang, Liyang Liu, Yimin Chen et al.ICCV 2021 · 104 citations
  3. PSDPM: Prototype-based Secondary Discriminative Pixels Mining for Weakly Supervised Semantic SegmentationXinqiao Zhao, Ziqian Yang, Tianhong Dai, Bingfeng Zhang et al.CVPR 2024 · 17 citations
  4. Self-supervised Image-specific Prototype Exploration for Weakly Supervised Semantic SegmentationQi Chen, Lingxiao Yang, Jianhuang Lai, Xiaohua XieCVPR 2022 · 182 citations
  5. POT: Prototypical Optimal Transport for Weakly Supervised Semantic SegmentationJian Wang, Tianhong Dai, Bingfeng Zhang, Siyue Yu et al.CVPR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines