mlsanityData to 7 Oct 2026

Face Swap via Diffusion Model

arXiv 2403.01108 ↗First posted 2 Mar 2024cs.CVcited by 3

On the map: Diffusion models → Image generation, text-to-image and editing

Abstract (arXiv)

This technical report presents a diffusion model based framework for face swapping between two portrait images. The basic framework consists of three components, i.e., IP-Adapter, ControlNet, and Stable Diffusion's inpainting pipeline, for face feature encoding, multi-conditional generation, and face inpainting respectively. Besides, I introduce facial guidance optimization and CodeFormer based blending to further improve the generation quality. Specifically, we engage a recent light-weighted customization method (i.e., DreamBooth-LoRA), to guarantee the identity consistency by 1) using a rare identifier "sks" to represent the source identity, and 2) injecting the image features of source portrait into each cross-attention layer like the text features. Then I resort to the strong inpainting ability of Stable Diffusion, and utilize canny image and face detection annotation of the target portrait as the conditions, to guide ContorlNet's generation and align source portrait with the target portrait. To further correct face alignment, we add the facial guidance loss to optimize the text embedding during the sample generation. The code is available at: https://github.com/somuchtome/Faceswap

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 13 of its 15 references that are in the map. First posted on arXiv 2 Mar 2024.

Builds on

13 of 15 references.

Closest ancestors · 5

Same direction, newest first

  1. 2023IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models13 Aug
  2. 2023Adding Conditional Control to Text-to-Image Diffusion Models10 Feb
  3. 2022DiffFace: Diffusion-based Face Swapping with Facial Guidance27 Dec
  4. 2022Multi-Concept Customization of Text-to-Image Diffusion8 Dec
  5. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation25 Aug

Other references · 8

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2020Denoising Diffusion Implicit Modelscited by 9,655
  4. 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
  5. 2018CosFace: Large Margin Cosine Loss for Deep Face Recognitioncited by 968
  6. 2019Face X-ray for More General Face Forgery Detectioncited by 469
  7. 2019Learning to Regress 3D Face Shape and Expression from an Image without 3D Supervisioncited by 176
  8. 2021Smooth-Swap: A Simple Enhancement for Face-Swapping with Smoothnesscited by 30

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 1; 2026: 1.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Realistic and Efficient Face Swapping: A Unified Approach with Diffusion Models
  2. 2025High-Fidelity Diffusion Face Swapping with ID-Constrained Facial Conditioning
  3. 2024Face Adapter for Pre-Trained Diffusion Models with Fine-Grained ID and Attribute Control
  4. 2026Face inpainting with Identity Preserving Latent Diffusion Models
  5. 2026FaceSnap: Enhanced ID-fidelity Network for Tuning-free Portrait Customization
  6. 2026VFace: A Training-Free Approach for Diffusion-Based Video Face Swapping
  7. 2024VividFace: A Diffusion-Based Hybrid Framework for High-Fidelity Video Face Swapping
  8. 2025Towards Consistent and Controllable Image Synthesis for Face Editing