PreciseControl: Enhancing Text-To-Image Diffusion Models with Fine-Grained Attribute Control
Rishubh Parihar, Sachidanand VS, Sabariswaran Mani, Tejan Karmali, R. Venkatesh Babu
TL;DR
This work tackles faithful inversion and fine-grained facial attribute control in text-to-image diffusion by conditioning Stable Diffusion on StyleGAN2's $\mathcal{W+}$ latent space through a latent adaptor $\mathcal{M}$ that maps $w \in \mathcal{W+}$ to time-dependent token embeddings $(v_t^1, v_t^2)$. A two-stage training regime (pretraining $\mathcal{M}$ on $(I,w)$ with diffusion and identity losses, followed by subject-specific LoRA fine-tuning) enables strong identity preservation while maintaining text editability; inference uses delayed identity injection with a threshold $\tau$ and attribute edits via global latent directions $d$ with strength $\beta$, enabling continuous control. The system supports multi-subject composition by chaining diffusion processes and fusing outputs with instance masks to avoid attribute mixing. Empirically, it achieves a favorable balance between prompt similarity and identity preservation, provides high-quality fine-grained edits, and extends to in-the-wild and stylized face images, albeit with limitations in encoder inversion accuracy and multi-subject efficiency.
Abstract
Recently, we have seen a surge of personalization methods for text-to-image (T2I) diffusion models to learn a concept using a few images. Existing approaches, when used for face personalization, suffer to achieve convincing inversion with identity preservation and rely on semantic text-based editing of the generated face. However, a more fine-grained control is desired for facial attribute editing, which is challenging to achieve solely with text prompts. In contrast, StyleGAN models learn a rich face prior and enable smooth control towards fine-grained attribute editing by latent manipulation. This work uses the disentangled $\mathcal{W+}$ space of StyleGANs to condition the T2I model. This approach allows us to precisely manipulate facial attributes, such as smoothly introducing a smile, while preserving the existing coarse text-based control inherent in T2I models. To enable conditioning of the T2I model on the $\mathcal{W+}$ space, we train a latent mapper to translate latent codes from $\mathcal{W+}$ to the token embedding space of the T2I model. The proposed approach excels in the precise inversion of face images with attribute preservation and facilitates continuous control for fine-grained attribute editing. Furthermore, our approach can be readily extended to generate compositions involving multiple individuals. We perform extensive experiments to validate our method for face personalization and fine-grained attribute editing.
