EliGen: Entity-Level Controlled Image Generation with Regional Attention

Hong Zhang, Zhongjie Duan, Xingjun Wang, Yingda Chen, Yu Zhang
1/2/2025
cs.CV

Official code: modelscope/DiffSynth-Studio (12,750 stars, Apache-2.0, last commit 2026-04-30).

Abstract

Recent advancements in diffusion models have significantly advanced text-to-image generation, yet global text prompts alone remain insufficient for achieving fine-grained control over individual entities within an image. To address this limitation, we present EliGen, a novel framework for Entity-level controlled image Generation. Firstly, we put forward regional attention, a mechanism for diffusion transformers that requires no additional parameters, seamlessly integrating entity prompts and arbitrary-shaped spatial masks. By contributing a high-quality dataset with fine-grained spatial and semantic entity-level annotations, we train EliGen to achieve robust and accurate entity-level manipulation, surpassing existing methods in both spatial precision and image quality. Additionally, we propose an inpainting fusion pipeline, extending its capabilities to multi-entity image inpainting tasks. We further demonstrate its flexibility by integrating it with other open-source models such as IP-Adapter, In-Context LoRA and MLLM, unlocking new creative possibilities. The source code, model, and dataset are published at https://github.com/modelscope/DiffSynth-Studio.git.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Enjoy the magic of Diffusion models!

12,7501,251PythonDec 7, 20235 months agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2025eligen,
  title  = {EliGen: Entity-Level Controlled Image Generation with Regional Attention},
  author = {Hong Zhang and Zhongjie Duan and Xingjun Wang and Yingda Chen and Yu Zhang},
  year   = {2025},
  eprint = {2501.01097},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.01097v3}
}

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

Discussion