Text-Conditioned Background Generation for Editable Multi-Layer Documents
Taewon Kang, Joseph K J, Chris Tensmeyer, Jihyung Kil, Wanrong Zhu, Ming C. Lin, Vlad I. Morariu
TL;DR
This work tackles the challenge of generating background visuals for multi-page, text-rich documents without compromising readability. It introduces a latent-masking strategy to softly attenuate diffusion updates near foreground content, plus Automated Readability Optimization to place minimal-opacity, rounded backing shapes that satisfy WCAG contrast requirements. A summarization-and-instruction pipeline with a Recursive Narrative Bank sustains cross-page thematic coherence, while a layered document representation enables targeted background editing without altering text or figures. The framework is training-free and demonstrates superior readability, design quality, and multi-page consistency compared with baselines, highlighting its practical impact for automated, design-aligned document editing workflows.
Abstract
We present a framework for document-centric background generation with multi-page editing and thematic continuity. To ensure text regions remain readable, we employ a \emph{latent masking} formulation that softly attenuates updates in the diffusion space, inspired by smooth barrier functions in physics and numerical optimization. In addition, we introduce \emph{Automated Readability Optimization (ARO)}, which automatically places semi-transparent, rounded backing shapes behind text regions. ARO determines the minimal opacity needed to satisfy perceptual contrast standards (WCAG 2.2) relative to the underlying background, ensuring readability while maintaining aesthetic harmony without human intervention. Multi-page consistency is maintained through a summarization-and-instruction process, where each page is distilled into a compact representation that recursively guides subsequent generations. This design reflects how humans build continuity by retaining prior context, ensuring that visual motifs evolve coherently across an entire document. Our method further treats a document as a structured composition in which text, figures, and backgrounds are preserved or regenerated as separate layers, allowing targeted background editing without compromising readability. Finally, user-provided prompts allow stylistic adjustments in color and texture, balancing automated consistency with flexible customization. Our training-free framework produces visually coherent, text-preserving, and thematically aligned documents, bridging generative modeling with natural design workflows.
