Attention Overlap Is Responsible for The Entity Missing Problem in Text-to-image Diffusion Models!

📅 2024-10-28
🏛️ arXiv.org
📈 Citations: 2
Influential: 0
📄 PDF
🤖 AI Summary
Text-to-image diffusion models frequently suffer from entity omission in compositional generation. We identify excessive overlap among cross-attention maps as the primary cause, leading to attention dispersion over specific entities. To address this, we propose a fine-tuning-free attention deduplication mechanism: four training-agnostic decoupling losses—IoU, centroid distance, KL divergence, and clustering compactness—are introduced to directly regularize cross-attention distributions during denoising. Our method operates on standard architectures (e.g., Stable Diffusion) and requires only attention map analysis and lightweight regularization. It achieves consistent improvements across VQA accuracy, CLIP similarity, image captioning, and human evaluation—yielding a 9% absolute gain in human ratings and markedly enhancing fine-grained text–image alignment. This work provides the first systematic empirical validation that attention overlap is a root cause of entity omission and introduces the first training-free, plug-and-play attention decoupling solution.

Technology Category

Application Category

📝 Abstract
Text-to-image diffusion models, such as Stable Diffusion and DALL-E, are capable of generating high-quality, diverse, and realistic images from textual prompts. However, they sometimes struggle to accurately depict specific entities described in prompts, a limitation known as the entity missing problem in compositional generation. While prior studies suggested that adjusting cross-attention maps during the denoising process could alleviate this problem, they did not systematically investigate which objective functions could best address it. This study examines three potential causes of the entity-missing problem, focusing on cross-attention dynamics: (1) insufficient attention intensity for certain entities, (2) overly broad attention spread, and (3) excessive overlap between attention maps of different entities. We found that reducing overlap in attention maps between entities can effectively minimize the rate of entity missing. Specifically, we hypothesize that tokens related to specific entities compete for attention on certain image regions during the denoising process, which can lead to divided attention across tokens and prevent accurate representation of each entity. To address this issue, we introduced four loss functions, Intersection over Union (IoU), center-of-mass (CoM) distance, Kullback-Leibler (KL) divergence, and clustering compactness (CC) to regulate attention overlap during denoising steps without the need for retraining. Experimental results across a wide variety of benchmarks reveal that these proposed training-free methods significantly improve compositional accuracy, outperforming previous approaches in visual question answering (VQA), captioning scores, CLIP similarity, and human evaluations. Notably, these methods improved human evaluation scores by 9% over the best baseline, demonstrating substantial improvements in compositional alignment.
Problem

Research questions and friction points this paper is trying to address.

Investigates causes of entity missing in diffusion models
Proposes loss functions to reduce attention overlap
Improves compositional accuracy without model retraining
Innovation

Methods, ideas, or system contributions that make the work stand out.

Reduces attention overlap between entities
Introduces four loss functions
Improves compositional accuracy without retraining
🔎 Similar Papers
No similar papers found.
A
Arash Mari Oriyad
Department of Computer Engineering, Sharif University of Technology
M
Mohammadamin Banayeeanzade
Department of Computer Engineering, Sharif University of Technology
Reza Abbasi
Reza Abbasi
Master's Student, Department of Computer Engineering, Sharif University of Technology
Multimodal ModelsMedical Image AnalysisOut-Of-Distribution Generalization
M
M. H. Rohban
Department of Computer Engineering, Sharif University of Technology
M
M. Baghshah
Department of Computer Engineering, Sharif University of Technology