DreamLayer: Simultaneous Multi-Layer Generation via Diffusion Mode
Junjia Huang, Pengxiang Yan, Jinhang Cai, Jiyang Liu, Zhao Wang, Yitong Wang, Xinglong Wu, Guanbin Li
TL;DR
DreamLayer tackles the challenge of coherent multi-layer diffusion generation by modeling the relationships among a background $I^1$, multiple foreground layers $I^i$, and a global layer $I^{k+1}$. It introduces Context-Aware Cross-Attention, Layer-Shared Self-Attention, and Information Retained Harmonization to align layouts, share inter-layer information, and fuse layers in latent space, respectively, backed by a large 400k multi-layer dataset and a versatile generation/decomposition pipeline. The approach yields more harmonious multi-layer compositions, improves occlusion and shadow realism, and enables training-free image-to-layer decomposition plus latent-space editing, demonstrated through extensive experiments and user studies. The work has practical impact for design and editing tasks, offering a scalable framework for flexible, editing-friendly multi-layer image synthesis with robust inter-layer coherence.
Abstract
Text-driven image generation using diffusion models has recently gained significant attention. To enable more flexible image manipulation and editing, recent research has expanded from single image generation to transparent layer generation and multi-layer compositions. However, existing approaches often fail to provide a thorough exploration of multi-layer structures, leading to inconsistent inter-layer interactions, such as occlusion relationships, spatial layout, and shadowing. In this paper, we introduce DreamLayer, a novel framework that enables coherent text-driven generation of multiple image layers, by explicitly modeling the relationship between transparent foreground and background layers. DreamLayer incorporates three key components, i.e., Context-Aware Cross-Attention (CACA) for global-local information exchange, Layer-Shared Self-Attention (LSSA) for establishing robust inter-layer connections, and Information Retained Harmonization (IRH) for refining fusion details at the latent level. By leveraging a coherent full-image context, DreamLayer builds inter-layer connections through attention mechanisms and applies a harmonization step to achieve seamless layer fusion. To facilitate research in multi-layer generation, we construct a high-quality, diverse multi-layer dataset including 400k samples. Extensive experiments and user studies demonstrate that DreamLayer generates more coherent and well-aligned layers, with broad applicability, including latent-space image editing and image-to-layer decomposition.
