Controllable Face Synthesis with Semantic Latent Diffusion Models
Alex Ergasti, Claudio Ferrari, Tomaso Fontanini, Massimo Bertozzi, Andrea Prati
TL;DR
This work introduces an end-to-end Latent Diffusion Model for Semantic Image Synthesis (SIS) of faces that supports both diverse generation under semantic masks and exact reproduction of a reference image's style. By integrating SPADE-based conditioning with a novel mask-conditioned cross-attention mechanism and a Multi-Resolution Style Encoder, the model achieves precise local control over facial regions while maintaining overall image coherence. The approach demonstrates strong reconstruction quality, effective full and partial style transfer, and competitive or superior performance compared to state-of-the-art diffusion methods, with significantly faster inference at practical step counts. These capabilities enable accurate face editing and style customization, offering practical impact for identity-preserving edits, data augmentation, and robust face synthesis research.
Abstract
Semantic Image Synthesis (SIS) is among the most popular and effective techniques in the field of face generation and editing, thanks to its good generation quality and the versatility is brings along. Recent works attempted to go beyond the standard GAN-based framework, and started to explore Diffusion Models (DMs) for this task as these stand out with respect to GANs in terms of both quality and diversity. On the other hand, DMs lack in fine-grained controllability and reproducibility. To address that, in this paper we propose a SIS framework based on a novel Latent Diffusion Model architecture for human face generation and editing that is both able to reproduce and manipulate a real reference image and generate diversity-driven results. The proposed system utilizes both SPADE normalization and cross-attention layers to merge shape and style information and, by doing so, allows for a precise control over each of the semantic parts of the human face. This was not possible with previous methods in the state of the art. Finally, we performed an extensive set of experiments to prove that our model surpasses current state of the art, both qualitatively and quantitatively.
