Object-Conditioned Energy-Based Attention Map Alignment in Text-to-Image Diffusion Models

Yasi Zhang, Peiyu Yu, Yingnian Wu
4/1/2024
25 citations
diffusion-flowtransformer-attention

No official code found. Best implementation: YasminZhang/EBAMA (16 stars, Python, MIT, last commit 2025-05-24).

Abstract

Text-to-image diffusion models have shown great success in generating high-quality text-guided images. Yet, these models may still fail to semantically align generated images with the provided text prompts, leading to problems like incorrect attribute binding and/or catastrophic object neglect.

Show full abstract

Given the pervasive object-oriented structure underlying text prompts, we introduce a novel object-conditioned Energy-Based Attention Map Alignment (EBAMA) method to address the aforementioned problems. We show that an object-centric attribute binding loss naturally emerges by approximately maximizing the log-likelihood of a $z$-parameterized energy-based model with the help of the negative sampling technique. We further propose an object-centric intensity regularizer to prevent excessive shifts of objects attention towards their attributes. Extensive qualitative and quantitative experiments, including human evaluation, on several challenging benchmarks demonstrate the superior performance of our method over previous strong counterparts. With better aligned attention maps, our approach shows great promise in further enhancing the text-controlled image editing ability of diffusion models.

View on arXivView PDF

Code Implementations(1)

YasminZhang/EBAMACommunity76%
MIT

[ECCV 2024] Official repository of ECCV 2024 paper: Object-Conditioned Energy-Based Attention Map Alignment in Text-to-Image Diffusion Models

160PythonNov 26, 20231 years agoMIT
attention-mapenergy-basedtext-to-image-diffusion

Similar Papers

Cite this paper

@article{zhang2024objectconditioned,
  title  = {Object-Conditioned Energy-Based Attention Map Alignment in Text-to-Image Diffusion Models},
  author = {Yasi Zhang and Peiyu Yu and Yingnian Wu},
  year   = {2024},
  eprint = {2404.07389},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2404.07389},
  journal = {ECCV 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.07389.svg)](https://codeofpaper.com/paper/2404.07389)

Discussion