Skip to main content
QUICK REVIEW

[Paper Review] High-resolution Face Swapping via Latent Semantics Disentanglement

Yangyang Xu, Bailin Deng|arXiv (Cornell University)|Mar 30, 2022
Face recognition and analysisComputer Science6 citations
TL;DR

This paper proposes a high-resolution face swapping method that disentangles latent semantics in StyleGAN by separating structural attributes (pose, expression) from appearance attributes (lighting, skin tone), using landmark-guided latent direction transfer and multi-scale feature blending. The approach achieves state-of-the-art results in image and video face swapping with improved hallucination quality and temporal coherence, outperforming prior GAN-based methods in fidelity and detail preservation.

ABSTRACT

We present a novel high-resolution face swapping method using the inherent prior knowledge of a pre-trained GAN model. Although previous research can leverage generative priors to produce high-resolution results, their quality can suffer from the entangled semantics of the latent space. We explicitly disentangle the latent semantics by utilizing the progressive nature of the generator, deriving structure attributes from the shallow layers and appearance attributes from the deeper ones. Identity and pose information within the structure attributes are further separated by introducing a landmark-driven structure transfer latent direction. The disentangled latent code produces rich generative features that incorporate feature blending to produce a plausible swapping result. We further extend our method to video face swapping by enforcing two spatio-temporal constraints on the latent space and the image space. Extensive experiments demonstrate that the proposed method outperforms state-of-the-art image/video face swapping methods in terms of hallucination quality and consistency. Code can be found at: https://github.com/cnnlstm/FSLSD_HiRes.

Motivation & Objective

  • To address the challenge of entangled semantics in StyleGAN latent space that degrades face swapping quality, especially at high resolutions.
  • To enable precise disentanglement of identity, structure (pose/expression), and appearance (lighting/skin tone) for more natural face swapping.
  • To improve high-resolution face swapping by leveraging the progressive, coarse-to-fine generation nature of StyleGAN for better feature control.
  • To extend the method to video face swapping with spatio-temporal consistency, avoiding frame-level incoherence.

Proposed method

  • Leverages the progressive generation nature of StyleGAN to disentangle shallow-layer structure attributes (pose, expression) from deep-layer appearance attributes (lighting, skin tone).
  • Introduces a landmark-driven structure transfer latent direction derived from source and target facial keypoint embeddings to guide structure transfer.
  • Regroups the target’s appearance codes with the structure-transferred source latent code in deep layers to preserve source identity while adopting target structure and appearance.
  • Employs a multi-scale feature aggregation mechanism that fuses generative features from the StyleGAN generator with encoded target features to eliminate blending artifacts.
  • Enforces two spatio-temporal constraints for video face swapping: a code trajectory constraint on latent offsets in shallow layers and a flow trajectory constraint in RGB space.
  • Uses a target encoder-decoder to tolerate structural mismatches between source and target, enabling robust background and facial region blending.

Experimental results

Research questions

  • RQ1Can disentangling latent semantics in StyleGAN improve high-resolution face swapping quality by separating identity, structure, and appearance attributes?
  • RQ2How can landmark-guided latent direction transfer enable accurate structure transfer while preserving source identity?
  • RQ3What spatio-temporal constraints are effective in maintaining consistency across video frames during face swapping?
  • RQ4To what extent does multi-scale feature blending reduce blending artifacts in high-resolution face swapping?
  • RQ5Can the proposed method achieve state-of-the-art performance in both image and video face swapping benchmarks?

Key findings

  • The proposed method achieves state-of-the-art performance in high-resolution face swapping, significantly reducing hallucination and blurring compared to baseline methods like MegaFS.
  • Qualitative results show that the ablation variants without appearance transfer or background fusion exhibit unnatural styles or visible blending boundaries, confirming the necessity of the proposed components.
  • The method successfully preserves source identity while accurately transferring target facial structure and appearance, as validated through qualitative comparisons on multiple datasets.
  • The two spatio-temporal constraints—code trajectory and flow trajectory—dramatically improve inter-frame consistency in video face swapping, eliminating incoherence seen in frame-by-frame baselines.
  • Extensive experiments demonstrate superior visual quality and detail preservation, especially in fine facial textures and background integration, outperforming existing GAN-based face swapping approaches.

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.