Dense Text-to-Image Generation with Attention Modulation

Yunji Kim, Jiyoung Lee, Jin-Hwa Kim, Jung-Woo Ha, Jun-Yan Zhu
2/14/2026

No official code found. Best implementation: naver-ai/DenseDiffusion (508 stars, Apache-2.0, last commit 2023-11-14).

Abstract

Existing text-to-image diffusion models struggle to synthesize realistic images given dense captions, where each text prompt provides a detailed description for a specific image region. To address this, we propose DenseDiffusion, a training-free method that adapts a pre-trained text-to-image model to handle such dense captions while offering control over the scene layout. We first analyze the relationship between generated images’ layouts and the pre-trained model’s intermediate attention maps. Next, we develop an attention modulation method that guides objects to appear in specific regions according to layout guidance. Without requiring additional fine-tuning or datasets, we improve image generation performance given dense captions regarding both automatic and human evaluation scores. In addition, we achieve similar-quality visual results with models specifically trained with layout conditions. Code and data are available at https://github.com/naver-ai/DenseDiffusion.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official Pytorch Implementation of DenseDiffusion (ICCV 2023)

50835Python, Jupyter NotebookAug 25, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{kim2026dense,
  title  = {Dense Text-to-Image Generation with Attention Modulation},
  author = {Yunji Kim and Jiyoung Lee and Jin-Hwa Kim and Jung-Woo Ha and Jun-Yan Zhu},
  year   = {2026},
  eprint = {2308.12964},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2308.12964},
  journal = {ICCV 2023 2023}
}

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/2308.12964.svg)](https://codeofpaper.com/paper/2308.12964)

Discussion