Skip to main content
QUICK REVIEW

[論文レビュー] Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image Editing

Kai Wang, Fei Yang|arXiv (Cornell University)|Sep 27, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用数 14
ひとこと要約

DPL は、クロスアテンションの漏出を減らすために各時刻ごとに動的な名詞トークンを学習し、拡散モデルを用いた画像編集において背景やディストラクター領域を維持しつつ、対象オブジェクトの正確な編集を可能にします。

ABSTRACT

Large-scale text-to-image generative models have been a ground-breaking development in generative AI, with diffusion models showing their astounding ability to synthesize convincing images following an input text prompt. The goal of image editing research is to give users control over the generated images by modifying the text prompt. Current image editing techniques are susceptible to unintended modifications of regions outside the targeted area, such as on the background or on distractor objects which have some semantic or visual relationship with the targeted object. According to our experimental findings, inaccurate cross-attention maps are at the root of this problem. Based on this observation, we propose Dynamic Prompt Learning (DPL) to force cross-attention maps to focus on correct noun words in the text prompt. By updating the dynamic tokens for nouns in the textual input with the proposed leakage repairment losses, we achieve fine-grained image editing over particular objects while preventing undesired changes to other image regions. Our method DPL, based on the publicly available Stable Diffusion, is extensively evaluated on a wide range of images, and consistently obtains superior results both quantitatively (CLIP score, Structure-Dist) and qualitatively (on user-evaluation). We show improved prompt editing results for Word-Swap, Prompt Refinement, and Attention Re-weighting, especially for complex multi-object scenes.

研究の動機と目的

  • クロスアテンション漏れに起因するテキスト誘導型画像編集の意図しない変化の問題を動機づける。
  • Dynamic Prompt Learning (DPL) を提案し、各時刻ごとに名詞語の埋め込みを最適化して編集を局在化する。
  • クロスアテンションマップを精緻化するための漏洩焦点の損失(背景漏洩、非連結オブジェクトアテンション、アテンションバランシング)を開発する。
  • Null-Text Inversion および DDIM inversion を活用して実画像の正確な編集を可能にする。
  • Stable Diffusion を用いた複数オブジェクトの実画像プロンプトで編集品質の向上を示す。

提案手法

  • プロンプトの名詞語を動的で時刻依存のトークンへ変換する。
  • クロスアテンションを制約する3つの損失を導入する:背景漏洩損失、分離オブジェクトアテンション損失、アテンションバランシング損失。
  • 段階的なしきい値を用いた勾配ベースの最適化により、各時刻ごとにトークン埋め込みを更新し、アテンションマップが意図したオブジェクトに局在することを保証する。
  • Null-Text Inversion を用いて拡散軌跡を近似しつつ再構成忠実度を保持する。
  • DPL を P2P スタイルの編集と統合し、複数オブジェクトのシーンでの語の置換や他のプロンプト編集タスクを評価する。
  • 任意で自己アテンションクラスターから背景マスクを導出し、漏洩をさらに抑制する。

実験結果

リサーチクエスチョン

  • RQ1動的で時刻ごとにトークンを最適化することで、複数オブジェクトの編集におけるクロスアテンションの局在化を改善できるか?
  • RQ2背景漏洩、ディストラクター、アテンションバランシングといった漏洩焦点の損失は、ベースラインと比較して優れた編集品質をもたらすだろうか?
  • RQ3P2P などの既存の編集フレームワークと組み合わせた場合、実画像の複数オブジェクトで DPL はどのように機能するか?

主な発見

  • DPL は Null-Text inversion ベースラインに対して、特に複雑な複数オブジェクトシーンで、優れたクロスアテンションマップと編集品質を生み出す。
  • 定量的指標は、複数オブジェクト編集で DPL+P2P が NTI+P2P より高い CLIP スコアと低い Structure-Dist を示す。
  • アブレーション研究は、3つの損失(背景漏洩、分離オブジェクトアテンション、アテンションバランシング)をすべて組み合わせると、最良の局在化と編集結果を提供することを示す。
  • DPL は背景やディストラクターオブジェクトへの意図しない変化を減らすことで、Word-Swap および Prompt Refinement のシナリオを改善する。
  • ユーザ研究は定量的な成果を裏付け、複数オブジェクト編集では DPL+P2P が NTI+P2P より好まれることを示した。

この論文を読む

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

Nubintでこの論文を読む

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