Skip to content
AI.info

Papers

TwinD: Generalizing Deepfake Detection from Blending to Entire Face Synthesis

TwinD exposes and narrows the huge gap between blending-fake and entire-face-synthesis deepfake detection, with a generator-free training trick that matters for deployed face-forensics systems.

The paper’s first page · arXiv:2611.25935
arXiv
2611.25935 · Preprint · not peer-reviewed
Published
2026-11-19
Authors
Andrii Yermakov, Jan Cech, Mario Fritz, Jiri Matas

In plain words

Most facial deepfake detectors are trained on blending fakes — a generated face pasted back into a real frame — and they learn the compositing artifacts rather than anything intrinsic to synthesis.

Key results

  • Overall state of the art. TwinD reaches a mean AUROC of 96.3%, 8.9 points above the best prior detector (GenD-PE), with 98.1% on the ten blending datasets and 95.6% on the five EFS datasets.
  • Robustness. averaged over the 19 datasets, TwinD has the highest AUROC under every tested JPEG quality, Gaussian blur, Gaussian noise and downscaling setting, but the margin over GenD-PE narrows under noise and downscaling and the two are on par at the strongest noise.

AI summary

Overview

  • Research area: Computer vision / media forensics — facial deepfake detection, with a focus on generalizing across unseen generators.
  • Technical level: Intermediate (assumes familiarity with AUROC, transfer learning, and autoencoders, but the core idea is explained conceptually).
  • Scope: The paper introduces TwinD, a detector trained on "twin" pseudo-fakes synthesized from real frames, and benchmarks it against 15 prior detectors on 19 facial deepfake datasets released between 2019 and 2026.

What This Paper Is About

Most facial deepfake detectors are trained on blending fakes — a generated face pasted back into a real frame — and they learn the compositing artifacts rather than anything intrinsic to synthesis. Recent generators produce entire face synthesis (EFS) fakes that leave no blending traces, and the paper shows that neither existing facial deepfake detectors nor AI-generated-content (AIGC) detectors handle them: the best prior facial detector reaches a mean AUROC of 96.2% on ten blending datasets but none exceeds 78.1% on five EFS datasets. The goal is a single detector that generalizes to both kinds of fakes and to generators it has never seen.

Key Contributions

  1. Two new kinds of "twins": a reconstruction twin (a real frame reconstructed by an autoencoder, with real pixels put back inside a random mask) that teaches the detector the neural traces of a decoder, and a blob twin (an altered copy of a real frame blended back through a smooth round mask) that teaches blending artifacts without needing any generator or facial landmarks.
  2. The TwinD detector, which trains on FaceForensics++ fakes plus both kinds of twins, using a frozen PE core L backbone adapted with LoRA, regularized with L2-SP and weight averaging (SWA plus a three-seed model soup).
  3. The largest same-crops evaluation of released detectors on facial deepfakes to date: 15 prior detectors (6 AIGC, 9 facial deepfake) on 19 datasets released from 2019 to 2026, grouped into Blending (10), EFS (5), and B+EFS (4).
  4. A demonstration that twins alone suffice: trained without any deepfake dataset, single models still reach 94.3% mean AUROC over three seeds, above all 15 prior detectors.

Main Findings

  • Overall state of the art: TwinD reaches a mean AUROC of 96.3%, 8.9 points above the best prior detector (GenD-PE), with 98.1% on the ten blending datasets and 95.6% on the five EFS datasets. It reaches at least 90.4% on each of the 19 datasets.
  • Best on 17 of 19 datasets: The two exceptions are CDFv3, where the temporal model DFD-FCG is 2.7 points higher, and HF, where the AIGC detector B-Free is 2.4 points higher.
  • B+EFS datasets: TwinD reaches 92.7% on the four mixed datasets versus 80.1% for GenD-PE.
  • AIGC detectors do not transfer: The best AIGC detector, B-Free, reaches 73.8% on the EFS datasets and 73.8% over all 19, with 98.5% on HF but 48.6% on OF.
  • Per-generator generalization (Table 3): Across 17 generators from DF26, OF and MV — none seen in training — TwinD averages 95.6% and never falls below 88.8%; on the four closed-source generators it is between 91.4% and 97.4%. GenD-PE is 20.8 points below. No prior facial deepfake detector beats TwinD in any of the 17 columns; the only cells where a prior method is above TwinD are six AIGC results on Kling, Wan 2.6 or Wan 2.2.
  • The two twins are complementary: removing reconstruction twins drops EFS by 18.1 points while blending stays within seed variance; removing blob twins drops Blending by 5.8 points while EFS stays within seed variance. Reconstruction twins alone collapse on blending (−33.0 points).
  • Training data matters more than architecture: training on FF++ only (no twins, no CCv2 reals) gives 85.7% on All, which is 1.7 points below GenD-PE. Blending drops only 1.3 points in that setting while EFS drops 24.4 points.
  • Blob twins beat self-blended images (SBI): replacing blob twins with SBI lowers Blending by 0.9 points, and blob twins alone (−9.3 on All) do at least as well as FF++ fakes alone (−10.4).
  • Partial reconstruction matters: removing the real-pixel masking from reconstruction twins costs 2.7 points on EFS and 3.5 on B+EFS.
  • The choice of autoencoder is not critical: swapping CogVideoX for KVAE 2D, LTX-Video, HunyuanVideo 1.0 or LTX-2 lowers the average by 3.3 to 6.2 points, still far above GenD-PE (−20.8). No autoencoder wins on every generator: LTX-2 beats CogVideoX in 8 of the 10 DF26 columns by up to 7.6 points but loses on OF by up to 27.5 points.
  • LoRA rank barely matters: mean AUROC on All goes from 95.2% at rank 2 to 96.1% at rank 32 and 95.8% at rank 64; every rank beats all prior detectors.
  • Robustness: averaged over the 19 datasets, TwinD has the highest AUROC under every tested JPEG quality, Gaussian blur, Gaussian noise and downscaling setting, but the margin over GenD-PE narrows under noise and downscaling and the two are on par at the strongest noise.

Methodology in Plain English

The central idea is to control exactly what the detector is allowed to learn from by manufacturing fakes out of real frames.

  1. Build two families of fake data from real faces.
    • Reconstruction twins: every real frame is passed through the CogVideoX video autoencoder and then decoded back. The output differs from the original only by the decoder's traces. To stop the detector from overfitting to a particular decoder, real pixels are pasted back into a random region covering 0 to 90% of the frame — half the time a random set of cells on a 32×32 grid, otherwise irregular blobs made from blurred noise. The result is labeled fake.
    • Blob twins: an altered copy of the frame (contrast and hue changed, downsampled 2× by nearest-neighbor and upsampled back with bilinear interpolation) is blended with the frame itself through a soft round mask centered at 50% of the crop's width and 60% of its height, covering 8 to 50% of the crop, with blend strength 0.3 or 1 and a small random shift of up to 1.8% of the crop.
  2. Pair every fake with its source real frame. Both images get the same random augmentation (flip, affine transform, blur, brightness/contrast jitter, sharpening, JPEG), so the only difference between the two classes is the manipulation. An epoch has 34,434 pairs in batches of 64, roughly one third FF++ fakes, one third reconstruction twins and one third blob twins.
  3. Fine-tune a foundation model cheaply. The backbone is the vision part of PE core L at 224×224, with a linear binary classifier and LoRA of rank 32 and α = 32 applied to the query, key, value and output projections of all 24 self-attention blocks — 6.29M trainable parameters, 1.95% of the model.
  4. Avoid picking checkpoints on a validation set that does not represent the test distribution. Training runs 10 epochs with cross-entropy, Adam, bf16, a constant learning rate of 3·10⁻⁴ after one epoch of warm-up from 10⁻⁵, and L2-SP instead of weight decay. All checkpoints from the last 5 epochs are averaged with SWA, and three seeds are merged into one model soup (LoRA updates merged into the frozen weights first). The epoch count and learning rate were fixed in advance.
  5. Score at the video level. Up to 32 evenly spaced frames per video are detected with SCRFD-10GF, aligned on five keypoints, cropped with a 1.3× enlarged box, resized and normalized, and the video score is the mean of the frame scores. All methods in the benchmark receive the same face crops but apply their own resizing and normalization.

Why This Matters

Deepfake detectors trained on one style of manipulation silently fail on the next generation of generators, which makes any deployed detector's reported accuracy hard to trust. This paper shows that the failure is a data problem rather than an architecture problem: adding fakes that isolate the decoder's traces and the compositing traces — with no new generator and no face swap required — closes most of the gap.

Real-world applications:

  • Platform trust and safety: screening uploaded video for synthetic faces regardless of which generator produced them.
  • Identity verification and video KYC: detecting fully synthetic faces in remote onboarding and video-call authentication, where there is no blending seam to find.
  • Journalism and open-source verification: giving fact-checkers a single detector that survives recompression and format changes.
  • Forensic and legal evidence review: flagging suspected synthetic media in footage submitted as evidence, with a documented, reproducible benchmark behind the claim.

Industry relevance: the model is deliberately cheap to run (one hour of training on a single A100; about 1,000 frames per second at inference, with DFD-HR noted as 15 times slower), trains on a small curated frame set (38,211 frames), and the code, trained model and training data are released at https://github.com/yermandy/TwinD.

Future Directions

  • Robustness to noise and downscaling. Both degrade TwinD more than prior detectors, most on EFS, and neither is used in training; the authors name training for robustness to them as future work.
  • Multiple autoencoders. Reconstruction twins currently come from a single autoencoder, and no tested autoencoder is best on every generator, so combining several at once is proposed as future work.
  • Closing the remaining per-generator gaps. Some AIGC detectors still beat TwinD on specific closed-source generators such as Kling and Wan variants, which suggests room for improvement on those families.
  • Temporal modeling. The only dataset where TwinD loses to a prior method is CDFv3, where the temporal model DFD-FCG is 2.7 points higher; TwinD scores each frame independently and averages, so incorporating temporal cues is an open question the results raise.

Target Audience

Researchers and engineers working on media forensics, synthetic-content detection and foundation-model fine-tuning; benchmark builders who need to know which datasets and evaluation protocols expose generalization failures; and trust-and-safety or security practitioners who need a detector that works on whole-face synthesis rather than only on pasted-face artifacts. Readers without a vision background can follow the twin-construction idea, but the results tables assume comfort with AUROC and cross-dataset evaluation.

Note: the supplied paper text is truncated at the beginning of the supplementary material (Section S2), so the supplementary tables referenced in the main text (S4, S6, S10–S15 and S11–S13) could not be summarized.

Authors’ abstract

Facial deepfake detectors are usually trained on blending fakes, where a generated face is pasted back into a real frame. Recent generators synthesize the entire face and leave no traces of blending. On a benchmark of 19 datasets released from 2019 to 2026, the best prior facial deepfake detector reaches a mean AUROC of 96.2% on ten blending datasets, but none exceeds 78.1% on five datasets of entire face synthesis (EFS). AI-generated content (AIGC) detectors do not close…

The full abstract on arXiv
Read the original paper

Related papers