[Paper Review] Linguistic Binding in Diffusion Models: Enhancing Attribute Correspondence through Attention Map Alignment
SynGen intervenes during diffusion inference by aligning cross-attention maps to syntactic noun-modifier bindings, substantially improving attribute-object binding in text-to-image generation without retraining.
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.
Motivation & Objective
- Address improper binding in text-conditioned diffusion models where modifiers misbind to entities.
- Leverage syntactic analysis of prompts to identify entity-noun and modifier pairs.
- Introduce an inference-time loss over cross-attention maps to enforce noun-modifier binding.
Proposed method
- Parse prompts with a dependency parser to extract entity-nouns and their modifiers.
- Define a positive loss L_pos to maximize overlap between attention maps of related noun-modifier pairs.
- Define a negative loss L_neg to minimize overlap with unrelated words, encouraging distinct bindings.
- Combine losses into L = L_pos + L_neg and apply during the first 25 denoising steps in inference.
- Update latents via gradient steps z_t' = z_t - alpha * grad_{z_t} L during diffusion.
Experimental results
Research questions
- RQ1Can syntax-guided cross-attention alignment at inference time improve the faithfulness of image generation to prompts?
- RQ2Does enforcing noun-modifier binding reduce semantic leakage and attribute neglect across diverse prompts?
- RQ3How do positive and negative loss terms contribute to binding accuracy and visual quality?
- RQ4Is the method robust across datasets with varying modifier complexity and prompt structure?
Key findings
- SynGen consistently outperforms baselines on three datasets in human evaluation for concept separation and visual appeal.
- On ABC-6K, DVMP, and A&E-derived prompts, SynGen achieves higher binding accuracy and lower semantic leakage than strong baselines.
- Quantitatively, SynGen shows large improvements in Proper Binding and reductions in Improper Binding and Entity Neglect across datasets.
- Ablation shows both L_pos and L_neg are important; removing either term reduces performance, with the combination yielding the best results.
- The method does not require retraining and achieves substantial gains in faithful attribute-object correspondence.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.