Skip to main content
QUICK REVIEW

[Paper Review] Open-Vocabulary Semantic Segmentation with Mask-adapted CLIP

Feng Liang, BoRui Wu|arXiv (Cornell University)|Oct 9, 2022
Multimodal Machine Learning ApplicationsComputer Science10 citations
TL;DR

This paper proposes Mask-adapted CLIP, a method for open-vocabulary semantic segmentation that finetunes CLIP on weakly-supervised, diverse mask-category pairs mined from image-caption datasets, while introducing mask prompt tuning to handle masked image inputs without updating CLIP weights. The approach achieves 29.6% mIoU on ADE20K-150, outperforming prior SOTA by +8.5% and matching supervised specialist models without dataset-specific adaptation.

ABSTRACT

Open-vocabulary semantic segmentation aims to segment an image into semantic regions according to text descriptions, which may not have been seen during training. Recent two-stage methods first generate class-agnostic mask proposals and then leverage pre-trained vision-language models, e.g., CLIP, to classify masked regions. We identify the performance bottleneck of this paradigm to be the pre-trained CLIP model, since it does not perform well on masked images. To address this, we propose to finetune CLIP on a collection of masked image regions and their corresponding text descriptions. We collect training data by mining an existing image-caption dataset (e.g., COCO Captions), using CLIP to match masked image regions to nouns in the image captions. Compared with the more precise and manually annotated segmentation labels with fixed classes (e.g., COCO-Stuff), we find our noisy but diverse dataset can better retain CLIP's generalization ability. Along with finetuning the entire model, we utilize the "blank" areas in masked images using a method we dub mask prompt tuning. Experiments demonstrate mask prompt tuning brings significant improvement without modifying any weights of CLIP, and it can further improve a fully finetuned model. In particular, when trained on COCO and evaluated on ADE20K-150, our best model achieves 29.6% mIoU, which is +8.5% higher than the previous state-of-the-art. For the first time, open-vocabulary generalist models match the performance of supervised specialist models in 2017 without dataset-specific adaptations.

Motivation & Objective

  • To address the performance bottleneck of pre-trained CLIP in open-vocabulary semantic segmentation, which underperforms on masked image regions due to domain shift.
  • To retain CLIP’s open-vocabulary generalization ability while adapting it to masked inputs, avoiding overfitting to closed-set annotations.
  • To develop a lightweight, parameter-efficient adaptation method that improves CLIP’s performance on masked images without fine-tuning its weights.
  • To enable zero-shot segmentation for arbitrary user-defined text queries without retraining or dataset-specific adaptation.
  • To demonstrate that generalist open-vocabulary models can match the performance of supervised specialist models.

Proposed method

  • The method mines training data from image-caption datasets (e.g., COCO Captions) by extracting nouns from captions and matching them to class-agnostic mask proposals generated by a segmentation model.
  • It constructs weakly-supervised mask-category pairs by using CLIP to match each noun to the most similar masked region proposal, creating diverse and open-vocabulary-aligned training signals.
  • Mask prompt tuning is introduced to replace zero tokens in masked images with learnable prompt tokens during inference, mitigating domain shift without updating CLIP’s parameters.
  • The approach allows for both prompt-only tuning (freezing CLIP weights) and joint finetuning of prompts and CLIP, with the former showing strong performance gains.
  • The final model is trained end-to-end on the weakly-supervised data and evaluated via zero-shot inference on unseen text queries.
  • The method is evaluated on ADE20K-150 and Pascal-Context, demonstrating strong zero-shot generalization across diverse and open-ended queries.
Figure 1 : (a) CLIP is pre-trained with natural images with little data augmentation. (b) Two-stage open-vocabulary semantic segmentation approaches first generate class-agnostic mask proposals and then leverage pre-trained CLIP to do open-vocabulary classification. The input of the CLIP model is cr
Figure 1 : (a) CLIP is pre-trained with natural images with little data augmentation. (b) Two-stage open-vocabulary semantic segmentation approaches first generate class-agnostic mask proposals and then leverage pre-trained CLIP to do open-vocabulary classification. The input of the CLIP model is cr

Experimental results

Research questions

  • RQ1Can a pre-trained CLIP model be effectively adapted to classify masked image regions in open-vocabulary semantic segmentation without fine-tuning its weights?
  • RQ2Does using weakly-supervised, diverse mask-category pairs from image captions preserve CLIP’s open-vocabulary generalization better than using manually annotated, closed-set segmentation labels?
  • RQ3Can mask prompt tuning—replacing masked (zero) tokens with learnable prompts—significantly improve CLIP’s performance on masked images without modifying its parameters?
  • RQ4Does the combination of weakly-supervised data and mask prompt tuning enable a generalist model to match the performance of supervised specialist models in open-vocabulary segmentation?
  • RQ5How does the model generalize to user-defined, open-ended text queries not seen during training?

Key findings

  • The proposed method achieves 29.6% mIoU on ADE20K-150, representing an 8.5% improvement over the previous state-of-the-art.
  • Mask prompt tuning alone improves mIoU by 4.7% on ADE20K-150 and 4.0% on Pascal-Context over the baseline, without updating any CLIP weights.
  • The model outperforms fully finetuned CLIP by 0.8% mIoU when combining mask prompt tuning with full finetuning, demonstrating its effectiveness as a complementary method.
  • Using only one caption per image for data mining yields optimal performance (28.8% mIoU on ADE20K-150) and is 5x faster than using five, indicating sufficient coverage with minimal redundancy.
  • The model successfully segments user-defined queries such as 'Saturn V', 'Oculus', and 'golden gate' without any training on these concepts, demonstrating strong zero-shot generalization.
  • The method achieves performance parity with supervised specialist models on ADE20K-150, marking the first time a generalist open-vocabulary model matches specialist-level accuracy without dataset-specific adaptation.
Figure 2 : Two-stage approaches consist of one segmentation model, e.g . , MaskFormer, and one CLIP model. Firstly, the modified MaskFormer is trained with CLIP’s text embeddings so as to perform open-vocabulary segmentation. (Section 3.1 ). We then use the pre-trained segmentation model to generate
Figure 2 : Two-stage approaches consist of one segmentation model, e.g . , MaskFormer, and one CLIP model. Firstly, the modified MaskFormer is trained with CLIP’s text embeddings so as to perform open-vocabulary segmentation. (Section 3.1 ). We then use the pre-trained segmentation model to generate

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.