All models

RECCE

Face forgery detector that reconstructs genuine faces and classifies real versus fake from the learned features.

Image classification · 8,959 operations Structure only

Structure-only capture: TorchLens recorded this graph without running real numbers through the model, so shapes and data types on the diagram are hypotheses, not measurements.

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 8,959 operations (197 KB) 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
25.8M
Operations
8,959
Framework
PyTorch
Recurrent
No
Published
CVPR 2022
Cited by
425 (as of 29 October 2026)
Authors
Junyi Cao, Chao Ma, Taiping Yao and others
License
MIT
Checked
Structure only: shapes and data types are hypotheses, not measurements.

Files

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

Details
Stable ID
m19617
Graph hash
d61c4503107de3db15395c892c8a2f7fe92c8fdab1d151ab2a9b338344127474
Skeleton hash
100a2a98421ba13cb258a345a9425e6392f2ca59330e272a12a30026bef28a37
Architecture hash
ffe3dc76b8bf314abfccc2c649221a14f78100a1cb9df0f4b2663a8e45801a32
Diagram SHA-256
741bda1df89545b7a66a677449265ab3f2232dda9fda99e74742d1ea0e1a882f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3

What it is

RECCE is a face forgery detector built on reconstruction-classification learning: it learns a compact representation of genuine faces and uses it to tell real images from fake ones. The paper starts from the observation that existing detectors mainly focus on specific forgery patterns such as noise characteristics, local textures or frequency statistics. In its account, this ties the learned representations to the forgery patterns in the training set and makes forgeries with unknown patterns difficult to detect.

A reconstruction network is trained over genuine images only, and the latent feature from its encoder is used for binary classification. Because genuine and forged faces follow different data distributions, forged faces show obvious reconstruction differences, which also indicate the probably forged regions. Instead of only using the encoder, the model builds bipartite graphs over the encoder and decoder features at multiple scales. The reconstruction difference then guides the graph output toward forgery traces, and the result is the final representation fed into the classifier.

Reconstruction and classification are optimized end-to-end. The code release includes dataset loaders for FaceForensics++, Celeb-DF, WildDeepfake and DFDC, and its inference script prints a fake probability for each input image.

Key idea. RECCE trains reconstruction of genuine faces and real-versus-fake classification end-to-end, and uses the reconstruction difference to guide the features fed to the classifier.

  • RECCE
  • RECCE-Deepfake
  • reconstruction-classification learning
  • face forgery detection
  • deepfake detection
  • fake face detection
  • forgery detector
  • reconstruction difference
  • bipartite graph

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

Cite the paper

@inproceedings{Cao_2022, title={End-to-End Reconstruction-Classification Learning for Face Forgery Detection}, url={http://dx.doi.org/10.1109/CVPR52688.2022.00408}, DOI={10.1109/cvpr52688.2022.00408}, booktitle={2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, publisher={IEEE}, author={Cao, Junyi and Ma, Chao and Yao, Taiping and Chen, Shen and Ding, Shouhong and Yang, Xiaokang}, year={2022}, month=June, pages={4103–4112} }