Skip to main content
QUICK REVIEW

[論文レビュー] Image Segmentation Using Text and Image Prompts

Timo Lüddecke, Alexander S. Ecker|arXiv (Cornell University)|Dec 18, 2021
Multimodal Machine Learning ApplicationsComputer Science被引用数 36
ひとこと要約

CLIPSegは、自由テキストまたは画像プロンプトに条件付けて画像をセグメントする軽量トランスフォーマー・デコーダを組み込んだCLIPを拡張し、単一の訓練済みモデルでゼロショット・ワンショット・指示表現タスクを実行できる。

ABSTRACT

Image segmentation is usually addressed by training a model for a fixed set of object classes. Incorporating additional classes or more complex queries later is expensive as it requires re-training the model on a dataset that encompasses these expressions. Here we propose a system that can generate image segmentations based on arbitrary prompts at test time. A prompt can be either a text or an image. This approach enables us to create a unified model (trained once) for three common segmentation tasks, which come with distinct challenges: referring expression segmentation, zero-shot segmentation and one-shot segmentation. We build upon the CLIP model as a backbone which we extend with a transformer-based decoder that enables dense prediction. After training on an extended version of the PhraseCut dataset, our system generates a binary segmentation map for an image based on a free-text prompt or on an additional image expressing the query. We analyze different variants of the latter image-based prompts in detail. This novel hybrid input allows for dynamic adaptation not only to the three segmentation tasks mentioned above, but to any binary segmentation task where a text or image query can be formulated. Finally, we find our system to adapt well to generalized queries involving affordances or properties. Code is available at https://eckerlab.org/code/clipseg.

研究の動機と目的

  • 再訓練なしで、任意のテキストまたは画像プロンプトに基づくセグメンテーションをテスト時に可能にする。
  • 単一のトレーニングプロセスで指示表現、ゼロショット、ワンショットのセグメンテーションをカバーする統一モデルを開発する。
  • CLIP埋め込みをバックボーンとして活用し、密な予測のためのコンパクトなトランスフォーマー・デコーダを訓練する。
  • オファーダンス(機能・特性)への一般化を高めるため、テキストと画像プロンプトおよびビジュアルプロンプト設計を調査する。

提案手法

  • 凍結済みのCLIP ViT-B/16をバックボーンとして使用し、スキップ接続を伴う軽量トランスフォーマー・デコーダを追加する。
  • 層S=[3,7,9]からCLIPアクティベーションを抽出し、デコーダのトークン空間に射影する。FiLM条件付けを介して結合する。
  • 二値前景/背景セグメーション目的を訓練し、マルチラベル設定に適応可能。
  • PhraseCutをビジュアルプロンプトとネガティブ(PhraseCut+)で拡張し、訓練データ拡張として画像-テキスト補間を用いる。
  • プロンプトと画像の整合性を最適化するため、クロップ、背景を暗くする、ブラーなど、様々なビジュアルプロンプト設計を体系的に評価する。

実験結果

リサーチクエスチョン

  • RQ1タスク固有の再訓練なしで、推論時に任意のテキストまたは画像プロンプトに基づいて1つのモデルがセグメンテーションを行えるか?
  • RQ2指示表現、ゼロショット、ワンショットのセグメンテーションタスクにおいて、テキストプロンプトと画像プロンプトは性能にどのように影響するか?
  • RQ3視覚的プロンプト設計がセグメンテーション品質と未知のプロンプトへの一般化に及ぼす影響は?
  • RQ4標準的なオブジェクトラベルを超えたオファーダンスや特性ベースのプロンプトへ、どの程度までモデルが一般化できるか?

主な発見

  • CLIPSeg (PC+) は、指示表現セグメンテーションで競争力を持つ性能を達成: mIoU 43.4(t=0.3)、IoUFG 54.7、AP 76.7;D=128 では mIoU 48.2、IoUFG 56.5、AP 78.2;PC では mIoU 46.1、IoUFG 56.2、AP 78.2。
  • Pascal-VOCでの一般化ゼロショットセグメンテーションで、CLIPSeg (PC+) は未知クラスのバランスを向上させる(例: unseen-10: mIoU S 35.7, mIoU U 43.1)し、Unseen-4 では mIoU U 47.3。
  • Pascal-5iのワンショットセグメンテーションでは、ViT(CLIP)を用いた CLIPSeg (PC+) が mIoU 59.5、IoU_BIN 75.0、AP 82.3 を達成し、HSNet等の最先端手法と競合する。
  • 視覚的プロンプト設計は性能に大きく影響する。最良の設計は、背景の影響を低減するステップ(クロップ、背景の暗化、ブラー)を組み合わせてCLIPの整合を改善する。
  • アブレーションにより、CLIP事前学習とデコーダー容量に重大な依存性が示される。Dを16に減らす、または視覚的/テキストプロンプトを削除すると性能が著しく低下する一方、CLIP事前学習を維持すると高い性能を得られる。
  • オファーダンスや特性を含む一般化プロンプトは実証的に機能し、PC+-訓練モデルはベースラインを上回り、より広い一般化を示す。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。