mlsanityData to 14 Oct 2026

Cross-Attention Head Position Patterns Can Align with Human Visual Concepts in Text-to-Image Generative Models

arXiv 2412.02237 ↗First posted 3 Dec 2024cs.CV cs.AIcited by 7

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

Abstract (arXiv)

Recent text-to-image diffusion models leverage cross-attention layers, which have been effectively utilized to enhance a range of visual generative tasks. However, our understanding of cross-attention layers remains somewhat limited. In this study, we introduce a mechanistic interpretability approach for diffusion models by constructing Head Relevance Vectors (HRVs) that align with human-specified visual concepts. An HRV for a given visual concept has a length equal to the total number of cross-attention heads, with each element representing the importance of the corresponding head for the given visual concept. To validate HRVs as interpretable features, we develop an ordered weakening analysis that demonstrates their effectiveness. Furthermore, we propose concept strengthening and concept adjusting methods and apply them to enhance three visual generative tasks. Our results show that HRVs can reduce misinterpretations of polysemous words in image generation, successfully modify five challenging attributes in image editing, and mitigate catastrophic neglect in multi-concept generation. Overall, our work provides an advancement in understanding cross-attention layers and introduces new approaches for fine-controlling these layers at the head level.

Key facts. Cited by 7 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. First posted on arXiv 3 Dec 2024.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 6.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Head Pursuit: Probing Attention Specialization in Multimodal Transformers
  2. 2026Concept Unlearning via Cross-Attention Activation Projection for Diffusion Models
  3. 2023Energy-Based Cross Attention for Bayesian Context Update in Text-to-Image Diffusion Models
  4. 2024Layout-to-Image Generation with Localized Descriptions using ControlNet with Cross-Attention Control
  5. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models
  6. 2023A-STAR: Test-time Attention Segregation and Retention for Text-to-image Synthesis
  7. 2024Attention Overlap Is Responsible for The Entity Missing Problem in Text-to-image Diffusion Models!
  8. 2024Enhancing Semantic Fidelity in Text-to-Image Synthesis: Attention Regulation in Diffusion Models