Introduction
Generative AI has achieved remarkable success in creating standalone imagery. However, applying these capabilities to document-centric design—such as academic reports, slide decks, and brochures—remains a significant challenge. Standard diffusion models often treat documents as flat images, leading to two primary issues: the destruction of readability/layout and a lack of thematic consistency across multiple pages. When models are used to "re-skin" a document, they frequently overwrite text, ignore figures, or produce backgrounds so visually complex that the original content becomes illegible. Furthermore, generating backgrounds for a multi-page set often results in "thematic drift," where each page adopts a disjointed artistic style.
This paper introduces a training-free framework designed to generate thematic, high-quality backgrounds while preserving the editability and readability of multi-layer documents. By treating the document as a structured composition rather than a simple grid of pixels, the proposed system bridges the gap between pure image synthesis and practical design workflows.
Methodology
The framework integrates three novel, training-free components to ensure high-fidelity background generation without compromising the foreground content.
Latent Masking (LM)
To avoid the jarring edges associated with traditional "hard" binary masks, the system employs a "soft" attenuation field within the diffusion latent space. This field purposefully weakens diffusion updates in regions occupied by foreground elements (text and figures). This allows the background to evolve naturally around the existing content, maintaining crisp text boundaries and preserving the original layout.
Automated Readability Optimization (ARO)
Ensuring accessibility is a core requirement for professional documents. The ARO component automatically places semi-transparent, rounded backing shapes behind text blocks. Unlike static overlays, ARO dynamically calculates the minimal opacity required to meet WCAG 2.2 contrast standards based on the local luminance of the generated background.
LLM-based Multi-Page Consistency
Stylistic coherence is maintained through a two-stage recursive pipeline. A summarization model first distills page content into semantic labels. Subsequently, an instruction generation model utilizes a "Recursive Narrative Bank" to carry visual context from previous pages into the next prompt. This ensures that motifs, such as specific color palettes or geometric patterns, evolve logically throughout the document.
Experimental Setup and Dataset
Due to the lack of structured multi-page document datasets, the authors developed a new benchmark consisting of 14 distinct document instances (7 academic PDFs and 7 slide decks). Each instance comprises three pages following a standard Introduction-Body-Conclusion flow, specifically designed to test narrative and stylistic continuity across varying text densities and layout complexities.
Results and Evaluation
The proposed framework was evaluated against state-of-the-art baselines, including BAGEL and GPT-5. Quantitative results demonstrate a significant advantage in both readability and consistency.
As shown in the comparative analysis, baseline models frequently suffer from content removal (e.g., losing titles or entire sections) and resolution degradation. In contrast, the proposed system achieved a 99.75% WCAG compliance rate and an OCR accuracy of 0.97, vastly outperforming BAGEL (66.98% compliance, 0.55 OCR) and GPT-5 (55.02% compliance, 0.52 OCR). Multi-page consistency, measured via CLIP-based scores, reached 0.70. Furthermore, a user study involving 30 participants revealed an 83.57% preference for the system's outputs, with users specifically praising the superior color harmony and layout preservation.
Conclusion and Future Work
The framework demonstrates that "doing less" in the diffusion process—via soft latent masking—can lead to superior results in document editing. By integrating accessibility constraints directly into the generative loop, AI-driven design moves from purely aesthetic experimentation to functional professional utility.
Future research will address current limitations, such as minor artifacts in extremely dense layouts and occasional semantic oversimplification during the summarization stage. Expanding user controls to allow for "brand-aware" generation across longer documents remains a key objective for subsequent iterations.
Summary updated