Controllable Layered Image Generation for Real-World Editing
Jinrui Yang, Qing Liu, Yijun Li, Mengwei Ren, Letian Zhang, Zhe Lin, Cihang Xie, Yuyin Zhou
TL;DR
This work introduces LASAGNA, a unified diffusion-based framework for controllable, real-world image editing via explicit layered representations. It jointly generates a photorealistic background and a transparent foreground with physically grounded visual effects, supporting FG_Gen, BG_Gen, and Text2All conditioning. To enable research and evaluation, the authors present Lasagna-48K, a public dataset with decomposed layers that preserve shadows and reflections, and LasagnaBench, the first public benchmark for layer editing. Empirical results show improved inter-layer coherence, identity preservation, and editing fidelity across multiple tasks, outperforming both general editing models and prior LayerDiffuse-style methods. The work includes extensive ablations and demonstrates practical, creative editing capabilities, with public releases intended to foster open research and standardization in layered image synthesis.
Abstract
Recent image generation models have shown impressive progress, yet they often struggle to yield controllable and consistent results when users attempt to edit specific elements within an existing image. Layered representations enable flexible, user-driven content creation, but existing approaches often fail to produce layers with coherent compositing relationships, and their object layers typically lack realistic visual effects such as shadows and reflections. To overcome these limitations, we propose LASAGNA, a novel, unified framework that generates an image jointly with its composing layers--a photorealistic background and a high-quality transparent foreground with compelling visual effects. Unlike prior work, LASAGNA efficiently learns correct image composition from a wide range of conditioning inputs--text prompts, foreground, background, and location masks--offering greater controllability for real-world applications. To enable this, we introduce LASAGNA-48K, a new dataset composed of clean backgrounds and RGBA foregrounds with physically grounded visual effects. We also propose LASAGNABENCH, the first benchmark for layer editing. We demonstrate that LASAGNA excels in generating highly consistent and coherent results across multiple image layers simultaneously, enabling diverse post-editing applications that accurately preserve identity and visual effects. LASAGNA-48K and LASAGNABENCH will be publicly released to foster open research in the community. The project page is https://rayjryang.github.io/LASAGNA-Page/.
