Self-Calibrated CLIP for Training-Free Open-Vocabulary Segmentation

Sule Bai, Yong Liu, Yifei Han, Haoji Zhang, Yansong Tang
11/24/2024
cs.CV

Official code: SuleBai/SC-CLIP (70 stars, last commit 2026-03-27).

Abstract

Recent advancements in pre-trained vision-language models like CLIP, have enabled the task of open-vocabulary segmentation. CLIP demonstrates impressive zero-shot capabilities in various downstream tasks that require holistic image understanding. However, due to its image-level pre-training, CLIP struggles to capture local details, resulting in poor performance in segmentation tasks. Our analysis reveals that anomaly tokens emerge during the forward pass, drawing excessive attention from normal patch tokens, thereby diminishing spatial awareness. To address this issue, we propose Self-Calibrated CLIP (SC-CLIP), a training-free method that calibrates CLIP to produce finer representations while preserving its original generalization ability, without introducing new parameters or relying on additional backbones. Specifically, we first identify and resolve the anomaly tokens to mitigate their negative impact. Next, we enhance feature discriminability and attention correlation by leveraging the semantic consistency found in CLIP's intermediate features. Furthermore, we explore how to effectively employ multi-level feature fusion under the training-free setting. Collectively, these strategies enhance CLIP's feature representation with greater granularity and coherence. Experimental results demonstrate the effectiveness of SC-CLIP, achieving state-of-the-art results across all datasets and surpassing previous methods by 9.5%. Notably, SC-CLIP boosts the performance of vanilla CLIP ViT-L/14 by 6.8 times. Our source code is available at https://github.com/SuleBai/SC-CLIP.

View on arXivView PDF

Code Implementations(1)

SuleBai/SC-CLIPOfficial100%

[TIP 2025] Self-Calibrated CLIP for Training-Free Open-Vocabulary Segmentation

701Shell, PythonNov 26, 20246 months ago

Similar Papers

Cite this paper

@article{bai2024selfcalibrated,
  title  = {Self-Calibrated CLIP for Training-Free Open-Vocabulary Segmentation},
  author = {Sule Bai and Yong Liu and Yifei Han and Haoji Zhang and Yansong Tang},
  year   = {2024},
  eprint = {2411.15869},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.15869v2}
}

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

Discussion