Divide & Bind Your Attention for Improved Generative Semantic Nursing

Yumeng Li, Margret Keuper, Dan Zhang, Anna Khoreva
7/20/2023
cs.CVcs.AIcs.CL

Official code: boschresearch/Divide-and-Bind (38 stars, AGPL-3.0, last commit 2024-01-25).

Abstract

Emerging large-scale text-to-image generative models, e.g., Stable Diffusion (SD), have exhibited overwhelming results with high fidelity. Despite the magnificent progress, current state-of-the-art models still struggle to generate images fully adhering to the input prompt. Prior work, Attend & Excite, has introduced the concept of Generative Semantic Nursing (GSN), aiming to optimize cross-attention during inference time to better incorporate the semantics. It demonstrates promising results in generating simple prompts, e.g., "a cat and a dog". However, its efficacy declines when dealing with more complex prompts, and it does not explicitly address the problem of improper attribute binding. To address the challenges posed by complex prompts or scenarios involving multiple entities and to achieve improved attribute binding, we propose Divide & Bind. We introduce two novel loss objectives for GSN: a novel attendance loss and a binding loss. Our approach stands out in its ability to faithfully synthesize desired objects with improved attribute alignment from complex prompts and exhibits superior performance across multiple evaluation benchmarks.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0

Official implementation of "Divide & Bind Your Attention for Improved Generative Semantic Nursing" (BMVC 2023 Oral)

385Python, Jupyter NotebookSep 4, 20232 years agoAGPL-3.0
aigcdiffusion-modelsgenerative-modelpaper-resourcestable-diffusion+1 more

Similar Papers

Cite this paper

@article{li2023divide,
  title  = {Divide & Bind Your Attention for Improved Generative Semantic Nursing},
  author = {Yumeng Li and Margret Keuper and Dan Zhang and Anna Khoreva},
  year   = {2023},
  eprint = {2307.10864},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.10864v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.10864.svg)](https://codeofpaper.com/paper/2307.10864)

Discussion