[Paper Review] Open-Vocabulary Universal Image Segmentation with MaskCLIP
MaskCLIP introduces a novel Transformer-based method for open-vocabulary universal image segmentation by integrating mask tokens with a pre-trained ViT-CLIP encoder via a Relative Mask Attention (RMA) module, enabling efficient and effective use of dense CLIP features without distillation. It achieves state-of-the-art performance on ADE20K and PASCAL for semantic, instance, and panoptic segmentation with minimal inference cost and strong zero-shot generalization.
In this paper, we tackle an emerging computer vision task, open-vocabulary universal image segmentation, that aims to perform semantic/instance/panoptic segmentation (background semantic labeling + foreground instance segmentation) for arbitrary categories of text-based descriptions in inference time. We first build a baseline method by directly adopting pre-trained CLIP models without finetuning or distillation. We then develop MaskCLIP, a Transformer-based approach with a MaskCLIP Visual Encoder, which is an encoder-only module that seamlessly integrates mask tokens with a pre-trained ViT CLIP model for semantic/instance segmentation and class prediction. MaskCLIP learns to efficiently and effectively utilize pre-trained partial/dense CLIP features within the MaskCLIP Visual Encoder that avoids the time-consuming student-teacher training process. MaskCLIP outperforms previous methods for semantic/instance/panoptic segmentation on ADE20K and PASCAL datasets. We show qualitative illustrations for MaskCLIP with online custom categories. Project website: https://maskclip.github.io.
Motivation & Objective
- To address the challenge of open-vocabulary universal image segmentation, where models must segment and classify arbitrary text-desired categories at inference time.
- To eliminate the need for costly student-teacher distillation or fine-tuning while leveraging pre-trained CLIP features for dense and partial feature extraction.
- To unify semantic, instance, and panoptic segmentation under a single framework using mask tokens and a pre-trained vision transformer backbone.
- To improve mask quality and classification accuracy through end-to-end mask refinement using a Relative Mask Attention mechanism.
Proposed method
- Introduces a MaskCLIP Visual Encoder that combines a pre-trained ViT-CLIP image encoder with a dedicated mask token encoder in an encoder-only architecture.
- Employs a Relative Mask Attention (RMA) module that allows mask tokens to attend to each other and to image features, enabling iterative mask refinement.
- Uses mask queries as learnable parameters to generate segmentation masks, decoupling mask proposal from classification for improved training and inference.
- Leverages pre-trained CLIP features directly without retraining or distillation, enabling efficient feature extraction by adding only a few mask tokens to the input.
- Performs joint mask prediction and class prediction using text prompts, with class scores computed via CLIP's text-image contrastive similarity.
- Utilizes a cascade refinement process where attention maps guide iterative mask updates, improving segmentation quality.
Experimental results
Research questions
- RQ1Can a pre-trained CLIP model be directly adapted for open-vocabulary universal image segmentation without fine-tuning or distillation?
- RQ2How effective is a relative mask attention mechanism in refining segmentation masks using pre-trained visual features?
- RQ3Can mask queries and a unified encoder architecture achieve competitive performance across semantic, instance, and panoptic segmentation in zero-shot settings?
- RQ4How does the efficiency of feature extraction compare when using mask tokens versus repeated CLIP inference on cropped regions?
Key findings
- MaskCLIP achieves state-of-the-art performance on ADE20K and PASCAL for open-vocabulary panoptic segmentation, with a PQ score of 35.8 when using ground-truth mask proposals.
- On the COCO split setting, MaskCLIP achieves 42.8 mAP on base categories and 23.2 on target categories in instance segmentation, outperforming XPM and other prior methods.
- The model reduces FLOPs for feature extraction to 0.3 TFLOPs (vs. 9.5–10.5 for prior methods) by using mask tokens instead of repeated CLIP inference on crops.
- Ablation studies show that mask refinement via RMA improves SQ by 4.12 points (from 66.36 to 70.48) on ADE20K, demonstrating its effectiveness.
- Using ground-truth masks, MaskCLIP achieves 31.7 mIoU on semantic segmentation and 35.8 PQ on panoptic segmentation, outperforming OpenSeg by 4.2 mIoU and 20.7 PQ points.
- The method achieves strong zero-shot generalization without any fine-tuning, relying solely on CLIP's pre-trained vision-text alignment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.