Skip to main content
QUICK REVIEW

[Paper Review] ZegOT: Zero-shot Segmentation Through Optimal Transport of Text Prompts

Kwanyoung Kim, Yujin Oh|arXiv (Cornell University)|Jan 28, 2023
Multimodal Machine Learning ApplicationsComputer Science6 citations
TL;DR

ZegOT proposes a novel zero-shot semantic segmentation framework that leverages optimal transport to align multiple learnable text prompts with frozen CLIP image embeddings, enabling each prompt to focus on distinct visual attributes. By introducing a Multiple Prompt Optimal Transport (MPOT) solver, ZegOT achieves state-of-the-art performance on PASCAL VOC 2012 and PASCAL Context without fine-tuning the vision-language model.

ABSTRACT

Recent success of large-scale Contrastive Language-Image Pre-training (CLIP) has led to great promise in zero-shot semantic segmentation by transferring image-text aligned knowledge to pixel-level classification. However, existing methods usually require an additional image encoder or retraining/tuning the CLIP module. Here, we propose a novel Zero-shot segmentation with Optimal Transport (ZegOT) method that matches multiple text prompts with frozen image embeddings through optimal transport. In particular, we introduce a novel Multiple Prompt Optimal Transport Solver (MPOT), which is designed to learn an optimal mapping between multiple text prompts and visual feature maps of the frozen image encoder hidden layers. This unique mapping method facilitates each of the multiple text prompts to effectively focus on distinct visual semantic attributes. Through extensive experiments on benchmark datasets, we show that our method achieves the state-of-the-art (SOTA) performance over existing Zero-shot Semantic Segmentation (ZS3) approaches.

Motivation & Objective

  • To address the challenge of zero-shot semantic segmentation without fine-tuning vision-language models.
  • To improve alignment between multiple text prompts and visual features in pixel-level prediction.
  • To enable each text prompt to focus on distinct semantic attributes of the image, avoiding prompt collapse.
  • To achieve state-of-the-art performance using only learnable text prompts and a decoder, while keeping CLIP frozen.

Proposed method

  • Introduces a Multiple Prompt Optimal Transport (MPOT) solver to learn an optimal mapping between multiple text prompts and frozen image encoder features.
  • Uses the Sinkhorn algorithm for differentiable one-to-many assignment, allowing each pixel to be partially associated with all prompts.
  • Optimizes the transport plan on seen classes and transfers it to predict score maps for both seen and unseen classes.
  • Employs a linear layer for global text embedding alignment and a learnable image decoder for pixel-wise segmentation.
  • Leverages the vision-language alignment of CLIP without retraining or fine-tuning its image or text encoders.
  • Applies optimal transport to disentangle semantic focus across prompts, preventing convergence to similar features.
Figure 1 : Visualization of text prompts-related image pixel alignment. Without proposed MPOT, all the multiple prompts on each class ${P}^{i}$ are cohered and their related score maps resemble each others. On the other hand, with our MPOT, each ${P}^{i}$ is diversely projected and each ${P}^{i}$ -r
Figure 1 : Visualization of text prompts-related image pixel alignment. Without proposed MPOT, all the multiple prompts on each class ${P}^{i}$ are cohered and their related score maps resemble each others. On the other hand, with our MPOT, each ${P}^{i}$ is diversely projected and each ${P}^{i}$ -r

Experimental results

Research questions

  • RQ1Can optimal transport effectively align multiple text prompts with visual features in zero-shot semantic segmentation?
  • RQ2Does a one-to-many assignment via optimal transport outperform one-to-one or attention-based matching in prompt distribution and segmentation accuracy?
  • RQ3Can a fully frozen CLIP model be effectively leveraged for dense prediction using only learnable text prompts and a decoder?
  • RQ4How does MPOT improve performance on both seen and unseen classes compared to baseline prompt alignment?

Key findings

  • ZegOT achieves state-of-the-art performance on PASCAL VOC 2012 with 90.9 mIoU (U) and 91.4 hIoU, outperforming prior methods.
  • On PASCAL Context, ZegOT achieves 72.5 mIoU (U) and 59.5 hIoU, demonstrating strong generalization to unseen classes.
  • Ablation without MPOT results in a 5.5% drop in mIoU (U) on PASCAL VOC 2012 and a 7.5% drop on PASCAL Context, confirming MPOT's critical role.
  • The Sinkhorn-based optimal transport outperforms bipartite matching by 5.7 hIoU on PASCAL VOC 2012 and 7.9 hIoU on PASCAL Context.
  • Self-attention-based matching underperforms ZegOT by 6.5% mIoU (U) on PASCAL VOC 2012 and 13.2% on PASCAL Context, highlighting the advantage of OT in preserving frozen model knowledge.
  • t-SNE visualization confirms that MPOT enables dispersed, class-specific prompt distributions, while the baseline shows tightly clustered, non-discriminative prompts.
Figure 2 : Overall pipeline of our proposed ZegOT for zero-shot semantic segmentation. The only learnable parts are the multiple text prompts $\mathcal{P}$ , the single linear layer for global text alignment, and image decoder while entire CLIP encoder modules are frozen.
Figure 2 : Overall pipeline of our proposed ZegOT for zero-shot semantic segmentation. The only learnable parts are the multiple text prompts $\mathcal{P}$ , the single linear layer for global text alignment, and image decoder while entire CLIP encoder modules are frozen.

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.