Abstract
Face-Adapter is a lightweight, plug-and-play adapter designed for pre-trained diffusion models, such as Stable Diffusion, to perform high-fidelity face reenactment and face swapping. By decoupling identity, facial structure, and attributes, the framework achieves state-of-the-art precision and motion control without requiring expensive fine-tuning of the base model's weights. This approach addresses common limitations in generative face editing, including background inconsistency and the inability to handle extreme head poses.
Introduction
Face editing tasks generally fall into two categories: face reenactment (transferring motion from a target to a source identity) and face swapping (transferring a source identity onto a target's motion and background). Historically, these tasks relied on Generative Adversarial Network (GAN) frameworks. While GANs are computationally efficient, they often struggle with "hard cases," such as extreme head poses or significant differences in facial shape between the source and target subjects.
Recently, researchers have turned to Diffusion Models for their superior generation quality. However, adapting these models for precise face control presents three primary challenges:
- High Computational Cost: Full fine-tuning of large diffusion models is resource-intensive.
- Control Trade-offs: Existing adapters often rely on coarse spatial hints (like 5-point landmarks) or text prompts, which lack the precision needed for subtle expressions or gaze control.
- Background Inconsistency: Many models struggle to maintain a stable background when the face moves, leading to blurring or unwanted artifacts.
Methodology
Face-Adapter treats face editing as a conditional inpainting task. The architecture keeps the base Denoising U-Net frozen and introduces three primary modules to guide the generation process:
1. Spatial Condition Generator (SCG)
This module predicts 3D landmarks and an "Adapting Area" mask. It utilizes a 3D facial reconstruction method (3DMM) to disentangle identity, expression, and pose. By projecting these into a 3D space, the model handles facial shape variations more effectively than traditional 2D-only methods. The Adapting Area Predictor identifies exactly which pixels need to change (the face and head) and which should remain static, effectively solving the "hallucinated background" problem.
2. Identity Encoder (IE)
To maintain high identity consistency without relying on imprecise text prompts, the Identity Encoder extracts face embeddings using a pre-trained recognition model. A transformer decoder then maps these embeddings into "identity tokens" that the diffusion model can interpret. This allows the model to inject identity information directly into the cross-attention layers of the frozen U-Net.
3. Attribute Controller (AC)
This module manages auxiliary information such as lighting, hair, and background details. It uses a CLIP vision encoder to extract features from an attribute template, integrating them with spatial landmarks to guide the final generation.
By decoupling these three factors—identity, structure, and attributes—a single model can perform both reenactment and swapping simply by varying the input sources.
Experimental Setup
The model was trained and evaluated using industry-standard benchmarks:
- VoxCeleb1 & VoxCeleb2: Used for training and evaluating face reenactment, providing thousands of diverse "talking head" videos.
- FaceForensics++ (FF++): Utilized for the quantitative evaluation of face swapping performance.
- Stable Diffusion v1-5: Served as the base pre-trained generative model.
Results and Discussion
Face-Adapter demonstrates significant improvements over both GAN-based (e.g., FOMM, SimSwap) and diffusion-based (e.g., FADM, DiffSwap) predecessors.
Quantitative Performance
- Image Quality: The model achieved a lower (superior) FID of 29.27 on VoxCeleb1, compared to FADM (31.58) and FOMM (31.19).
- Identity Preservation: In cross-identity reenactment, Face-Adapter achieved a Cosine Similarity (CSIM) of 0.6429, significantly outperforming GAN-based methods which typically range between 0.51 and 0.55.
- Precision: The integration of 3D landmarks resulted in lower error rates for head pose and gaze direction compared to previous state-of-the-art models.
Qualitative Advantages
The model excels in "extreme cases," such as profile views or faces with heavy accessories (e.g., hats and glasses). Where previous models typically produced blurry artifacts or distorted features, Face-Adapter maintains sharp details and structural integrity. By treating the task as inpainting, the model ensures that the background remains perfectly static and consistent with the original target image.
Limitations and Future Work
Despite its strengths, Face-Adapter has areas for improvement:
- Temporal Stability: While individual frames are of high quality, the model lacks a dedicated temporal consistency mechanism for video, which can occasionally result in inter-frame jitter.
- Expression Accuracy: The use of sparse 3DMM landmarks can lead to a slight loss in very fine-grained expression nuances.
- Social Impact: The authors acknowledge the potential for misuse in creating deepfakes. They advocate for the integration of digital watermarking to ensure the authenticity of generated content.
Conclusion
Face-Adapter provides a robust, efficient framework for controlled face generation. By leveraging the generative power of pre-trained diffusion models through a lightweight adapter, it achieves high-fidelity results in both face reenactment and swapping while maintaining strict identity and background consistency.
Summary updated