Extract Free Dense Labels from CLIP
Chong Zhou, Chen Change Loy, Bo Dai
TL;DR
The paper addresses the difficulty of achieving dense, open-vocabulary segmentation without annotations or fine-tuning by leveraging CLIP’s visual-language representations.It introduces MaskCLIP, which preserves CLIP's alignment by extracting dense patch-level features from the image encoder and using text embeddings as classifiers, and MaskCLIP+ which uses pseudo labeling and self-training to train stronger segmentation models.MaskCLIP+ achieves state-of-the-art performance in transductive zero-shot segmentation across PASCAL VOC, PASCAL Context, and COCO Stuff, including marked gains for unseen classes, while maintaining strong performance on seen classes.The approach demonstrates that CLIP can serve as a robust, annotation-free source of supervision for dense prediction and is adaptable to diverse segmentation backbones.
Abstract
Contrastive Language-Image Pre-training (CLIP) has made a remarkable breakthrough in open-vocabulary zero-shot image recognition. Many recent studies leverage the pre-trained CLIP models for image-level classification and manipulation. In this paper, we wish examine the intrinsic potential of CLIP for pixel-level dense prediction, specifically in semantic segmentation. To this end, with minimal modification, we show that MaskCLIP yields compelling segmentation results on open concepts across various datasets in the absence of annotations and fine-tuning. By adding pseudo labeling and self-training, MaskCLIP+ surpasses SOTA transductive zero-shot semantic segmentation methods by large margins, e.g., mIoUs of unseen classes on PASCAL VOC/PASCAL Context/COCO Stuff are improved from 35.6/20.7/30.3 to 86.1/66.7/54.7. We also test the robustness of MaskCLIP under input corruption and evaluate its capability in discriminating fine-grained objects and novel concepts. Our finding suggests that MaskCLIP can serve as a new reliable source of supervision for dense prediction tasks to achieve annotation-free segmentation. Source code is available at https://github.com/chongzhou96/MaskCLIP.
