cs.CVSep 28, 2026

CRF Loss is How Networks Should Learn Boundaries in Weakly Supervised Segmentation

Authors: Joshua Li, Yuri Boykov

Organizations: Cheriton School of Computer Science University of Waterloo

Abstract

Weakly Supervised Semantic Segmentation (WSSS) learns pixel-level predictions from image-level tags. Recent work focuses on improving coarse CAMs extracted from large vision-language models (commonly CLIP), but does little to improve their accuracy along segment boundaries. That job is instead delegated to a post-processing method like DenseCRF. However, because DenseCRF relies on low-level colour cues, it can flip correct labels to incorrect ones when neighbouring pixels share similar colours. SAM has recently been adopted as a natural alternative, yet it simply takes on DenseCRF's role as an intermediate "refinement" step that outputs one-hot pseudo-labels in prior work. By discarding the valuable uncertainty in CAMs, these one-hot pseudo-labels turn borderline errors into confidently wrong targets. Our key insight is that CAMs should supervise training alongside SAM boundaries, each through its own loss, rather than being fused together into a single hard target. Inspired by CRF potentials, we propose a framework that disentangles soft pseudo-labels as unary supervision and binary edge maps as pairwise supervision. We realize our framework in a single-stage model, DS-CRF, using CAMs from dino.txt and boundaries from SAM. DS-CRF sets a new state-of-the-art of 56.5% mIoU on MS COCO.

Figures & tables

Explore similar work

CardsList
  1. Weakly Supervised Segmentation as Semantic-Based Regularization

    May 13, 2026Stefano Colamonaco, Andrei-Bogdan Florea, Jaron MaeneSemantic SegmentationHigh Confidence Pseudo-Labels

  2. DiCLIP: Diffusion Model Enhances CLIP's Dense Knowledge for Weakly Supervised Semantic Segmentation

    May 6, 2026Zhiwei Yang, Pengfei Song, Yucong Meng +3Semantic SegmentationClass Activation Mapping

  3. ModuSeg: Decoupling Object Discovery and Semantic Retrieval for Training-Free Weakly Supervised Segmentation

    Apr 8, 2026Qingze He, Fagui Liu, Dengke Zhang +2Semantic SegmentationHigh Confidence Pseudo-Labels