Training-Free Disentangled Text-Guided Image Editing via Sparse Latent Constraints
Mutiara Shabrina, Nova Kurnia Putri, Jefri Satria Ferdiansyah, Sabita Khansa Dewi, Novanto Yudistira
TL;DR
This work analyzes the Predict, Prevent, and Evaluate PPE framework for text-driven image editing and identifies that L2 regularization induces dense, entangled latent updates. It proposes a sparsity-based latent constraint with ultra-strict layer masking to localize edits to mid-level StyleGAN2 layers, thereby preserving identity while applying targeted attributes such as bangs. Experiments on CelebA-HQ show reduced non-target changes and improved disentanglement compared to the baseline PPE, supported by both qualitative and quantitative metrics. The approach emphasizes structured latent constraints as a practical path toward more reliable and identity-preserving text-driven manipulation.
Abstract
Text-driven image manipulation often suffers from attribute entanglement, where modifying a target attribute (e.g., adding bangs) unintentionally alters other semantic properties such as identity or appearance. The Predict, Prevent, and Evaluate (PPE) framework addresses this issue by leveraging pre-trained vision-language models for disentangled editing. In this work, we analyze the PPE framework, focusing on its architectural components, including BERT-based attribute prediction and StyleGAN2-based image generation on the CelebA-HQ dataset. Through empirical analysis, we identify a limitation in the original regularization strategy, where latent updates remain dense and prone to semantic leakage. To mitigate this issue, we introduce a sparsity-based constraint using L1 regularization on latent space manipulation. Experimental results demonstrate that the proposed approach enforces more focused and controlled edits, effectively reducing unintended changes in non-target attributes while preserving facial identity.
