Papers › Self-supervised Learning of Adversarial Example: Towards Good Generalizations for...

Self-supervised Learning of Adversarial Example: Towards Good Generalizations for Deepfake Detection

23 Mar 2022CVPR 2022 1arXiv:2203.12208archive 2025-07-28

Liang Chen, Yong Zhang, Yibing Song, Lingqiao Liu, Jue Wang

Recent studies in deepfake detection have yielded promising results when the training and testing face forgeries are from the same dataset. However, the problem remains challenging when one tries to generalize the detector to forgeries created by unseen methods in the training dataset. This work addresses the generalizable deepfake detection from a simple principle: a generalizable representation should be sensitive to diverse types of forgeries. Following this principle, we propose to enrich the "diversity" of forgeries by synthesizing augmented forgeries with a pool of forgery configurations and strengthen the "sensitivity" to the forgeries by enforcing the model to predict the forgery configurations. To effectively explore the large forgery augmentation space, we further propose to use the adversarial training strategy to dynamically synthesize the most challenging forgeries to the current model. Through extensive experiments, we show that the proposed strategies are surprisingly effective (see Figure 1), and they could achieve superior performance than the current state-of-the-art methods. Code is available at \url{https://github.com/liangchen527/SLADD}.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2203.12208")

Code

Syntology Ran 27 of 36 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 2 ran · violated contract; 1 ran · our draft was wrong; 22 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 36 samples from 1 repository, 27 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

liangchen527/sladd officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

36 samples harvested; 27 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · violated contract
1ran · our draft was wrong
22ran · fixture could not drive it
2ran
9unverified

Licence: 0 of the 36 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from liangchen527/SLADD. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Block liangchen527/SLADD/src/networks/synthesizer.py official repository ran Apache-2.0 (permissive) · 6acb761868805246 · report
Xception liangchen527/SLADD/src/networks/synthesizer.py official repository ran Apache-2.0 (permissive) · 7218169bb34fc5b4 · report
_scale_array liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 1eba56f353d0bf37 · report
apply_mask liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 9a6c144d88add499 · report
blur_mask liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · e347cbbb16944cb7 · report
channel_hist_match liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · fed5e64e52963ec7 · report
colorTransfer_avg liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · ba01fce9d6a52a04 · report
colorTransfer_fs liangchen527/SLADD/src/networks/synthesizer.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · e37a7fdfad057776 · report
color_hist_match liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · c083a54678b93ce8 · report
color_transfer_idt liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 15355cf6f8ec7f19 · report
color_transfer_mix liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 92a49f601bcf78ae · report
color_transfer_mkl liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 774c440758cf4d89 · report
color_transfer_sot liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 8f4b4f9c257b13ed · report
copy_fake_to_real liangchen527/SLADD/src/networks/synthesizer.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 5319944dba530319 · report
correct_colours liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · b85534f53cf3248a · report
dist liangchen527/SLADD/src/networks/synthesizer.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 669a43459c1dcc98 · report
generate_random_mask liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 0ced88afb54982e1 · report
get_five_key liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 95234979fc3cc146 · report
lab_image_stats liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 4de3aeeb2b8d9248 · report
linear_color_transfer liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · d30d467e1fd0d091 · report
mask_postprocess liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · a7f3d57c95a1c2f0 · report
random_deform liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · b97c47134fc596c6 · report
reinhard_color_transfer liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 7d79e91f53c5b500 · report
remove_eyes liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · f976c91ae7d4e300 · report
remove_mouth liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 773f480524c30a0b · report
remove_nose liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 17b7d389e847463d · report
umeyama liangchen527/SLADD/src/networks/synthesizer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · e466d89b39b88402 · report
RPModel liangchen527/SLADD/src/networks/synthesizer.py official repository unverified Apache-2.0 (permissive) · b7583eca3a5dea96 · report
TransferModel liangchen527/SLADD/src/networks/synthesizer.py official repository unverified Apache-2.0 (permissive) · 2df4fb5ac63e85f0 · report
align_eyes liangchen527/SLADD/src/networks/synthesizer.py official repository unverified Apache-2.0 (permissive) · 5d568a8c6b4e3c8f · report
blend_fake_to_real liangchen527/SLADD/src/networks/synthesizer.py official repository unverified Apache-2.0 (permissive) · 8ec3fc1b4f8772c6 · report
color_transfer liangchen527/SLADD/src/networks/synthesizer.py official repository unverified Apache-2.0 (permissive) · 11b54e2c077cce24 · report
get_5_keypoint liangchen527/SLADD/src/networks/synthesizer.py official repository unverified Apache-2.0 (permissive) · 0cac967602788bdb · report
get_align_mat_new liangchen527/SLADD/src/networks/synthesizer.py official repository unverified Apache-2.0 (permissive) · 3f8cf674f1451c2a · report
synthesizer liangchen527/SLADD/src/networks/synthesizer.py official repository unverified Apache-2.0 (permissive) · e49f897dc62e508e · report
xception liangchen527/SLADD/src/networks/synthesizer.py official repository unverified Apache-2.0 (permissive) · 6cc4b069300d3ce0 · report

Tasks

DeepFake DetectionDiversityFace SwappingSelf-Supervised Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections