Skip to main content
QUICK REVIEW

[論文レビュー] OneFormer: One Transformer to Rule Universal Image Segmentation

Jitesh Jain, Jiachen Li|arXiv (Cornell University)|Nov 10, 2022
Multimodal Machine Learning ApplicationsComputer Science被引用数 17
ひとこと要約

OneFormerは、一度のパンジョティックアノテーションでの学習により、セマンティック、インスタンス、パノプティックセグメンテーションの3つのタスクでSOTA性能を達成する統合型のトランスフォーマー基盤フレームワークを導入した。タスクに応じた統合学習戦略とタスクトークン、およびクエリ・テキスト対照損失を用いることで、マルチタスク一般化を実現し、訓練リソースを1/3に抑えたにもかかわらず、ADE20K、Cityscapes、COCOの各データセットで特殊化されたMask2Formerモデルを上回る性能を発揮した。

ABSTRACT

Universal Image Segmentation is not a new concept. Past attempts to unify image segmentation in the last decades include scene parsing, panoptic segmentation, and, more recently, new panoptic architectures. However, such panoptic architectures do not truly unify image segmentation because they need to be trained individually on the semantic, instance, or panoptic segmentation to achieve the best performance. Ideally, a truly universal framework should be trained only once and achieve SOTA performance across all three image segmentation tasks. To that end, we propose OneFormer, a universal image segmentation framework that unifies segmentation with a multi-task train-once design. We first propose a task-conditioned joint training strategy that enables training on ground truths of each domain (semantic, instance, and panoptic segmentation) within a single multi-task training process. Secondly, we introduce a task token to condition our model on the task at hand, making our model task-dynamic to support multi-task training and inference. Thirdly, we propose using a query-text contrastive loss during training to establish better inter-task and inter-class distinctions. Notably, our single OneFormer model outperforms specialized Mask2Former models across all three segmentation tasks on ADE20k, CityScapes, and COCO, despite the latter being trained on each of the three tasks individually with three times the resources. With new ConvNeXt and DiNAT backbones, we observe even more performance improvement. We believe OneFormer is a significant step towards making image segmentation more universal and accessible. To support further research, we open-source our code and models at https://github.com/SHI-Labs/OneFormer

研究の動機と目的

  • セマンティック、インスタンス、パノプティックセグメンテーションの3つのタスクを統合した1つのアーキテクチャとモデルに統一すること。
  • 各タスクごとに別々に訓練し、モデルを別々に保存する必要をなくし、リソース要件を低減すること。
  • 推論時に1つのモデルが異なるセグメンテーションタスクに動的に適応できること。
  • タスクガイドドアテンションと対照的学習により、統合学習中にタスク間およびクラス間の区別を強化すること。
  • 1つの統合学習プロセスで、3つのセグメンテーションタスクすべてにおいてSOTAの性能を達成すること。

提案手法

  • 訓練中にセマンティック、インスタンス、パノプティックセグメンテーションの正例を均等にサンプリングする、タスクに応じた統合学習戦略を導入した。
  • 「タスクはパノプティックである」といったタスク入力トークンを用いて、モデルを現在のタスクに条件づけることで、1つのモデルでタスクに応じた動的推論を可能にした。
  • 学習済みクエリと正例ラベルのテキスト埋め込みとの間でクエリ・テキスト対照損失を用いることで、タスク間およびクラス間の識別性を向上させた。
  • 訓練中にパノプティックアノテーションからセマンティックおよびインスタンスラベルを導出するため、パノプティックデータセットのみを必要とした。
  • タスクトークンとして初期化された可学習クエリを用いたトランスフォーマー基盤アーキテクチャを採用し、動的タスク固有の特徴学習を可能にした。
  • クラス固有のテキスト埋め込みに「a photo with a {CLS}」というテキストプロンプトテンプレートを採用し、アブレーションにより強いベースライン性能を示した。

実験結果

リサーチクエスチョン

  • RQ1なぜ既存のパノプティックアーキテクチャは、統合的に訓練された場合にセマンティック、インスタンス、パノプティックセグメンテーションの3つのタスクに一般化できないのか?
  • RQ2別々に訓練しないで、タスク間およびクラス間の区別を意味的に学習できるか?
  • RQ3タスクに応じた入力トークンと対照的損失は、ユニバーサル画像セグメンテーションにおけるマルチタスク一般化を向上させ得るか?
  • RQ4パノプティックデータのみで統合学習を行うプロセスは、より多くのリソースを要するタスク固有の訓練に比べ、より良いまたは同等の性能を達成できるか?
  • RQ5再訓練なしに、推論時に1つのモデルが異なるセグメンテーションタスクに動的に適応できるか?

主な発見

  • OneFormerはADE20Kで49.8 PQ、35.9 AP、57.0 mIoUを達成し、各タスクに別々に訓練された特殊化されたMask2Formerモデルを上回った。
  • Swin-Lバックボーンを用いた場合、OneFormerは統合学習におけるMask2Former-Jointベースライン比で、PQが+1.1%、APが+2.2%、mIoUが+0.8%向上した。
  • 「タスクはインスタンスである」とプロンプトした場合、OneFormerはPQ 33.1、PQ^Th 48.8を達成し、明確なオブジェクトインスタンスに焦点を当てていることが示された。
  • セマンティックタスクではPQ^Stが50.2%と高い水準を維持した一方、PQ^Thは1.5%に低下し、モデルが「ストラップ」領域で「トゥイング」予測を抑制できていることが確認された。
  • 定性的な結果では、例えば「フェンス」を「壁」と誤分類するエラーが、Mask2Formerに比べて減少しており、改善が確認された。
  • OneFormerは、COCO、Cityscapes、ADE20Kの3つのデータセットで、1つのモデルと1/3の訓練計算量で、3つのセグメンテーションタスクすべてにおいてSOTA性能を達成した。

この論文を読む

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

Nubintでこの論文を読む

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