ClearCLIP: Decomposing CLIP Representations for Dense Vision-Language Inference
Mengcheng Lan, Chaofeng Chen, Yiping Ke, Xinjiang Wang, Litong Feng, Wayne Zhang
TL;DR
This work addresses the challenge of applying CLIP-style vision-language models to open-vocabulary semantic segmentation, where segmentation maps are often noisy due to local localization issues. By decomposing CLIP’s vision output into a residual component $X_{\text{res}}$ and an attention component $X_{\text{attn}}$, the authors show that the residual path dominates noise and undermines local discriminability. They propose ClearCLIP, consisting of three simple final-layer changes: remove the residual connection, adopt self-self attention ($Attn_{qq}$), and discard the Feed-Forward Network (FFN), effectively boosting the informative attention signal and resulting in clearer segmentation maps. Across eight benchmarks and multiple backbones, ClearCLIP yields consistent improvements over existing training-free and weakly supervised methods, highlighting the practical value of representation decomposition for dense vision-language inference.
Abstract
Despite the success of large-scale pretrained Vision-Language Models (VLMs) especially CLIP in various open-vocabulary tasks, their application to semantic segmentation remains challenging, producing noisy segmentation maps with mis-segmented regions. In this paper, we carefully re-investigate the architecture of CLIP, and identify residual connections as the primary source of noise that degrades segmentation quality. With a comparative analysis of statistical properties in the residual connection and the attention output across different pretrained models, we discover that CLIP's image-text contrastive training paradigm emphasizes global features at the expense of local discriminability, leading to noisy segmentation results. In response, we propose ClearCLIP, a novel approach that decomposes CLIP's representations to enhance open-vocabulary semantic segmentation. We introduce three simple modifications to the final layer: removing the residual connection, implementing the self-self attention, and discarding the feed-forward network. ClearCLIP consistently generates clearer and more accurate segmentation maps and outperforms existing approaches across multiple benchmarks, affirming the significance of our discoveries.
