Abstract
Contrastive Language-Image Pre-training (CLIP) models excel at image-level classification but struggle with dense prediction tasks like semantic segmentation due to a lack of local precision. This paper introduces CLIPtrase, a training-free method designed to recover local semantic correlations and mitigate the "global patch" phenomenon. By leveraging a novel Semantic Correlation Recovery (SCR) mechanism and density-based clustering, CLIPtrase achieves significant performance gains across nine benchmarks, demonstrating that frozen foundation models possess untapped potential for high-quality open-vocabulary segmentation.
Introduction: The Global Patch Problem
The primary obstacle in using CLIP for segmentation is the "Global Patch" phenomenon. Because CLIP is optimized for image-level alignment, its internal attention mechanism evolves to prioritize a few "proxy" patches that summarize the entire scene for the [CLS] token. In deeper layers, these patches dominate the attention maps, effectively "washing out" local semantic details. Consequently, patches belonging to a specific object may attend more to these global proxies than to adjacent patches of the same object, preventing the formation of clean segmentation boundaries.
Methodology: CLIPtrase
To address these limitations without requiring additional training or gradient updates, the authors propose the CLIPtrase (TRAining-free semantic SEgmentation) framework. It consists of three core components:
- Semantic Correlation Recovery (SCR): Instead of standard attention weights, CLIPtrase computes a new correlation matrix using Cosine similarity between the query, key, and value vectors in the final layer. This approach unearths local structures that are present but suppressed by the global alignment objective.
- Patch Clustering: Using the recovered correlations, the method employs DBSCAN (a density-based clustering algorithm) to group semantically similar patches into coherent object masks.
- Denoising: The researchers identified that "global patches" act as noise during clustering. CLIPtrase flags patches that correlate more with the overall image than with themselves as noise and discards them to refine the final masks.
Experimental Results
The authors evaluated CLIPtrase across nine major benchmarks, including COCO-stuff, PASCAL VOC, and ADE20K.
- Performance Gains: CLIPtrase achieved an average mIoU of 33.53%, representing a 22.3% absolute improvement over vanilla CLIP (11.04%).
- State-of-the-Art Training-Free: It outperformed existing training-free methods like SCLIP (31.50% mIoU).
- Synergy with SAM: Integrating CLIPtrase with the Segment Anything Model (SAM) further boosted performance to 34.49% mIoU, producing sharper object boundaries.
Conclusion
CLIPtrase demonstrates that the information required for high-quality semantic segmentation is already embedded within frozen CLIP models. By shifting the focus from global alignment to local semantic correlation recovery, training-free methods can achieve competitive results in open-vocabulary tasks, offering a computationally efficient alternative to fine-tuned decoders.
Summary updated