Self-Calibrated CLIP for Training-Free Open-Vocabulary Segmentation
Sule Bai, Yong Liu, Yifei Han, Haoji Zhang, Yansong Tang
TL;DR
This work tackles open-vocabulary segmentation by addressing CLIP's weakness in capturing local details due to image-level pretraining. It introduces Self-Calibrated CLIP (SC-CLIP), a training-free calibration that first resolves anomaly tokens to prevent uniform attention, then exploits semantic coherence in mid-level CLIP features to self-adjust deep representations, and finally employs a two-pass, multi-level fusion to enrich detail without extra parameters or backbones. The method yields state-of-the-art results across eight datasets and backbones, with substantial gains over vanilla CLIP (up to 6.8× on ViT-L/14) and an average improvement of 9.5 percentage points over prior training-free approaches. By leveraging CLIP's own properties and internal feature structure, SC-CLIP demonstrates that dense, semantically coherent open-vocabulary segmentation can be achieved without additional training or components, offering a practical, efficient solution for dense cross-modal understanding.
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.
