Abstract
Face-Adapter is a lightweight, plug-and-play adapter that enables pre-trained diffusion models to perform both face reenactment and face swapping within a single framework. By decoupling identity, attributes, and spatial structure, it achieves high-fidelity results and precise control over expressions and gaze without requiring expensive full-model fine-tuning.
Introduction
Face reenactment (transferring motion to a source identity) and face swapping (transferring an identity to a target motion/background) have traditionally relied on GAN-based frameworks. While GANs are fast, they often struggle with "hard cases"—such as extreme head poses, significant facial shape variations, or complex occlusions—frequently resulting in blurring or identity loss.
Recent shifts toward Diffusion Models offer superior generative capabilities, but they come with their own hurdles:
- Resource Intensity: Training a full diffusion model from scratch for these tasks is computationally prohibitive.
- Control Precision: Existing adapters (like IP-Adapter or InstantID) often prioritize text-based editability, which weakens spatial control. This leads to a loss of fine-grained details like specific gaze directions or subtle facial expressions.
- Background Inconsistency: Many models struggle to maintain a stable background when the face moves or changes shape.
Methodology
The authors introduce Face-Adapter, which treats face editing as a conditional inpainting task. The architecture consists of three primary components that plug into a frozen Stable Diffusion U-Net:
- Spatial Condition Generator (SCG): This module uses 3D facial reconstruction (3DMM) to predict precise landmarks. Crucially, it predicts an "Adapting Area" mask. By identifying exactly which parts of the image need to change (the face/head) and which should remain static (the background), the model maintains high environmental consistency.
- Identity Encoder (IE): Instead of fine-tuning the U-Net, the IE extracts face embeddings using a pre-trained recognition model. It then uses a Transformer decoder with learnable queries to map these embeddings into the fixed "text semantic space" of the diffusion model. This makes the identity "understandable" to the model as if it were a text prompt.
- Attribute Controller (AC): This module integrates spatial landmarks with an "attribute template" (extracted via CLIP) that captures lighting, hair, and clothing details.
During training, the U-Net parameters are frozen, and the model is trained on a 50/50 split of reenactment and swapping tasks, allowing a single set of weights to handle both functions.
Experimental Setup
The model was trained and evaluated using several industry-standard benchmarks:
- VoxCeleb1 & VoxCeleb2: Used for training and evaluating face reenactment. These datasets contain thousands of "talking head" videos.
- FaceForensics++: Utilized for quantitative evaluation of face swapping performance.
- Test Sets: Evaluation was performed on 491 test videos from VoxCeleb1 and 1,000 randomly sampled images from VoxCeleb2.
Discussion: Key Insights
- The "One-Model-Two-Tasks" Philosophy: The authors realized that reenactment and swapping are essentially the same problem: combining a specific ID with a specific structure and set of attributes. By sufficiently decoupling these three factors, they proved that a single model can excel at both tasks simply by changing which input image provides which factor.
- Inpainting vs. Generation: By framing the problem as conditional inpainting rather than generating a whole new image, the model avoids the "hallucinated background" problem. It only modifies the pixels within the predicted "adapting area," ensuring the rest of the scene remains untouched.
- Text-Space Identity Mapping: Mapping facial features to the text embedding space leverages the massive amount of prior knowledge already inside Stable Diffusion regarding how to render humans, without needing to update the heavy U-Net weights.
Results
Face-Adapter achieves state-of-the-art (SOTA) or competitive results across both tasks:
- Face Reenactment: On the VoxCeleb1 dataset, it achieved a superior FID (Fréchet Inception Distance) of 29.27 and LPIPS of 0.1281, outperforming fully fine-tuned models like FADM.
- Face Swapping: It significantly outperformed previous diffusion-based methods like DiffSwap. In ID Retrieval, Face-Adapter scored 96.47%, compared to DiffSwap’s 19.16%, demonstrating much stronger identity preservation.
- Qualitative Superiority: The model handles large poses and accessories (like hats and glasses) much more faithfully than GAN-based methods, which often "melt" or glitch under such conditions.
Conclusion and Future Work
While Face-Adapter produces high-quality static images, it currently lacks specific mechanisms for temporal consistency across video frames. Extending this to video reenactment would require additional temporal fine-tuning to prevent flickering. Additionally, because landmarks are derived from 3DMM coefficients, there is a slight loss of accuracy in extremely subtle or "out-of-distribution" facial expressions. As with all high-fidelity face-editing technology, the authors acknowledge the potential for misuse and suggest digital watermarking for content authenticity.
Summary updated