Weakly Supervised Co-training with Swapping Assignments for Semantic Segmentation

Xinyu Yang, Hossein Rahmani, Sue Black, Bryan M. Williams
2/14/2026

No official code found. Best implementation: youshyee/CoSA (12 stars, last commit 2024-08-03).

Abstract

Class activation maps (CAMs) are commonly employed in weakly supervised semantic segmentation (WSSS) to produce pseudo-labels. Due to incomplete or excessive class activation, existing studies often resort to offline CAM refinement, introducing additional stages or proposing offline modules. This can cause optimization difficulties for single-stage methods and limit generalizability. In this study, we aim to reduce the observed CAM inconsistency and error to mitigate reliance on refinement processes. We propose an end-to-end WSSS model incorporating guided CAMs, wherein our segmentation model is trained while concurrently optimizing CAMs online. Our method, Co-training with Swapping Assignments (CoSA), leverages a dual-stream framework, where one sub-network learns from the swapped assignments generated by the other. We introduce three techniques: i) soft perplexity-based regularization to penalize uncertain regions; ii) a threshold-searching approach to dynamically revise the confidence threshold; and iii) contrastive separation to address the coexistence problem. CoSA demonstrates exceptional performance, achieving mIoU of 76.2\% and 51.0\% on VOC and COCO validation datasets, respectively, surpassing existing baselines by a substantial margin. Notably, CoSA is the first single-stage approach to outperform all existing multi-stage methods including those with additional supervision. Code is avilable at \url{https://github.com/youshyee/CoSA}.

View on arXivView PDF

Code Implementations(1)

youshyee/CoSACommunity100%

Code for paper: Weakly Supervised Co-training with Swapping Assignments for Semantic Segmentation

122C, C++Feb 27, 20242 years ago

Similar Papers

Cite this paper

@article{yang2026weakly,
  title  = {Weakly Supervised Co-training with Swapping Assignments for Semantic Segmentation},
  author = {Xinyu Yang and Hossein Rahmani and Sue Black and Bryan M. Williams},
  year   = {2026},
  eprint = {2402.17891},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.17891},
  journal = {ECCV 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.17891.svg)](https://codeofpaper.com/paper/2402.17891)

Discussion