All models

InfoSwap

A face-swapping network that separates identity from pose and expression with information bottlenecks.

Diffusion and generative · 4,150 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

This diagram has 4,150 operations (2.3 MB) and is drawn when you ask.

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
250.6M
Operations
4,150
Framework
PyTorch
Recurrent
Yes
Published
CVPR 2021
Cited by
128 (as of 27 October 2026)
Authors
Gege Gao, Huaibo Huang, Chaoyou Fu and others
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
m17573
Graph hash
a73847baf8ab8f30bbfaeaeeaa5a430baa7a6bcf90588285d3cde8b440c09bb7
Skeleton hash
a3a3c0384763b269b72dfe3556821df10dfd3e5dc40f77105bf75a3c39d33790
Architecture hash
dbd09d512023cbf3d177e80e790d5e3008a37577aa13a23f502888697425dff6
Diagram SHA-256
17cb9144ce2ae8093a92e47c64eb0d925215c177c6a48f510521885e13f1aa81
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

InfoSwap is a face-swapping network: given a source face and a target face, it generates an image that shares the identity of the source and the perceptual attributes of the target. The paper's stated motivation is that face forgery detectors often need more identity-swapped images of higher quality to improve.

Rather than training several new encoders, InfoSwap learns identity and perceptual representations together by quantifying and compressing the information flowing through a pre-trained face recognition model. It compresses that network's internal features by adding noise to them, in amounts set by information controllers that a module called the Informative Identity Bottleneck (IIB) predicts. A second module, the Adaptive Information Integrator (AII), then integrates the compressed identity and perceptual features, again guided by the controllers, to output the swapped face. A U-Net decoder first enlarges the perceptual features so that the output can be 512 × 512 or 1024 × 1024. An identity contrastive loss adds the requirement that the generated identity keep a proper distance from the target.

In the paper's setup the features come from the first 10 layers of the pre-trained network, so the IIB has 10 bottlenecks and the AII has 10 integrating layers. On FaceForensics++ the paper reports an ID retrieval accuracy of 99.67% for InfoSwap. It also notes that the expression errors of FSGAN and FaceSwap are slightly lower than its own.

Key idea. InfoSwap formulates the disentangling of identity from identity-irrelevant information for face swapping as an information bottleneck trade-off over the latent features of a pre-trained face recognition model.

  • InfoSwap
  • face swap
  • face swapping
  • identity swapping
  • information bottleneck
  • disentanglement
  • deepfake generation
  • identity contrastive loss

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

Cite the paper

@inproceedings{Gao_2021, title={Information Bottleneck Disentanglement for Identity Swapping}, url={http://dx.doi.org/10.1109/CVPR46437.2021.00341}, DOI={10.1109/cvpr46437.2021.00341}, booktitle={2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, publisher={IEEE}, author={Gao, Gege and Huang, Huaibo and Fu, Chaoyou and Li, Zhaoyang and He, Ran}, year={2021}, month=June, pages={3403–3412} }