Manuscript Offprint

arXiv:2610.24738

Editing Images into Reusable Layers via Compositional Edit-Prior Distillation

Wen Xue, Yong Liu, Xueheng Li, Si Wu, Yong Xu, Yipeng Sun, Yan Li, Simiu Gu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

High-quality image editing requires precise modification of target regions while preserving the content of unrelated regions. Existing editing models produce flattened outputs that limit precise local manipulation and layer reuse, while decomposition methods typically optimize layer recovery separately from instruction-driven editing. To this end, we introduce LayerEditor, a unified framework that couples instruction-guided image editing with controllable generation of reusable RGBA layers. At its core, In-Context RGB–Alpha Token Modeling jointly represents the edited canvas and an ordered sequence of RGB–Alpha layers within a single token sequence, enabling semantic edits and explicit control over individual layer content. To retain the pretrained model's editing capability during adaptation to layered outputs, we propose Compositional Edit-Prior Distillation, which transfers its editing prior to both the edited canvas and the image composed from the predicted layers. To support training and evaluation, we construct LayerEditor-100K, a large-scale paired image-editing dataset with ordered RGBA layer annotations, and introduce dedicated benchmarks for layered editing. Extensive experiments demonstrate that LayerEditor maintains strong editing fidelity while generating accurate RGBA layers, supporting both flexible layer-level manipulation and multi-layer decomposition.

1 INTRODUCTION

Instruction-driven image editing aims to modify specified content while preserving unrelated regions of the source image. Recent editing models (Wu et al., 2025; Super Intelligence Team, 2026) commonly employ multimodal diffusion transformers to jointly model textual instructions and images within a unified token sequence, synthesizing a single flattened edited canvas in which text, objects, and background content are fused together. Such flattened outputs make it difficult to manipulate fine-grained details or incorporate detailed user-provided elements, which is crucial for downstream applications such as e-commerce content production and advertising design. Subsequent revisions therefore require repeated generation, increasing processing overhead and risking unintended changes to unrelated content and boundary artifacts.

Image decomposition provides a natural way to recover explicit layers from such flattened results (Yin et al., 2025; He et al., 2026; Tang et al., 2026). Decomposition and image editing can be combined into layered workflows, as illustrated by Agent Banana (Ye et al., 2026b). Yet editing and decomposition are typically optimized as separate stages with different objectives. Editing models focus on producing visually faithful results without considering the desired layer structure, while decomposition models recover layers after editing without jointly optimizing the requested edit and target layer structure. Consequently, even visually plausible edits may yield incomplete or poorly organized layers that are difficult to reuse. Correcting these layer-level errors often requires repeated model calls and manual refinement, increasing labor costs while reducing the efficiency and

∗^{*}Equal contribution. †\daggerCorresponding author.

Source

Figure

Instruction

Replacing the city photograph from "Amsterdam" to "Venice." Generate 6 RGBA layers with background, objects, texts and so on.

Edited Result

Predicted Layers

Reusable Layer Editing

Translate the Text layer into Chinese.

Restyle the Background into blue.

Figure 1: LayerEditor edits images into reusable RGBA layers with user-specified layer content. The predicted layers can be independently manipulated for subsequent edits.

scalability of layered editing. These limitations motivate a unified formulation that jointly performs instruction-driven editing and reusable layer generation.

In this work, we introduce LayerEditor, a unified model that couples instruction-driven image editing with controllable generation of reusable RGBA layers, as illustrated in Figure 1. We propose In-Context RGB–Alpha Token Modeling to jointly represent the edited canvas and ordered RGB–Alpha layers within one token sequence. A dedicated Alpha decoder further recovers continuous opacity for fine structures and semitransparent boundaries. Moreover, directly extending a pretrained editing model to layered outputs tends to degrade its original editing capability, i.e., the edited content exhibits quality drops or artifacts. To mitigate this degradation, we introduce on-policy Compositional Edit-Prior Distillation (C-EPD) which facilitates the model's adaptation to layered outputs while maintaining its pre-trained generative editing capacity. C-EPD queries a frozen editing teacher at intermediate states along the student's denoising trajectory, where the teacher supervises the direct edited canvas and the composition of layers predicted by the layered editing student. Extensive experiments demonstrate that LayerEditor preserves strong editing performance while supporting flexible layered outputs with variable layer counts and user-specified layer content.

To further provide paired supervision for both editing outcomes and their underlying layer structures, we construct LayerEditor-100K, a large-scale dataset tailored to instruction-driven layered image editing. Each example contains a source image, editing instruction, edited target, and ordered RGBA layer stack, covering diverse text, object, and appearance edits with variable layer counts. In addition, since existing benchmarks do not adequately evaluate instruction-driven layered editing, we construct Crello-Testset and ScaleEdit-Testset, with dedicated settings for layer-count control and user-specified layer content, enabling systematic evaluation of editing fidelity, layer quality, and layered controllability.

• We introduce LayerEditor, a unified model for editing images into reusable RGBA layers through In-Context RGB–Alpha Token Modeling. LayerEditor supports variable layer counts and user-specified layer content.

• We construct LayerEditor-100K, a large-scale dataset tailored to layered editing, containing annotated image pairs with ordered RGBA layers, together with two benchmarks, Crello-Testset and ScaleEdit-Testset, for evaluating layered editing quality and controllability.

• We propose C-EPD, an on-policy distillation strategy that transfers the pretrained editing prior to layered outputs, preserving editing fidelity during layered adaptation.

References (40)