All models

BlendFace

An identity encoder for face-swapping, trained on attribute-swapped faces to reduce attribute leakage.

Image classification · 359 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (18 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
65.2M
Operations
359
Framework
PyTorch
Recurrent
No
Published
ICCV 2023
Cited by
62 (as of 26 October 2026)
Authors
Kaede Shiohara, Xingchao Yang, Takafumi Taketomi
License
CC-BY-NC-SA-4.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14958
Graph hash
798bce2249ae7c07961c74d4969bc81fe292dce0c2b58ad648a221b5fdf6fb00
Skeleton hash
9986fce3a1cb1b714b36cb909f5ef818e96f12701bf37169481eea0514f23e9d
Architecture hash
c529d1a3d998a81250eedb5b1f9510456cd633e7689943ffebc2a3158b7a2368
Diagram SHA-256
314ae78e9d70d0c26d22dc6c0a554adb079c3a6a503cdc4f33b66e59187ef02e
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

BlendFace is an identity encoder for face-swapping, the task of replacing the identity in a target image with that of a source while keeping the expression, hair, pose and background of the target. In such a system the identity encoder extracts identity features from the source image and also guides the generator through an identity distance loss.

The paper starts from a problem with the usual choice of encoder, ArcFace: face recognition models learn to recognize attributes such as hairstyles and head shapes as part of identity, and swapping models guided by them carry those attributes over. BlendFace is ArcFace trained with swapped images, faces whose attributes have been synthetically replaced, so that the model does not focus on those attributes. In the setup the paper describes, attributes are replaced with probability 0.5 during this training.

For its face-swapping experiments the paper adopts the AEI-Net architecture and puts BlendFace in place of ArcFace, both for encoding source identities and for computing the identity loss. The paper reports that this improves identity-attribute disentanglement while keeping quantitative performance comparable to previous methods. The demo in the released code gives one example: for an anchor face and a swapped version of it, ArcFace returns a similarity of 0.6212 and BlendFace 0.8015.

Key idea. BlendFace trains a face recognition model on blended images whose attributes are replaced with those of another, which mitigates inter-personal biases such as hairstyles.

  • blendface
  • identity encoder
  • face swapping
  • face-swapping
  • face recognition
  • identity embedding
  • attribute leakage
  • identity-attribute disentanglement
  • blended images

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{shiohara2023blendfaceredesigningidentityencoders,
      title={BlendFace: Re-designing Identity Encoders for Face-Swapping}, 
      author={Kaede Shiohara and Xingchao Yang and Takafumi Taketomi},
      year={2023},
      eprint={2307.10854},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2307.10854}, 
}