LayerEdit: Towards End-to-End Context-Aware Layer Editing
1 HiDream.ai Inc.
2 University of Science and Technology of China
PDF (Coming Soon) Code (Coming Soon) Model (Coming Soon) Dataset (Coming Soon)
Abstract
Despite the recent advances in layer decomposition, instruction-guided layer editing remains a pivotal yet under-explored challenge in image manipulation. Existing solutions typically rely on decoupled cascaded scheme: compositing layer onto solid background, applying off-the-shelf RGB editor, and then re-matting foregrounds. This way inherently neglects global contextual harmony across layers and struggles to preserve intricate boundary details during matting. To address this, we present LayerEdit, an end-to-end framework for context-aware image layer editing built upon a pre-trained layer decomposition foundation model. Unlike the decoupled cascaded scheme, LayerEdit learns joint layer editing and high-fidelity matting by seamlessly synergizing editing priors from massive RGB data with the intrinsic hierarchical perception embedded in the decomposition backbone. Furthermore, rather than processing the input layer in isolation, LayerEdit amplifies context awareness by integrating the global semantic guidance from the holistic composite into the input layer. Empowered by the introduced RGB-to-RGBA knowledge transfer strategy and the effective utilization of the native RGBA structural representations, our model achieves exceptional layer manipulation within a single network relying on limited curated layer editing data. Extensive experiments demonstrate that LayerEdit outperforms cascaded baselines.
Overview
Comparison between our LayerEdit and decoupled image layer editing paradigms. (a) Existing decoupled pipelines employ a suboptimal, post-hoc cascade of separate RGB editing and matting models. (b) Our proposed LayerEdit formulates image layer editing and matting as a unified generative process, operating in an end-to-end manner. (c) Visual examples generated by a cascaded pipeline and our LayerEdit.
Method
Method of our LayerEdit. (a) The proposed RGB-to-RGBA Knowledge Transfer endows our LayerEdit with generalized editing capabilities, which serves as the foundation for downstream image layer editing. (b) Rather than manipulating the input layer in isolation, our LayerEdit additionally integrates the global semantic context from the full composite into the input layer, and jointly synthesizes the edited layer and composite, thereby facilitating context-aware layer editing.
Experiments
Quantitative performances on LayerEdit-Bench. Both the single edited layer and the final composite image are evaluated. Q-O denotes the geometric mean of all applicable scores for single layers and composite images.
Visualizations
Qualitative comparisons between different methods. Zoom in for better visualization in the digital version.