Co2SAM: Exploring Co-Occurrence Challenges With SAM in Weakly Supervised Semantic Segmentation
Weakly supervised semantic segmentation builds a semantic segmentation model with only image-level annotations, which provide only categorical information without localization details. This limitation leads to persistent challenges related to class co-occurrence. Traditional methods often address this issue by incorporating external data or employing data augmentation techniques. In contrast, we benefit from the large and diverse amount of data seen during segment anything model (SAM) pretraining to exploit its potential recognition ability and solve the class co-occurrence problem with only the pretrained model. Furthermore, existing SAM-based methods typically adopt SAM to produce pseudo-labels, which are then employed to train separate segmentation networks without employing SAM as a backbone for direct segmentation with image-level labels. In addition, we found that although the SAM-based approach can solve the class co-occurrence problem, it still suffers from full target leakage. Based on these observations, we propose a one-stage, dual-teachers–one-student network architecture, termed Co2SAM. Specifically, we utilize Focal loss, Contrast loss, Dice loss, and Template loss, and fine-tune the image encoder with LoRA. Experimental results substantiate the effectiveness of our Co2SAM. The code is available at <uri xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">https://github.com/chunmengliu666/Co2SAM</uri>.
Authors
- Qiaochuan Chen
- Guangyao Li (ORCID: https://orcid.org/0000-0002-5853-6778)
- Qingguo Xiao (ORCID: https://orcid.org/0000-0002-4090-5803)
- Haoran Zhou
- Guangyao Li (ORCID: https://orcid.org/0000-0002-3150-1356)
- Yao Shen (ORCID: https://orcid.org/0000-0002-4472-9632)
Institutions
- Tongji University (CN)
- Shanghai University of Engineering Science (CN)
- Linyi University (CN)
Publication Details
- Journal
- IEEE Internet of Things Journal
- Published
- 2025-08-14
- DOI
- https://doi.org/10.1109/jiot.2025.3598824
- Primary Topic
- Machine Learning in Materials Science
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China