Region-Aware Text-to-Image Generation via Hard Binding and Soft Refinement

Zhennan Chen, Yajie Li, Haofan Wang, Zhibo Chen, Zhengkai Jiang +4 more
11/10/2024
cs.CV

No official code found. Best implementation: NJU-PCALab/RAG-Diffusion (622 stars, MIT, last commit 2025-12-12).

Abstract

Regional prompting, or compositional generation, which enables fine-grained spatial control, has gained increasing attention for its practicality in real-world applications. However, previous methods either introduce additional trainable modules, thus only applicable to specific models, or manipulate on score maps within cross-attention layers using attention masks, resulting in limited control strength when the number of regions increases. To handle these limitations, we present RAG, a Regional-Aware text-to-image Generation method conditioned on regional descriptions for precise layout composition. RAG decouple the multi-region generation into two sub-tasks, the construction of individual region (Regional Hard Binding) that ensures the regional prompt is properly executed, and the overall detail refinement (Regional Soft Refinement) over regions that dismiss the visual boundaries and enhance adjacent interactions. Furthermore, RAG novelly makes repainting feasible, where users can modify specific unsatisfied regions in the last generation while keeping all other regions unchanged, without relying on additional inpainting models. Our approach is tuning-free and applicable to other frameworks as an enhancement to the prompt following property. Quantitative and qualitative experiments demonstrate that RAG achieves superior performance over attribute binding and object relationship than previous tuning-free methods.

View on arXivView PDF

Code Implementations(1)

MIT

[ICCV 2025] Region-Aware Text-to-Image Generation via Hard Binding and Soft Refinement 🔥

62228PythonNov 8, 202410 months agoMIT

Similar Papers

Cite this paper

@article{chen2024regionaware,
  title  = {Region-Aware Text-to-Image Generation via Hard Binding and Soft Refinement},
  author = {Zhennan Chen and Yajie Li and Haofan Wang and Zhibo Chen and Zhengkai Jiang and Jun Li and Qian Wang and Jian Yang and Ying Tai},
  year   = {2024},
  eprint = {2411.06558},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.06558v2}
}

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

Discussion