mlsanityData to 14 Oct 2026

Text Embedding is Not All You Need: Attention Control for Text-to-Image Semantic Alignment with Text Self-Attention Maps

arXiv 2411.15236 ↗First posted 21 Nov 2024cs.CV cs.LGcited by 12

On the map: Diffusion models → Image generation, text-to-image and editing

Abstract (arXiv)

In text-to-image diffusion models, the cross-attention map of each text token indicates the specific image regions attended. Comparing these maps of syntactically related tokens provides insights into how well the generated image reflects the text prompt. For example, in the prompt, "a black car and a white clock", the cross-attention maps for "black" and "car" should focus on overlapping regions to depict a black car, while "car" and "clock" should not. Incorrect overlapping in the maps generally produces generation flaws such as missing objects and incorrect attribute binding. Our study makes the key observations investigating this issue in the existing text-to-image models:(1) the similarity in text embeddings between different tokens -- used as conditioning inputs -- can cause their cross-attention maps to focus on the same image regions; and (2) text embeddings often fail to faithfully capture syntactic relations already within text attention maps. As a result, such syntactic relationships can be overlooked in cross-attention module, leading to inaccurate image generation. To address this, we propose a method that directly transfers syntactic relations from the text attention maps to the cross-attention module via a test-time optimization. Our approach leverages this inherent yet unexploited information within text attention maps to enhance image-text semantic alignment across diverse prompts, without relying on external guidance.

Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 37 of its 43 references that are in the map. First posted on arXiv 21 Nov 2024.

Builds on

37 of 43 references.

Closest ancestors · 16

Same direction, newest first

  1. 2024Attention Overlap Is Responsible for The Entity Missing Problem in Text-to-image Diffusion Models!28 Oct
  2. 2024AlignIT: Enhancing Prompt Alignment in Customization of Text-to-Image Models27 Jun
  3. 2024Towards Understanding the Working Mechanism of Text-to-Image Diffusion Model24 May
  4. 2024Uncovering the Text Embedding in Text-to-Image Diffusion Models1 Apr
  5. 2024Enhancing Semantic Fidelity in Text-to-Image Synthesis: Attention Regulation in Diffusion Models11 Mar
  6. 2024ELLA: Equip Diffusion Models with LLM for Enhanced Semantic Alignment8 Mar
  7. 2023CONFORM: Contrast is All You Need For High-Fidelity Text-to-Image Diffusion Models11 Dec
  8. 2023Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image Editing27 Sep
  9. 2023Dense Text-to-Image Generation with Attention Modulation24 Aug
  10. 2023A-STAR: Test-time Attention Segregation and Retention for Text-to-image Synthesis26 Jun
  11. 2023Linguistic Binding in Diffusion Models: Enhancing Attribute Correspondence through Attention Map Alignment15 Jun
  12. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
4 more
  1. 2022Training-Free Structured Diffusion Guidance for Compositional Text-to-Image Synthesis9 Dec
  2. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
  3. 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
  4. 2022DALL-Eval: Probing the Reasoning Skills and Social Biases of Text-to-Image Generation Models8 Feb

Other references · 21

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  6. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
  7. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,322
  8. 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
  9. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
  10. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  11. 2022Scaling Autoregressive Models for Content-Rich Text-to-Image Generationcited by 1,295
  12. 2023PixArt-α: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesiscited by 864
9 more
  1. 2022When and why vision-language models behave like bags-of-words, and what to do about it?cited by 610
  2. 2023TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answeringcited by 428
  3. 2024Massive Activations in Large Language Modelscited by 294
  4. 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 208
  5. 2022mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connectionscited by 187
  6. 2024Improving Text-to-Image Consistency via Automatic Prompt Optimizationcited by 90
  7. 2024Not All Noises Are Created Equally:Diffusion Noise Selection and Optimizationcited by 71
  8. 2024Rethinking the Spatial Inconsistency in Classifier-Free Diffusion Guidancecited by 59
  9. 2024MC2: Multi-concept Guidance for Customized Multi-concept Generationcited by 26

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 7.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Object-Attribute Binding in Text-to-Image Generation: Evaluation and Control
  2. 2024Towards Better Text-to-Image Generation Alignment via Attention Modulation
  3. 2026STEDiff: Strengthening Text Embedding for Text-to-Image Alignment in Diffusion Model
  4. 2024CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept Matching
  5. 2023Compositional Text-to-Image Synthesis with Attention Map Control of Diffusion Models
  6. 2024Object-Conditioned Energy-Based Attention Map Alignment in Text-to-Image Diffusion Models
  7. 2026Text-to-Image Models Need Less from Text Encoders Than You Think
  8. 2024Unveiling and Mitigating Memorization in Text-to-image Diffusion Models through Cross Attention