Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Linguistic Binding in Diffusion Models: Enhancing Attribute Correspondence through Attention Map Alignment

About

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.

Royi Rassin, Eran Hirsch, Daniel Glickman, Shauli Ravfogel, Yoav Goldberg, Gal Chechik• 2023

Related benchmarks

TaskDatasetResultRank
Text-to-Image GenerationT2I-CompBench
Shape Fidelity45.5
94
Attribute Binding in Text-to-Image GenerationBLIP-VQA
Color Binding70.1
18
Text-to-Image GenerationVFN
Precision48.4
16
Text-to-Image GenerationSemantic Binding Assessment Subsets
BLIP-VQA Color Accuracy0.701
11
Text-to-Image GenerationDVMP (challenge set)
Concept Separation29.22
10
Text-to-Image GenerationUEC-256 (test)
Precision17.3
10
Text-to-Image GenerationCustom Compositional Prompts 1.0 (test)
2 Objects Exist Score52
7
Text-to-Image GenerationPossession evaluation set (Experiment (iii))
Text-Image Similarity0.371
6
Text-to-Image GenerationExperiment (ii) One-to-One Correspondence Prompt Set
Missing Objects (Lenient)23.3
6
Food image generationUEC-256
Precision0.075
6
Showing 10 of 20 rows

Other info

Code

Follow for update