FolioWeaver: A LayerGraph-Grounded Agent for Layered Image Generation and Editing

Wentao Lu, Shengzhe Cui, Xihao Wu, Dingxin Yan, Yixuan Qin, Pengfei FangarXiv 2026

Imagine you’re working on a digital poster. You ask an AI to generate a "coffee shop scene," and it gives you a beautiful, flat image. But then you realize the cup is the wrong shade of blue, and the text "Coffee Time" should really say "Morning Coffee." In a standard AI setup, you’re stuck: changing one detail often means regenerating the whole image, losing that perfect lighting or the specific arrangement of flowers you liked.

FolioWeaver changes the game by treating image generation not as a one-off "print" command, but as a living, editable "Photoshop project" managed by an intelligent agent.

TL;DR

FolioWeaver is an agentic framework that generates images as a collection of independent, editable layers tied together by a persistent "LayerGraph." Unlike standard generators that produce flat pixels, FolioWeaver maintains a stateful scene, allowing you to tweak specific objects, move text, or change colors iteratively without ruining the rest of the composition.

What Problem Does This Paper Address?

Current text-to-image models are mostly "one-shot" wonders. Even models that can produce layers often struggle with iterative editing. If you give them successive feedback (e.g., "make the cup blue," then "move it left"), they often lose track of the original scene's context or "bleed" content between layers.

The authors identify a core gap: a lack of a persistent scene state. Without a way to record how layers relate to each other and to the user's original intent, the system can't perform targeted edits or "self-repair" when a generation goes slightly off-track.

Methods

The researchers built FolioWeaver around a central concept called the LayerGraph. This graph binds layer identities, semantics (what it is), appearance, and spatial relations to actual pixel assets.

The system operates in a loop:

  1. Planning: A LLM-based Planner (Qwen3.5) translates your prompt into a structured PlannerGraph, deciding which layers are needed and where they go.
  2. Consistency via Anchors: To ensure all layers look like they belong in the same image, the system generates a single Anchor Image. This acts as a visual North Star for the Local Object Editor, which generates the individual RGBA assets (objects with transparency).
  3. The Editing Agent: This is the "brain" of the operation (based on Qwen3.8). It observes the current state and user feedback, then proposes "patches" to the LayerGraph.
  4. Selective Execution & Verification: Instead of regenerating everything, the Selective Layer Executor only updates the affected layers. A Visual Verifier then checks the result: "Did the cup actually turn blue? Is the text readable?" If not, it retries.
Figure 2. FolioWeaver overview. Initial generation establishes an Executable Scene State for subsequent editing and self-repair.

Datasets

The authors introduced LayerFolio, a massive, human-reviewed dataset of 100,377 layered scenes. It covers six domains, including graphic design, UI, and 3D renders.

They also proposed two new evaluation protocols:

  • AtomicQA: Uses a vision-language model to ask binary questions about the image (e.g., "Is there a blue cup?") to measure how well the AI followed instructions.
  • CBLP (Class-Balanced Layer Purity): A metric that checks if layers are "clean." For example, if you have a "cat" layer, does it contain only the cat, or is there a bit of the "chair" layer stuck to its fur?

Key Insights and Ideas

  • Statefulness is Key: By maintaining an "Executable Scene State," the model doesn't have to guess what it did in the previous turn. It has a record of every asset and its properties.
  • The "Anchor" Strategy: Generating objects independently usually leads to a "collage" look where lighting and style don't match. Using a shared visual reference (the Anchor Image) solves this consistency problem.
  • Agentic Self-Repair: The system can catch its own mistakes. If the initial generation misses a requirement, the Editing Agent treats it as a "detected issue" and fixes it before the user even sees it.
Figure 1. Illustrative example of continuous layer-level editing in FolioWeaver.

Key Results

FolioWeaver significantly outperforms existing layered generation methods like LayerDiffuse and ART+.

  • Layer Purity: On the CBLP metric, FolioWeaver scored 54.06, nearly doubling the performance of some baselines, meaning its layers are much cleaner and more "extractable."
  • Fidelity: It achieved a lower (better) FID score of 21.24, indicating higher overall image quality.
  • Multi-turn Success: In tests of successive edits, FolioWeaver reached a success rate of 79.92%, outperforming other agentic baselines by over 8 percentage points.
Qualitative comparison showing FolioWeaver's superior layer organization compared to other methods.

Limitations and Future Work

While powerful, the system isn't perfect. The authors note that the agent can sometimes exhaust its "editing budget" (the number of allowed retries) without successfully completing a complex task. Additionally, while the LayerGraph handles basic relations, extremely complex occlusions (objects weaving in and out of each other) remain a challenge for clean layer separation.

Future work could involve expanding the agent's toolset—perhaps giving it the ability to "paint" specific masks or handle more complex typographic layouts.

Summary updated

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.
BibTeX
@misc{lu2026folioweaver,
  author = {Wentao Lu and Shengzhe Cui and Xihao Wu and Dingxin Yan and Yixuan Qin and Pengfei Fang},
  title = {{FolioWeaver: A LayerGraph-Grounded Agent for Layered Image Generation and Editing}},
  year = {2026},
  eprint = {2611.30067},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30067},
}
Figure