PIDiff: Image Customization for Personalized Identities with Diffusion Models
Jinyu Gu, Haipeng Liu, Meng Wang, Yang Wang
TL;DR
PIDiff tackles the challenge of personalized identity text-to-image generation by disentangling identity features from background and aligning with textual prompts. It introduces a Visual Guidance Module that leverages the StyleGAN W+ latent space and a Style Cross-Attention mechanism to fuse identity- and style-related cues into diffusion model generation, all within a targeted fine-tuning regime. A small identity-focused dataset and a pseudo-word identity token enable rapid learning of identity localization and style editing without semantic entanglement, achieving high identity fidelity and diversity. Experimental results show PIDiff outperforms state-of-the-art methods in identity preservation, prompt fidelity, and bias mitigation across identities, highlighting its practical potential for personalized image synthesis.
Abstract
Text-to-image generation for personalized identities aims at incorporating the specific identity into images using a text prompt and an identity image. Based on the powerful generative capabilities of DDPMs, many previous works adopt additional prompts, such as text embeddings and CLIP image embeddings, to represent the identity information, while they fail to disentangle the identity information and background information. As a result, the generated images not only lose key identity characteristics but also suffer from significantly reduced diversity. To address this issue, previous works have combined the W+ space from StyleGAN with diffusion models, leveraging this space to provide a more accurate and comprehensive representation of identity features through multi-level feature extraction. However, the entanglement of identity and background information in in-the-wild images during training prevents accurate identity localization, resulting in severe semantic interference between identity and background. In this paper, we propose a novel fine-tuning-based diffusion model for personalized identities text-to-image generation, named PIDiff, which leverages the W+ space and an identity-tailored fine-tuning strategy to avoid semantic entanglement and achieves accurate feature extraction and localization. Style editing can also be achieved by PIDiff through preserving the characteristics of identity features in the W+ space, which vary from coarse to fine. Through the combination of the proposed cross-attention block and parameter optimization strategy, PIDiff preserves the identity information and maintains the generation capability for in-the-wild images of the pre-trained model during inference. Our experimental results validate the effectiveness of our method in this task.
