VFace: A Training-Free Approach for Diffusion-Based Video Face Swapping

Sanoojan Baliah, Yohan Abeysinghe, Rusiru Thushara, Khan Muhammad, Abhinav Dhall, Karthik Nandakumar, Muhammad Haris Khan

TL;DR

This paper introduces VFace, a novel training-free framework for high-fidelity video face swapping that seamlessly integrates with existing diffusion models. VFace addresses the critical challenge of temporal consistency and identity preservation in video face swaps by introducing three key components: Target Structure Guidance, Frequency Spectrum Attention Interpolation, and Flow-guided Attention Temporal Smoothening.

What Problem Does This Paper Address?

Face swapping, the process of transferring a person's identity from a source image or video onto a target video, has numerous applications in visual effects, digital avatars, and privacy preservation. While static image face swapping has seen significant progress, achieving high-quality, temporally consistent face swaps in videos remains a major hurdle. Existing methods often suffer from flickering artifacts, identity drift, and inconsistent expressions across frames. This is particularly challenging when adapting image-based techniques to video, as they typically lack temporal modeling capabilities. Furthermore, many advanced methods require extensive training or fine-tuning, limiting their flexibility and practicality. This paper aims to bridge this gap by proposing a training-free, plug-and-play solution that enhances existing diffusion-based image face swapping models for video applications.

Methods

VFace builds upon existing diffusion-based image face swapping frameworks, notably REFace, and introduces three core components:

  • Target Structure Guidance (TSG): This module uses a plug-and-play attention injection technique. It leverages a reconstruction pipeline that denoises DDIM-inverted noise from the target video to extract intermediate attention maps (queries and keys). These maps are then injected into the generation pipeline, guiding the synthesis to align with the target's pose and structure. This ensures spatial consistency across frames without requiring model retraining.
  • Frequency Spectrum Attention Interpolation (FSAI): To prevent the loss of source identity information due to TSG's structural guidance, FSAI selectively blends identity features from the source with structural features from the target. It operates in the frequency domain by applying FFT to attention tensors (queries and keys). By interpolating low-frequency components from the source and high-frequency components from the target, FSAI achieves a cleaner separation of identity and structural cues, preserving identity while maintaining structural fidelity.
  • Flow-guided Attention Temporal Smoothening (FATS): This training-free, inference-time module addresses subtle flickering and temporal artifacts inherent in diffusion models. Instead of warping at the initial noise level, FATS warps attention maps using optical flow computed from the target video. This is applied during the early DDIM steps when attention maps are at lower resolutions, promoting temporal coherence and smooth transitions in the attention space.

Datasets

The paper uses the following datasets:

  • Source Images: CelebA dataset (over 200K celebrity images).
  • Target Videos: VFHQ dataset (50 videos) and CelebV-HQ dataset (approximately 100 videos).
  • Evaluation Datasets (for image-based comparisons): CelebA and FFHQ datasets.

No new benchmarks were introduced; the evaluation follows protocols from prior work like REFace.

Key Insights and Ideas

  • Decoupling Identity and Structure in Attention Space: The FSAI module's core insight is that attention mechanisms (queries and keys) are rich representations for disentangling identity and structural information. Operating in the frequency domain allows for a more principled separation, preserving identity while respecting target structure.
  • Leveraging Diffusion's Strengths for Video: Instead of trying to force image-based diffusion models to work for video, VFace cleverly adapts them by injecting temporal consistency mechanisms (TSG and FATS) directly into the diffusion process's attention layers. This avoids the need for entirely new video-specific diffusion architectures.
  • Training-Free Adaptability: The emphasis on training-free components (TSG, FSAI, FATS) is crucial. It means VFace can be readily applied to any pre-trained diffusion-based image face swapping model, making it highly versatile and practical.
  • Optical Flow at the Attention Level: Applying optical flow for temporal smoothing at the attention level, rather than the image level, is a novel approach that directly influences the generation process, leading to more effective temporal coherence.

Key Results

  • Quantitative Performance: VFace consistently outperforms baselines on metrics like CD-FVD and FVD for temporal consistency on VFHQ and CelebVHQ datasets. It also achieves strong results in ID similarity and pose accuracy, often surpassing or matching previous state-of-the-art methods. For instance, on the FFHQ dataset, VFace shows better FID than other image-based models, with REFace being a close second.
  • Qualitative Results: Visual comparisons (Figures 5 and 6) demonstrate VFace's ability to produce high-fidelity, temporally consistent face swaps with preserved identity, pose, and expression.
  • Efficiency: VFace adds a modest overhead of approximately 5.3 seconds per frame compared to vanilla REFace due to DDIM inversions, but is significantly faster than other video generation methods like AnyV2V and Go-with-the-flow.

Limitations and Future Work

  • Limitations: The paper acknowledges that while VFace significantly enhances temporal consistency, challenges like complex occlusions might still pose difficulties. The method's performance is also dependent on the quality of the underlying diffusion model.
  • Future Work: The authors suggest future work will focus on further improving video realism and addressing challenges such as complex occlusions. They also mention adaptability to FaceAdapter as a potential area for future exploration.

Summary updated

BibTeX
@inproceedings{baliah2026vface,
  author = {Sanoojan Baliah and Yohan Abeysinghe and Rusiru Thushara and Khan Muhammad and Abhinav Dhall and Karthik Nandakumar and Muhammad Haris Khan},
  title = {{VFace: A Training-Free Approach for Diffusion-Based Video Face Swapping}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
}
Figure