Skip to main navigation Skip to search Skip to main content

Unleashing the power of optimal head in CLIP and DINO for weakly supervised semantic segmentation

  • University of Liverpool
  • China University of Petroleum (East China)
  • Suzhou Hocchin Technology CO.Ltd
  • Taiyuan University of Science and Technology

Research output: Contribution to journalArticlepeer-review

Abstract

Weakly-supervised semantic segmentation with image-level labels has gained significant attention due to its low annotation cost. Recent methods leverage frozen CLIP and DINO models to create high-quality pseudo labels for supervised training. They typically use CLIP layer attention as affinity to refine class activation maps (CAMs). However, our investigation reveals that, in the multi-heads self-attention (MHSA) module of CLIP, some heads are noisy to precisely describe the feature semantic relationships, leading to the layer attention, which is obtained by averaging the head attentions, being suboptimal. To address it, we propose a class-aware head selection method that directly selects the head best matching the target class to extract affinity for refining the CAM, thus avoiding the influence of noisy heads. We further extend this method to DINO since we found similar noisy heads issue in it, and design a dual-supervision process which leverages the fact that CLIP captures global semantics while DINO excels in local details to harness their synergy through complementary pseudo-labels. In addition, to enhance the dense semantics of CLIP features in the decoder, we align its pixel features with their corresponding text embeddings that serve as category prototypes, thereby improving the final predictions. By integrating the above strategies, our method, termed UPOH, unleashes the power of optimal head in CLIP and DINO to boost the WSSS performance. Experimental results demonstrate that our method achieves new state-of-the-art performance on PASCAL VOC and MS COCO datasets.

Original languageEnglish
Article number113454
JournalPattern Recognition
Volume178
DOIs
Publication statusPublished - Oct 2026

Keywords

  • CLIP
  • DINO
  • Multi-heads
  • Weakly supervised semantic segmentation

Cite this