LayerFusion: Harmonized Multi-Layer Text-to-Image Generation with Generative Priors
Yusuf Dalva, Yijun Li, Qing Liu, Nanxuan Zhao, Jianming Zhang, Zhe Lin, Pinar Yanardag
TL;DR
LayerFusion tackles the challenge of generating layered content by producing a foreground RGBA and a background RGB simultaneously, enabling harmonized interaction between layers. It introduces attention-based priors from the foreground generator and an attention-level blending scheme to jointly shape both layers and the final blended image. Key contributions include extracting structure and content priors from self- and cross-attention, a soft/hard blending mask mechanism, and an attention-sharing strategy to maintain background consistency. Experimental results show improved visual coherence, layer consistency, and spatial editability over prior layered-generation methods, underscoring its potential to enhance creative workflows.
Abstract
Large-scale diffusion models have achieved remarkable success in generating high-quality images from textual descriptions, gaining popularity across various applications. However, the generation of layered content, such as transparent images with foreground and background layers, remains an under-explored area. Layered content generation is crucial for creative workflows in fields like graphic design, animation, and digital art, where layer-based approaches are fundamental for flexible editing and composition. In this paper, we propose a novel image generation pipeline based on Latent Diffusion Models (LDMs) that generates images with two layers: a foreground layer (RGBA) with transparency information and a background layer (RGB). Unlike existing methods that generate these layers sequentially, our approach introduces a harmonized generation mechanism that enables dynamic interactions between the layers for more coherent outputs. We demonstrate the effectiveness of our method through extensive qualitative and quantitative experiments, showing significant improvements in visual coherence, image quality, and layer consistency compared to baseline methods.
