通过组合编辑先验蒸馏将图像编辑为可复用图层

·

研究论文 · 2026/10/23

高质量图像编辑需要精确修改目标区域,同时保留无关区域的内容。现有编辑模型产生扁平输出,限制了精确的局部操作和图层重用,而分解方法通常将图层恢复与指令驱动的编辑分开优化。为此,我们提出了LayerEditor,一个统一框架,将指令引导的图像编辑与可重用RGBA图层的可控生成相结合。其核心是上下文RGB-Alpha令牌建模,在单个令牌序列中联合表示编辑后的画布和有序的RGB-Alpha图层序列,从而实现语义编辑和对单个图层内容的显式控制。为了在适应分层输出时保留预训练模型的编辑能力,我们提出了组合编辑先验蒸馏,将其编辑先验转移到编辑后的画布和由预测图层合成的图像上。为了支持训练和评估,我们构建了LayerEditor-100K,一个带有有序RGBA图层注释的大规模配对图像编辑数据集,并引入了专门的分层编辑基准。大量实验表明,LayerEditor在保持强大编辑保真度的同时生成准确的RGBA图层,支持灵活的图层级操作和多层分解。

该论文解决了图像编辑中图层重用和精确局部操作的难题,提出了统一的框架和有效的蒸馏方法,并构建了大规模数据集和基准,推动了分层图像编辑领域的发展,具有较高的研究和应用价值。

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.

阅读原文

参与讨论