Skip to main content
QUICK REVIEW

[Paper Review] SegCLIP: Patch Aggregation with Learnable Centers for Open-Vocabulary Semantic Segmentation

Huaishao Luo, Junwei Lucas Bao|arXiv (Cornell University)|Nov 27, 2022
Multimodal Machine Learning ApplicationsComputer Science27 citations
TL;DR

SegCLIP introduces a CLIP-based, open-vocabulary semantic segmentation model that uses a plug-in semantic group module with learnable centers to group patches into irregular semantic regions, trained with reconstruction and superpixel KL losses in addition to a contrastive loss. It achieves competitive mIoU on VOC, Context, and COCO without mask proposals.

ABSTRACT

Recently, the contrastive language-image pre-training, e.g., CLIP, has demonstrated promising results on various downstream tasks. The pre-trained model can capture enriched visual concepts for images by learning from a large scale of text-image data. However, transferring the learned visual knowledge to open-vocabulary semantic segmentation is still under-explored. In this paper, we propose a CLIP-based model named SegCLIP for the topic of open-vocabulary segmentation in an annotation-free manner. The SegCLIP achieves segmentation based on ViT and the main idea is to gather patches with learnable centers to semantic regions through training on text-image pairs. The gathering operation can dynamically capture the semantic groups, which can be used to generate the final segmentation results. We further propose a reconstruction loss on masked patches and a superpixel-based KL loss with pseudo-labels to enhance the visual representation. Experimental results show that our model achieves comparable or superior segmentation accuracy on the PASCAL VOC 2012 (+0.3% mIoU), PASCAL Context (+2.3% mIoU), and COCO (+2.2% mIoU) compared with baselines. We release the code at https://github.com/ArrowLuo/SegCLIP.

Motivation & Objective

  • Motivate open-vocabulary semantic segmentation without pixel-level labels or fixed vocabularies.
  • Leverage CLIP by inserting a semantic group module that aggregates patches into semantic regions.
  • Enhance visual representations with reconstruction and superpixel-based KL losses.
  • Demonstrate transfer from CLIP pretraining to segmentation on standard datasets.

Proposed method

  • Use a ViT-based CLIP backbone with a plugged semantic group module that creates L learnable centers to aggregate patches into semantic regions via cross-attention and a mapping matrix M from Gumbel-Softmax.
  • Generate contextual centers via cross-attention between centers and image patches; compute M to assign patches to centers; derive region representations for downstream Transformer layers.
  • Train with a combination of losses: contrastive loss (CLIP-style), reconstruction loss on masked patches via an irregular-region MAE-like process, and a superpixel-based KL loss to encourage consistent patch-region mappings.
  • Inference uses text prompts filled with candidate labels and computes similarities between region representations and label embeddings to produce pixel-level segmentation through interpolation.

Experimental results

Research questions

  • RQ1Can SegCLIP achieve open-vocabulary semantic segmentation by reusing CLIP weights without segmentation-specific supervision?
  • RQ2Does a learnable patch-centering (semantic group) approach produce coherent irregular-shaped segments suitable for open-vocabulary labeling?
  • RQ3Do reconstruction and superpixel-based KL losses improve segmentation quality beyond contrastive learning alone?

Key findings

  • SegCLIP achieves mIoU improvements on VOC, Context, and COCO, achieving 52.60/24.71/26.45 with certain settings (see table) when initialized from CC+COCO and trained with the proposed losses.
  • Reconstruction loss improves mIoU notably when combined with the KL loss (e.g., VOC +1.19 to +4.11 depending on conditions).
  • Superpixel-based KL loss consistently improves mIoU across datasets, especially when reconstruction loss is also used.
  • Cross-attention and the number of plugged layers affect performance; a plugged layer around 10 with 8 centers and 2 cross-attention layers yields strong results.
  • Initialization with pre-trained CLIP significantly boosts performance over training-from-scratch (e.g., VOC, Context, COCO gains).
  • SegCLIP can perform zero-shot/open-vocabulary segmentation when evaluating with candidate labels without additional segmentation-specific training.

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.