Leveraging Class Distributions in CLIP for Weakly Supervised Semantic Segmentation

Zi-Qian Yang, Xin-Qiao Zhao, Xiao-Lei Wang, Quan Zhang, Ji-Min Xiao
1/1/2026

No official code found. Best implementation: yay97/CD-CLIP (1 star, last commit 2026-03-16).

Abstract

Image-level Weakly Supervised Semantic Segmentation (WSSS) typically leverages Class Activation Maps (CAMs) for pixel-wise localization. However, existing CLIP-based methods often yield under-activated CAMs, primarily due to the inaccurate semantic relationships in the affinity-based refinement.

Show full abstract

In this work, we propose a novel framework, CD-CLIP (Class Distribution based CLIP), which addresses this issue by introducing a Class Distribution Aware (CDA) module. The CDA module captures richer semantic relationships by modeling patch-wise distributions across all classes using Jensen-Shannon divergence, thereby enhancing the completeness of CAMs. While this significantly improves the coverage of the foreground class, the over-activation at class boundaries might also exist due to the comprehensive integration of relationships between inter target classes. To mitigate this adverse effect on segmentation supervision, we introduce a Super-class Boundary Exploration (SBE) module, which leverages structural knowledge of DINO to generate boundary-aware super-class prototype CAMs. By employing the boundary-enhanced loss, our SBE module effectively provides accurate boundary supervision for the final segmentation. Our proposed CD-CLIP framework achieves state-of-the-art performance on both PASCAL VOC and MS COCO benchmarks. Code will be released.

Semantic Scholar

Code Implementations(1)

yay97/CD-CLIPCommunity68%

Leveraging Class Distributions in CLIP for Weakly Supervised Semantic Segmentation

10Mar 16, 20268 months ago

Similar Papers

Cite this paper

@article{yang2026leveraging,
  title  = {Leveraging Class Distributions in CLIP for Weakly Supervised Semantic Segmentation},
  author = {Zi-Qian Yang and Xin-Qiao Zhao and Xiao-Lei Wang and Quan Zhang and Ji-Min Xiao},
  year   = {2026},
  url    = {https://api.semanticscholar.org/CorpusID:7c115259661b28512daac01ef2dd2e07fd6f5111},
  journal = {Computer Vision and Pattern Recognition}
}

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/7c115259661b28512daac01ef2dd2e07fd6f5111.svg)](https://codeofpaper.com/paper/7c115259661b28512daac01ef2dd2e07fd6f5111)

Discussion