DiffSwap++: 3D Latent-Controlled Diffusion for Identity-Preserving Face Swapping

Weston Bondurant, Arkaprava Sinha, Hieu Le, Srijan Das, Stephanie SchuckersarXiv 2025

TL;DR

DiffSwap++ introduces 3D facial structure awareness into diffusion-based face swapping during the training phase, enabling superior disentanglement of identity from pose and expression. Crucially, the model operates entirely in 2D at inference time, delivering state-of-the-art, artifact-free results while running significantly faster than previous diffusion baselines.

What Problem Does This Paper Address?

Face swapping aims to transfer a source face's identity onto a target face while seamlessly preserving the target's pose, expression, and background. While diffusion models have recently eclipsed GANs in generating high-fidelity images, existing diffusion-based face swappers still suffer from fine-grained artifacts, unnatural facial deformations, or weak identity retention.

The root cause is that standard 2D diffusion models lack an intrinsic understanding of 3D facial geometry. Without this geometric grounding, models struggle to cleanly separate who a person is (identity) from how their face is positioned (pose and expression), especially in challenging angles or extreme expressions.

Methods

DiffSwap++ frames face swapping as a target face inpainting task within a Latent Diffusion Model (LDM) framework using a DDIM sampler. The core innovation is 3D-aware latent conditioning during training.

  • Multi-Modal Conditioning: The network conditions its UNet denoiser on three distinct feature sets: standard 2D facial landmarks (via DLib), identity embeddings (via ArcFace), and 3D latent features.
  • Hierarchical 3D Guidance: The authors leverage a pretrained 3D face reconstruction encoder to project faces into a hierarchical 3D latent space. This space is split into three levels of granularity:
  • Coarse-grained: Controls low-frequency geometry (head shape, volumetric features, pose).
  • Middle-grained: Governs localized facial features (eye shape, mouth structure).
  • Fine-grained: Represents high-frequency details (skin texture, lighting).
  • Training vs. Inference Disentanglement: During training, a two-step optimization process uses these 3D features to guide the cross-attention layers of the UNet, alongside identity and perceptual losses. At inference time, no 3D features are required. The model runs using only 2D inputs, keeping the pipeline lightweight and fast.

The complete training mechanics are illustrated below:

Figure 5. Training pipeline for DiffSwap++. This figure highlights our primary DDIM training pipeline where we perform both re- construction and face-swapping.

Datasets

The model was trained and evaluated on several standard and out-of-domain benchmarks:

  • CelebA-HQ: 30,000 high-quality facial images (28k used for training, 2k for evaluation).
  • FFHQ: 70,000 high-quality images; the last 2k images were used exclusively to evaluate out-of-domain (OOD) generalization.
  • CelebV-Text: A large-scale facial video dataset used to sample frames for a rigorous biometric-style identity consistency evaluation.

Key Insights and Ideas

  • 3D Supervision, 2D Execution: The most powerful insight is that 3D geometric priors can act as a regularizer exclusively during training. This bypasses the need for costly 3D rendering or camera-angle estimations during inference.
  • Identity is a Composite: Through ablation studies, the authors discovered that identity retrieval drops significantly if you rely only on coarse geometric layers (46.9%) or fine texture layers (65.6%). Global average pooling across the entire 3D latent hierarchy ('Avg. Pool') yields the highest identity preservation (78.8%), proving that identity is a tight blend of both structure and texture.
  • The Biometric Security Lens: Rather than relying solely on standard distance metrics, the paper introduces a security-minded evaluation framework. By plotting the Impostor Attack Presentation Acceptance Rate (IAPAR) against the False Reject Rate (FRR), they evaluate face swapping based on its real-world ability to fool actual facial recognition systems.

Key Results

  • State-of-the-Art Identity Retention: DiffSwap++ achieved a Top-1 identity retrieval accuracy of 94.7% on CelebA-HQ and 95.1% on FFHQ, dramatically outperforming prior diffusion baselines like DiffSwap (16.9% / 34.9%).
  • Superior Visual Realism: The model achieved the lowest Frechet Inception Distance (FID) score of 6.42 on CelebA-HQ, indicating a significant reduction in visual artifacts and deformations compared to previous methods.
Figure 1. Comparison between Diffswap++ and previous diffusion methods showcasing the lack of artifacts and deformations in our swapped outputs.
  • Inference Speedup: By remaining fully 2D at inference, DiffSwap++ requires only 3.35 seconds per image. This makes it roughly 11× faster than DiffFace and 1.5× faster than DiffSwap.

Limitations and Future Work

While inference is highly optimized for speed, DiffSwap++ carries a substantial memory footprint, consuming 18.69 GB of VRAM during execution. While this easily fits within the capacity of modern desktop GPUs (like the NVIDIA A6000s used in the study), it poses a challenge for deployment on consumer-grade hardware or edge devices. The authors note that future work will focus on optimizing the architecture to reduce VRAM requirements without sacrificing high-fidelity generation.

Summary updated

BibTeX
@misc{bondurant2025diffswap,
  author = {Weston Bondurant and Arkaprava Sinha and Hieu Le and Srijan Das and Stephanie Schuckers},
  title = {{DiffSwap++: 3D Latent-Controlled Diffusion for Identity-Preserving Face Swapping}},
  year = {2025},
  eprint = {2511.05575},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.05575},
}
Figure