Skip to main content
QUICK REVIEW

[Paper Review] HifiFace: 3D Shape and Semantic Prior Guided High Fidelity Face Swapping

Yuhan Wang, Xu Chen|arXiv (Cornell University)|Jun 18, 2021
Face recognition and analysisComputer Science23 references8 citations
TL;DR

HifiFace proposes an end-to-end deep learning framework for high-fidelity face swapping that leverages 3D shape-aware identity supervision and a Semantic Facial Fusion (SFF) module to preserve source face shape and generate photo-realistic results. By combining 3D morphable model (3DMM) geometry with identity features and adaptive feature blending, HifiFace achieves state-of-the-art performance in identity preservation and realism on in-the-wild face images.

ABSTRACT

In this work, we propose a high fidelity face swapping method, called HifiFace, which can well preserve the face shape of the source face and generate photo-realistic results. Unlike other existing face swapping works that only use face recognition model to keep the identity similarity, we propose 3D shape-aware identity to control the face shape with the geometric supervision from 3DMM and 3D face reconstruction method. Meanwhile, we introduce the Semantic Facial Fusion module to optimize the combination of encoder and decoder features and make adaptive blending, which makes the results more photo-realistic. Extensive experiments on faces in the wild demonstrate that our method can preserve better identity, especially on the face shape, and can generate more photo-realistic results than previous state-of-the-art methods.

Motivation & Objective

  • To address the challenge of preserving source face shape in high-fidelity face swapping, which existing methods fail to do robustly due to reliance on 2D landmarks or texture-only recognition.
  • To improve photo-realism by solving lighting, occlusion, and background consistency issues in a unified end-to-end framework.
  • To overcome limitations of blending-based methods that restrict shape transfer and introduce artifacts when face geometry differs between source and target.
  • To develop a joint feature and image-level fusion mechanism that preserves identity while adapting to target attributes like expression, pose, and lighting.

Proposed method

  • Introduces a 3D shape-aware identity extractor that combines 3DMM coefficients from source and target faces to generate a shape-informed identity vector, enabling geometric supervision of face shape.
  • Uses a 3D face reconstruction model to regress 3DMM coefficients for both source and target faces, then recombines them to form a shape-aware representation for supervision.
  • Proposes a Semantic Facial Fusion (SFF) module that adaptively fuses low-level encoder and decoder features using learned face masks, improving texture and attribute consistency.
  • Employs a dilated face semantic segmentation head to supervise the generation of adaptive blending masks, enabling robust edge blending and occlusion handling.
  • Applies end-to-end training with multi-loss optimization: identity loss, shape loss, and perceptual loss to balance identity fidelity and realism.
  • Uses the predicted mask from the SFF module for final blending, avoiding reliance on target image masks and reducing ghosting and artifacts.

Experimental results

Research questions

  • RQ1Can 3D geometric supervision significantly improve face shape preservation in face swapping compared to 2D landmark or recognition-based methods?
  • RQ2Can a learnable, adaptive fusion mechanism at both feature and image levels enhance photo-realism while maintaining source identity?
  • RQ3How does the proposed SFF module compare to standard blending or concatenation in handling shape mismatch and occlusion?
  • RQ4To what extent does the 3D shape-aware identity vector reduce shape error compared to standard identity vectors?

Key findings

  • HifiFace achieves the lowest face shape error (L2 distance of identity coefficients) among all compared methods, with 95% of samples showing smaller shape errors than FaceShifter under large shape variations.
  • The model outperforms state-of-the-art methods on the FF++ and DFDC datasets, achieving the highest realism scores in face forgery detection benchmarks.
  • Abllation studies confirm that the SFF module significantly improves image quality and attribute consistency, reducing artifacts and background inconsistencies.
  • The 3D shape-aware identity component is essential: removing it results in severe shape distortion and artifacts, proving its role in geometric fidelity.
  • The SFF module enables effective inpainting at facial boundaries during shape transfer, as shown by difference feature maps highlighting reduced artifacts in shape-transition regions.
  • HifiFace is faster than FaceShifter while maintaining higher generation quality, demonstrating efficiency and scalability on wild face images.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.