VividFace: A Diffusion-Based Hybrid Framework for High-Fidelity Video Face Swapping

Hao Shao, Shulun Wang, Yang Zhou, Guanglu Song, Dailan He, Shuo Qin, Zhuofan Zong, Bingqi Ma, Yu Liu, Hongsheng LiarXiv 2024 · DOI

Abstract

VividFace is a novel diffusion-based framework designed for high-fidelity video face swapping. By integrating an image-video hybrid training strategy, a specialized VidFaceVAE, and 3D-guided conditioning, it addresses long-standing issues in the field such as temporal instability and identity-attribute leakage. Experimental results demonstrate that VividFace outperforms existing GAN-based and diffusion-based methods in both identity preservation and video quality metrics.

The Challenge of Video Face Swapping

While face swapping in static images has reached impressive levels of realism, extending this to video remains a significant challenge. Most existing methods struggle with three primary issues:

  1. Temporal Instability: Swapped faces often "flicker" or jitter between frames because models frequently treat each frame in isolation.
  2. Information Leakage: Models often fail to disentangle the source's identity from the target's attributes (pose, expression, lighting), resulting in a "ghosting" effect where the output is a messy blend of both individuals.
  3. Complex Scenarios: Large pose variations and occlusions, such as a hand passing in front of a face, frequently cause traditional models to produce distorted artifacts.

The authors argue that training on video alone is insufficient because video frames are highly redundant, leading to a lack of diversity in training data.

The VividFace Framework

VividFace introduces several architectural innovations to solve these problems. At its core is an Image-Video Hybrid Training strategy that utilizes both static images for identity diversity and video sequences for temporal coherence. This approach prevents the model from overfitting to the limited motion found in standard video datasets.

Key components include:

  • VidFaceVAE: Unlike standard Variational Autoencoders (VAEs), VidFaceVAE uses (2+1)D blocks. These combine 2D spatial convolutions with 1D temporal convolutions, allowing the model to process video and images in a unified latent space while maintaining temporal flow.
  • 3D-Guided Conditioning: To handle extreme poses, the model uses a 3D Morphable Model (3DMM) to reconstruct the target face's geometry. This provides a structural "skeleton" for the pose and expression, acting as local guidance for the diffusion process without leaking the target's original identity.
  • ReferenceNet & Temporal Modules: Inspired by recent video generation models, VividFace incorporates temporal attention layers to ensure that motion remains smooth and consistent across frames.

Data and Disentanglement

The researchers utilized a mix of existing and custom data, including approximately 300 hours of facial videos and images from VGGFace2-HQ. A critical innovation is the AIDT (Attribute-Identity Disentanglement Triplet) Dataset. Each entry is a triplet: a source face, a target face, and a GAN-generated "decoupling" face. This setup forces the model to learn how to separate identity from attributes more effectively.

By using 3DMM guidance without texture, VividFace provides structural constraints while forcing the model to generate skin and features from scratch, leading to superior blending compared to simple "copy-paste" methods. Additionally, a comprehensive occlusion augmentation strategy significantly improved the model's robustness in real-world, "in-the-wild" footage.

Performance and Results

VividFace was compared against five state-of-the-art methods, including SimSwap, FSGAN, and DiffFace.

Comparison between target video frames and VividFace results, showcasing high-fidelity identity preservation and temporal consistency.

Quantitative Results: VividFace achieved the best scores in FVD (Frechet Video Distance), a key metric for video quality, scoring 1201.1 (lower is better) compared to the next best at 1242.8. It also led in ID Retrieval (78.3% Top-1 accuracy), proving superior preservation of the source identity.

Qualitative Results: Visual results show that VividFace maintains sharp details and stable expressions even during sharp head turns or when objects pass in front of the face—scenarios where GAN-based methods typically produce "melting" artifacts.

Limitations and Future Work

Despite its advancements, VividFace faces challenges with gender mismatches, where performance can degrade. Furthermore, while it requires fewer steps than many diffusion models, it remains computationally heavier than real-time GAN-based approaches. Future work will focus on more robust disentanglement techniques and optimizing the diffusion sampling process to reach real-time speeds.

Summary updated

BibTeX
@misc{shao2024vividface,
  author = {Hao Shao and Shulun Wang and Yang Zhou and Guanglu Song and Dailan He and Shuo Qin and Zhuofan Zong and Bingqi Ma and Yu Liu and Hongsheng Li},
  title = {{VividFace: A Diffusion-Based Hybrid Framework for High-Fidelity Video Face Swapping}},
  year = {2024},
  eprint = {2412.11279},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.11279},
}
Figure