Towards Better Text-to-Image Generation Alignment via Attention Modulation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wu, Yihang, Cao, Xiao, Li, Kaixin, Chen, Zitan, Wang, Haonan, Meng, Lei, Huang, Zhiyong
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914764360253440
author Wu, Yihang
Cao, Xiao
Li, Kaixin
Chen, Zitan
Wang, Haonan
Meng, Lei
Huang, Zhiyong
author_facet Wu, Yihang
Cao, Xiao
Li, Kaixin
Chen, Zitan
Wang, Haonan
Meng, Lei
Huang, Zhiyong
contents In text-to-image generation tasks, the advancements of diffusion models have facilitated the fidelity of generated results. However, these models encounter challenges when processing text prompts containing multiple entities and attributes. The uneven distribution of attention results in the issues of entity leakage and attribute misalignment. Training from scratch to address this issue requires numerous labeled data and is resource-consuming. Motivated by this, we propose an attribution-focusing mechanism, a training-free phase-wise mechanism by modulation of attention for diffusion model. One of our core ideas is to guide the model to concentrate on the corresponding syntactic components of the prompt at distinct timesteps. To achieve this, we incorporate a temperature control mechanism within the early phases of the self-attention modules to mitigate entity leakage issues. An object-focused masking scheme and a phase-wise dynamic weight control mechanism are integrated into the cross-attention modules, enabling the model to discern the affiliation of semantic information between entities more effectively. The experimental results in various alignment scenarios demonstrate that our model attain better image-text alignment with minimal additional computational cost.
format Preprint
id arxiv_https___arxiv_org_abs_2404_13899
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Towards Better Text-to-Image Generation Alignment via Attention Modulation
Wu, Yihang
Cao, Xiao
Li, Kaixin
Chen, Zitan
Wang, Haonan
Meng, Lei
Huang, Zhiyong
Computation and Language
Artificial Intelligence
Multimedia
In text-to-image generation tasks, the advancements of diffusion models have facilitated the fidelity of generated results. However, these models encounter challenges when processing text prompts containing multiple entities and attributes. The uneven distribution of attention results in the issues of entity leakage and attribute misalignment. Training from scratch to address this issue requires numerous labeled data and is resource-consuming. Motivated by this, we propose an attribution-focusing mechanism, a training-free phase-wise mechanism by modulation of attention for diffusion model. One of our core ideas is to guide the model to concentrate on the corresponding syntactic components of the prompt at distinct timesteps. To achieve this, we incorporate a temperature control mechanism within the early phases of the self-attention modules to mitigate entity leakage issues. An object-focused masking scheme and a phase-wise dynamic weight control mechanism are integrated into the cross-attention modules, enabling the model to discern the affiliation of semantic information between entities more effectively. The experimental results in various alignment scenarios demonstrate that our model attain better image-text alignment with minimal additional computational cost.
title Towards Better Text-to-Image Generation Alignment via Attention Modulation
topic Computation and Language
Artificial Intelligence
Multimedia
url https://arxiv.org/abs/2404.13899