Skip to main content
QUICK REVIEW

[論文レビュー] Linguistic Binding in Diffusion Models: Enhancing Attribute Correspondence through Attention Map Alignment

Royi Rassin, Eran Hirsch|arXiv (Cornell University)|Jun 15, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用数 11
ひとこと要約

SynGen は拡散推論の過程で cross-attention maps を統語的名詞-修飾語結合に合わせることで介入し、再学習なしでテキストから画像への生成における属性-対象の結合を大幅に改善します。

ABSTRACT

Text-conditioned image generation models often generate incorrect associations between entities and their visual attributes. This reflects an impaired mapping between linguistic binding of entities and modifiers in the prompt and visual binding of the corresponding elements in the generated image. As one notable example, a query like "a pink sunflower and a yellow flamingo" may incorrectly produce an image of a yellow sunflower and a pink flamingo. To remedy this issue, we propose SynGen, an approach which first syntactically analyses the prompt to identify entities and their modifiers, and then uses a novel loss function that encourages the cross-attention maps to agree with the linguistic binding reflected by the syntax. Specifically, we encourage large overlap between attention maps of entities and their modifiers, and small overlap with other entities and modifier words. The loss is optimized during inference, without retraining or fine-tuning the model. Human evaluation on three datasets, including one new and challenging set, demonstrate significant improvements of SynGen compared with current state of the art methods. This work highlights how making use of sentence structure during inference can efficiently and substantially improve the faithfulness of text-to-image generation.

研究の動機と目的

  • テキスト条件付き拡散モデルで修飾語が対象に誤結合する不適切な結合を解消する。
  • プロンプトの構文解析を用いて対象名詞とその修飾語のペアを特定する。
  • 推論時のクロスアテンションマップに対する損失を導入して名詞-修飾語の結合を強制する。

提案手法

  • 依存関係解析器でプロンプトを解析し、対象名詞とその修飾語を抽出する。
  • 関連する名詞-修飾語ペアのアテンションマップの重なりを最大化する正の損失 L_pos を定義する。
  • 関連のない語との重なりを最小化し、異なる結合を促進する負の損失 L_neg を定義する。
  • L_pos と L_neg を組み合わせた損失 L = L_pos + L_neg を作成し、推論の最初の25回のdenoisingステップで適用する。
  • 拡散中に z_t' = z_t - alpha * grad_{z_t} L の勾配ステップで潜在変数を更新する。

実験結果

リサーチクエスチョン

  • RQ1推論時に構文誘導型クロスアテンション整列は、プロンプトへの忠実さの向上につながるか。
  • RQ2名詞-修飾語の結合を強制することで、意味的漏洩と属性の欠落を多様なプロンプトで減らせるか。
  • RQ3正の損失項と負の損失項は結合精度と視覚品質にどう寄与するか。
  • RQ4修飾語の複雑さやプロンプト構造が異なるデータセットでも方法は頑健か。

主な発見

  • SynGen は概念分離と視覚的魅力において人間評価で3つのデータセットでベースラインを一貫して上回った。
  • ABC-6K、DVMP、A&E由来のプロンプトで、SynGen は高い結合精度と低い意味的漏洩を強力なベースラインより達成した。
  • 定量的には、SynGen は「適切な結合」で大きな改善を示し、「不適切な結合」と「エンティティの欠如」でデータセット間での減少を示した。
  • アブレーションでは L_pos と L_neg の両方が重要で、いずれかを除くと性能が低下し、組み合わせが最良の結果をもたらした。
  • この方法は再学習を必要とせず、属性-対象の忠実な対応に substantial な利得を得られる。

この論文を読む

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

Nubintでこの論文を読む

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