FolioWeaver: A LayerGraph-Grounded Agent for Layered Image Generation and Editing
Organizations: Southeast University
Abstract
Layered image generation separates images into compositable layers, allowing users to manipulate individual elements independently. However, such asset-level editability does not enable the generation system to interpret successive feedback, perform targeted edits, and preserve unaffected content. We introduce FolioWeaver, a LayerGraph-grounded agent that unifies layered-image generation and iterative editing through a persistent Executable Scene State. FolioWeaver constructs a LayerGraph and generates independent visual assets conditioned on a shared scene reference. An Editing Agent performs feedback-driven modifications and self-repair through scoped actions, selective layer execution, and visual verification, enabling targeted updates while reusing unchanged assets. We also publicly release LayerFolio, a dataset of 100,377 human-reviewed layered scenes spanning six visual domains, together with two evaluation protocols: AtomicQA for measuring requirement satisfaction and CBLP for assessing layer organization. Experiments demonstrate that FolioWeaver achieves superior layer organization and composite fidelity compared with direct layered-generation methods. Analyses validate the contributions of component adaptation, execution-grounded repair, and cross-domain training. FolioWeaver advances layered-image generation toward persistent, controllable, and iterative visual creation. The dataset is available at https://huggingface.co/datasets/FolioWeaver/LayerFolio.
Figures & tables
| Route | Method | CLIP | FID | AtomicQA | CBLP | |
|---|---|---|---|---|---|---|
| Score | AM | GM | ||||
| Flat image | Stable Diffusion 3.5 Large [ 4 ] | 40.45 | 26.54 | 71.05 | 63.33 | – |
| Qwen-Image [ 25 ] | 41.59 | 22.85 | 81.29 | 77.70 | – | |
| Gen. + Decomp. | Qwen-Image + Qwen-Image-Layered [ 27 ] | 41.57 | 24.35 | 81.15 | 77.62 | 41.57 |
| Direct layered | LayerDiffuse [ 28 ] | 29.29 | 41.92 | 44.93 | 34.99 | 23.34 |
| ART+ [ 2 ] | 38.88 | 27.48 | 65.84 | 56.64 | 43.24 | |
| Planner | Editor | Valid | CLIP | FID | AtomicQA | CBLP | |
|---|---|---|---|---|---|---|---|
| Score | AM | GM | |||||
| Native | Native | 43.54 | 38.74 | 48.82 | 66.14 | 62.55 | 42.15 |
| Native | SFT | 43.54 | 39.38 | 40.90 | 67.67 | 64.35 | 45.87 |
| SFT | Native | 96.86 | 39.16 | 33.40 | 69.04 | 64.53 | 46.95 |
| SFT | SFT | 96.86 | 39.90 | 28.61 | 71.95 | 65.02 | 49.87 |
| Policy | Tools | CLIP | FID | AtomicQA | CBLP | |
|---|---|---|---|---|---|---|
| Score | AM | GM | ||||
| No repair | – | 39.90 | 28.61 | 71.95 | 65.02 | 49.87 |
| Native | Off | 40.11 | 27.47 | 72.33 | 65.95 | 50.40 |
| SFT | Off | 40.33 | 25.45 | 74.57 | 67.28 | 51.74 |
| SFT+GRPO | Off | 40.32 | 22.83 | 75.58 | 69.32 | 53.03 |
| SFT+GRPO | On | 40.38 | 21.24 | 75.64 | 70.37 | 54.06 |
| Training | # Scenes | CLIP | FID | AtomicQA | CBLP | |
|---|---|---|---|---|---|---|
| setting | Score | AM | GM | |||
| Graphic-only | 20,000 | 39.17 | 35.26 | 67.14 | 63.44 | 43.40 |
| Multi-domain | 20,000 | 39.82 | 30.53 | 69.45 | 63.73 | 47.21 |
| Full-data | 95,377 | 39.90 | 28.61 | 71.95 | 65.02 | 49.87 |
| Method | SR | CS |
|---|---|---|
| Qwen-Image-Edit [ 25 ] | 66.58 | 6.11 |
| GenArtist † [ 24 ] | 71.54 | 7.86 |
| FolioWeaver (Ours) | 79.92 | 8.32 |
Image Generation
Image generation studies models that create or edit images from text, examples, layouts, and other structured controls.
See all 520 papersLimeCross: Context-Conditioned Layered Image Editing with Structural Consistency
Editable Visual Design
creative brain'' for requirement comprehension, task planning, and aesthetic judgment, while utilizing the image generation model as an on-demand visual world simulator'' to synthesize standalone visual assets. Operating under an ``imagine first, then act'' closed-loop workflow, the agent generates isolated assets, writes native HTML/CSS, and iteratively refines the design against visual rendering feedback. Furthermore, Agent Design Replay faithfully reproduces the creative and reasoning trajectory akin to that of professional human designers. Ultimately, the system delivers editable artifacts with decoupled layers and real text, enabling users to perform intuitive mouse dragging and layout adjustments on a graphical user interface. Validations on posters, infographics, and other scenarios show that this paradigm successfully achieves both refined aesthetics and production-grade editability.