Image editing generates reusable layered images with precise control

Editing Images into Reusable Layers via Compositional Edit-Prior Distillation

Computer Vision and Pattern Recognition

Summary

Editing images usually changes the whole picture, making it hard to tweak just one part or reuse pieces later. The authors present a new system called LayerEditor that changes images in layers, like sheets stacked on each other, making it easier to change only the parts you want. They also teach the system how to keep its editing skill while breaking images into these layers. To train and test LayerEditor, they created a big set of layered images paired with edits. This approach helps people do precise edits and use parts of images again.

What this means in practice

  • For graphic designers: Edit images with precise control over layers for flexible reuse and detailed adjustments.
  • For game developers: Create layered image assets that can be easily edited and recombined during game design.

Authors

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

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.