[Paper Review] FEAT: Face Editing with Attention
FEAT proposes a text-guided face editing method that uses learned attention maps to localize edits to specific facial regions in StyleGAN, improving disentanglement and controllability. By blending features using CLIP-supervised attention masks, it achieves precise, attribute-specific manipulations without relying on inherent latent space disentanglement.
Employing the latent space of pretrained generators has recently been shown to be an effective means for GAN-based face manipulation. The success of this approach heavily relies on the innate disentanglement of the latent space axes of the generator. However, face manipulation often intends to affect local regions only, while common generators do not tend to have the necessary spatial disentanglement. In this paper, we build on the StyleGAN generator, and present a method that explicitly encourages face manipulation to focus on the intended regions by incorporating learned attention maps. During the generation of the edited image, the attention map serves as a mask that guides a blending between the original features and the modified ones. The guidance for the latent space edits is achieved by employing CLIP, which has recently been shown to be effective for text-driven edits. We perform extensive experiments and show that our method can perform disentangled and controllable face manipulations based on text descriptions by attending to the relevant regions only. Both qualitative and quantitative experimental results demonstrate the superiority of our method for facial region editing over alternative methods.
Motivation & Objective
- Address the challenge of disentangled, localized face editing in GANs, where edits often unintentionally affect non-targeted attributes.
- Reduce dependency on innate disentanglement in StyleGAN's latent space by explicitly localizing edits to target facial regions.
- Enable intuitive, text-based editing with minimal user intervention by leveraging CLIP's text-image embedding for supervision.
- Improve edit quality and identity preservation by guiding feature blending through spatial attention maps.
- Demonstrate the effectiveness of applying attention maps at different feature layers for various editing tasks (e.g., color vs. structure).
Proposed method
- Train a mapper network to predict latent space offsets for a given text prompt using CLIP embeddings as supervision.
- Introduce an attention module that generates spatial masks to guide where edits should be applied during feature blending.
- Apply the attention mask to blend original and modified features at a selected intermediate layer of the StyleGAN generator.
- Use CLIP's joint text-image embedding space to align text prompts with relevant facial regions, enabling zero-shot, text-driven editing.
- Perform feature blending between original and edited features using the attention mask to preserve identity and reduce spillover effects.
- Enable two-step editing by first learning a region mask (e.g., 'Black Hair') and then applying a second edit (e.g., 'Fire' color) only within that region.
Experimental results
Research questions
- RQ1Can attention maps learned from CLIP embeddings effectively localize edits to specific facial regions during GAN-based face editing?
- RQ2Does using attention-guided feature blending improve disentanglement compared to standard latent space editing methods?
- RQ3How does the choice of feature layer for blending affect the quality and specificity of edits (e.g., color vs. structural changes)?
- RQ4Can the attention mechanism enable more intuitive, text-based editing without requiring manual tuning of edit strength or disentanglement parameters?
- RQ5Can the attention mask be reused in a two-step process to enable complex, region-specific edits with high precision?
Key findings
- The attention-guided method significantly reduces unwanted changes to non-targeted attributes, such as background or unrelated facial features, compared to baseline methods.
- Experiments show that blending features at higher layers (e.g., Layer 18) yields better results for color manipulation, while lower layers (e.g., Layer 8) are more effective for structural edits like expression or shape.
- Ablation studies confirm that removing the attention map leads to entangled edits—e.g., changing eye color affects skin tone or background, and editing facial structure affects hair or eyeglasses.
- The two-step editing approach successfully localizes complex edits (e.g., coloring hair in 'Fire' or 'Lavender' shades) within a predefined region, demonstrating precise regional control.
- Quantitative results show improved performance in terms of lower FID (image quality), higher CS (identity preservation), and lower ED (edit distance), confirming superior visual fidelity and edit specificity.
- The method generalizes across diverse facial attributes and poses, with attention masks effectively identifying relevant regions even under varying conditions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.