Introduction
Traditional text-driven face editing has largely relied on generative models like GANs or Diffusion models. While powerful, these "black box" approaches often struggle with identity preservation and are frequently confined to the specific domain of their training data. For instance, a StyleGAN trained on human faces cannot easily transform a person into "Shrek" without losing the original subject's unique features.
This paper proposes a paradigm shift: treating face editing as a physical "warping" process rather than a generative "re-painting." By manipulating existing pixels through vector flow fields, the method achieves high-quality, identity-preserving edits across human, cartoon, and animal faces.
Methodology: Editing via Warping
The core innovation lies in representing face editing through two distinct Vector Flow Fields:
- Spatial Flow ($U_s$): This field defines the geometric deformation, moving each pixel $(x, y)$ to a new coordinate to change facial structures (e.g., making eyes larger).
- Color Flow ($U_c$): This field defines shifts in color values, specifically within the HSV space, to alter appearance (e.g., changing hair color).
Guidance and Optimization
The system leverages CLIP (Contrastive Language-Image Pretraining) to guide these transformations. A pre-trained CLIP model calculates a loss based on how well the warped image aligns with the input text prompt. The authors offer two implementation paths:
- Iterative Optimization: Flow fields are optimized from scratch for a specific image-prompt pair using gradient descent.
- One-Shot Learning: A UNet-based encoder-decoder network, utilizing a cross-attention mechanism, predicts these flow fields in a single forward pass for real-time applications.
To ensure natural-looking results, the method employs Implicit Neural Representations (INR). By using a small MLP to map coordinates to offsets, the model naturally enforces smoothness due to the inherent low-pass bias of neural networks, avoiding the jagged artifacts common in pixel-level optimization.
Experiments and Results
The proposed method was evaluated against state-of-the-art baselines like StyleCLIP and DiffusionCLIP using the FFHQ dataset and various out-of-domain images.
Identity Preservation and Visual Quality
Quantitative analysis using the ArcFace identity metric demonstrated superior performance. For an "angry face" prompt, the proposed method maintained an identity score of 0.91, significantly higher than StyleCLIP's 0.71. Furthermore, the method achieved much lower Fréchet Inception Distance (FID) scores, indicating higher realism. For a "smiling face" prompt, the INR-based iterative method scored 6.42, compared to StyleCLIP's 59.18.
Domain Agnosticism
Because the method warps existing pixels rather than generating new ones from a learned distribution, it is inherently domain-agnostic. It can successfully edit anything CLIP recognizes as a face, including movie characters, cartoons, and animals, without requiring domain-specific training. This is particularly evident when moving "out of real face domain" to characters like Shrek or Voldemort.
Conclusion and Future Work
By modeling face editing as interpretable spatial and color deformations, this approach solves the persistent problem of identity consistency in generative editing. However, the reliance on warping means the model cannot "create" new elements, such as adding glasses or growing hair on a bald head. Future research may explore hybrid models that combine the structural stability of warping with generative patches for additive elements.
Summary updated