Expressive Text-to-Image Generation with Rich Text
Songwei Ge, Taesung Park, Jun-Yan Zhu, Jia-Bin Huang
TL;DR
This work introduces rich-text-to-image generation, enabling fine-grained, region-wise control of text-to-image synthesis by leveraging a rich-text editor's attributes (color, style, texture, footnotes, embedded images). It uses a two-stage region-based diffusion framework that derives word-to-region layouts from plain-text attention, then applies region-specific prompts and injections to render local attributes while preserving overall structure. A new rich-text benchmark assesses precise color rendering, local style control, and complex prompt alignment, with extensive quantitative and qualitative evidence showing improvements over baselines. The approach is compatible with multiple diffusion models (e.g., SD1-5, SDXL) and can be extended to editing real images, highlighting practical impact for customizable, region-aware image generation and editing tasks.
Abstract
Plain text has become a prevalent interface for text-to-image synthesis. However, its limited customization options hinder users from accurately describing desired outputs. For example, plain text makes it hard to specify continuous quantities, such as the precise RGB color value or importance of each word. Furthermore, creating detailed text prompts for complex scenes is tedious for humans to write and challenging for text encoders to interpret. To address these challenges, we propose using a rich-text editor supporting formats such as font style, size, color, and footnote. We extract each word's attributes from rich text to enable local style control, explicit token reweighting, precise color rendering, and detailed region synthesis. We achieve these capabilities through a region-based diffusion process. We first obtain each word's region based on attention maps of a diffusion process using plain text. For each region, we enforce its text attributes by creating region-specific detailed prompts and applying region-specific guidance, and maintain its fidelity against plain-text generation through region-based injections. We present various examples of image generation from rich text and demonstrate that our method outperforms strong baselines with quantitative evaluations.
