Skip to main content
QUICK REVIEW

[Paper Review] A Simple Baseline for Open-Vocabulary Semantic Segmentation with Pre-trained Vision-language Model

Mengde Xu, Zheng Zhang|arXiv (Cornell University)|Dec 29, 2021
Multimodal Machine Learning ApplicationsComputer Science12 citations
TL;DR

This paper proposes a simple two-stage framework for open-vocabulary semantic segmentation using a pre-trained vision-language model (CLIP). It first generates class-agnostic mask proposals and then classifies each proposal using CLIP on cropped image patches, achieving state-of-the-art zero-shot performance: +29.5 hIoU on Pascal VOC 2012 and +8.9 hIoU on COCO Stuff, surpassing prior methods by a large margin.

ABSTRACT

Recently, open-vocabulary image classification by vision language pre-training has demonstrated incredible achievements, that the model can classify arbitrary categories without seeing additional annotated images of that category. However, it is still unclear how to make the open-vocabulary recognition work well on broader vision problems. This paper targets open-vocabulary semantic segmentation by building it on an off-the-shelf pre-trained vision-language model, i.e., CLIP. However, semantic segmentation and the CLIP model perform on different visual granularity, that semantic segmentation processes on pixels while CLIP performs on images. To remedy the discrepancy in processing granularity, we refuse the use of the prevalent one-stage FCN based framework, and advocate a two-stage semantic segmentation framework, with the first stage extracting generalizable mask proposals and the second stage leveraging an image based CLIP model to perform open-vocabulary classification on the masked image crops which are generated in the first stage. Our experimental results show that this two-stage framework can achieve superior performance than FCN when trained only on COCO Stuff dataset and evaluated on other datasets without fine-tuning. Moreover, this simple framework also surpasses previous state-of-the-arts of zero-shot semantic segmentation by a large margin: +29.5 hIoU on the Pascal VOC 2012 dataset, and +8.9 hIoU on the COCO Stuff dataset. With its simplicity and strong performance, we hope this framework to serve as a baseline to facilitate future research. The code are made publicly available at~\url{https://github.com/MendelXu/zsseg.baseline}.

Motivation & Objective

  • To address the gap in applying image-level vision-language models like CLIP to pixel-level semantic segmentation tasks.
  • To overcome the granularity mismatch between image-level CLIP and pixel-level segmentation by decoupling mask generation and classification.
  • To enable strong zero-shot generalization to unseen categories using only pre-trained CLIP and a simple two-stage pipeline.
  • To establish a simple yet effective baseline for future research in open-vocabulary semantic segmentation.

Proposed method

  • The method uses a two-stage framework: first generating class-agnostic mask proposals using a mask head (e.g., MaskFormer), then classifying each proposal using CLIP on cropped image patches.
  • Each mask proposal is used to crop the input image, and the cropped patch is fed into the pre-trained CLIP model for zero-shot classification.
  • A learnable prompt tuning strategy is applied to improve classification accuracy on unseen classes, with prompts trained only on seen categories.
  • The framework avoids the one-stage FCN approach due to its poor performance caused by granularity mismatch between CLIP and pixel-wise classification.
  • Background pixels in cropped patches are filled using learnable values or mask tokens, though these methods show instability and are outperformed by simple baseline strategies.
  • The method leverages CLIP’s strong vision-category alignment by aligning image-level recognition with pixel-level segmentation through masked crop inference.

Experimental results

Research questions

  • RQ1Can a pre-trained vision-language model like CLIP be effectively adapted to open-vocabulary semantic segmentation despite the mismatch in visual granularity?
  • RQ2Does a two-stage framework that decouples mask proposal generation from classification outperform one-stage FCN-based approaches in zero-shot segmentation?
  • RQ3How does prompt learning on CLIP improve zero-shot generalization to unseen categories in semantic segmentation?
  • RQ4What is the impact of different background filling strategies in masked image crops on segmentation performance?
  • RQ5Can the proposed method generalize well across datasets without fine-tuning, especially in cross-dataset evaluation settings?

Key findings

  • The two-stage framework outperforms the FCN-based baseline by +13.1 mIoU on Cityscapes, +19.6 mIoU on Pascal Context, +5.6 mIoU on ADE20k (150 classes), and +2.9 mIoU on ADE20k (847 classes) in cross-dataset evaluation.
  • On Pascal VOC 2012, the method achieves +29.5 hIoU over previous state-of-the-art methods in zero-shot segmentation, even with self-training.
  • On COCO Stuff, the method improves by +8.9 hIoU over prior SOTA in zero-shot evaluation, demonstrating strong generalization to unseen classes.
  • Learnable prompt tuning improves performance by +9.9 hIoU over manually designed prompts, with consistent gains on both seen and unseen classes.
  • Using 32 samples per category for prompt learning yields the best performance, while more samples degrade results, suggesting overfitting risks.
  • The method achieves 77.5 hIoU on COCO Stuff with ViT/B-16 and CLIP pre-training, significantly outperforming ImageNet-pretrained baselines.

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.