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)|2023. 06. 15.
Multimodal Machine Learning ApplicationsComputer Science인용 수 11
한 줄 요약

SynGen은 확산 추론 중 교차 주의 맵을 구문상의 명사-수식어 바인딩에 맞추어 정렬함으로써 retraining 없이 텍스트-이미지 생성에서 속성-대상 바인딩을 크게 향상시킵니다.

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.

연구 동기 및 목표

  • 텍스트 조건부 확산 모델에서 수식어가 엔티티에 잘못 바인딩되는 문제를 addressed.
  • prompts를 구문 분석하여 엔티티-명사와 그 수식어 쌍을 식별합니다.
  • 교차 주의 맵에 대한 추론 시 손실을 부여하여 명사-수식어 바인딩을 강제합니다.

제안 방법

  • 프롬프트를 의존 구문 분석기로 파싱하여 엔티티-명사와 그들의 수식어를 추출합니다.
  • 관련 명사-수식어 쌍 간의 주의 맵 중첩을 최대화하는 양의 손실 L_pos를 정의합니다.
  • 관련성 없는 단어와의 중첩을 최소화하여 서로 다른 바인딩을 촉진하는 음수 손실 L_neg를 정의합니다.
  • 추론 시의 처음 25 단계를 대상으로 L = L_pos + L_neg를 결합하고 적용합니다.
  • 확산 중 z_t' = z_t - alpha * grad_{z_t} L과 같이 그래디언트 스텝으로 잠재변수를 업데이트합니다.

실험 결과

연구 질문

  • RQ1추론 시 구문 가이드 교차 주의 정렬이 프롬프트에 대한 이미지 생성의 신뢰성을 향상시킬 수 있는가?
  • RQ2명사-수식어 바인딩을 강제하는 것이 다양한 프롬프트에서 의미 누출과 속성 간과를 줄이는가?
  • RQ3양의 손실 항과 음의 손실 항이 바인딩 정확도와 시각적 품질에 어떻게 기여하는가?
  • RQ4다양한 수식어의 복잡성 및 프롬프트 구조를 가진 데이터셋에서도 방법이 강건한가?

주요 결과

  • SynGen은 개념 분리 및 시각적 매력에 대한 인간 평가에서 세 개 데이터셋에서 일관되게 기본 모델을 능가합니다.
  • ABC-6K, DVMP, 및 A&E 파생 프롬프트에서 SynGen은 강력한 베이스라인보다 더 높은 바인딩 정확도와 더 낮은 의미 누출을 달성합니다.
  • 정량적으로 SynGen은 데이터셋 전반에 걸쳐 Proper Binding의 큰 개선과 Improper Binding 및 Entity Neglect의 감소를 보여줍니다.
  • 특히 L_pos와 L_neg 둘 다 중요하다는 점이 확인되며, 어느 하나를 제거하면 성능이 저하되고, 두 항의 결합이 최상의 결과를 제공합니다.
  • 이 방법은 재학습이 필요 없고 속성-대상의 충실한 대응에서 상당한 이득을 얻습니다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.