Papers › Self-supervised Learning of Adversarial Example: Towards Good Generalizations for...
Self-supervised Learning of Adversarial Example: Towards Good Generalizations for Deepfake Detection
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 https://github.com/liangchen527/SLADD.
In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.
Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, on Syntology's MCP service (how to connect):
get_harvested_code_for_paper(arxiv_id="2203.12208")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="2203.12208", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="2203.12208")
Code
Syntology 36 code samples harvested from 1 repository linked to this paper: 27 ran (of which 2 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 2 violated, 2 with no contract checked; 23 where Syntology's instrument failed) · 9 unverified. Where Syntology's instrument failed: 2 where our contract draft was wrong; 21 where the contract check could not run; failures of Syntology's instrument, not of the code.
By repository: official repository: 36 samples from 1 repository, 27 ran (4 with no instrument failure; 23 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.
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 (of which 2 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 2 violated, 2 with no contract checked; 23 where Syntology's instrument failed) · 9 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.
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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.
Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.
A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.
census: 5 implementations from 5 papers, 3 distinct outputs across 2 buckets, one shared input per bucket src/networks/synthesizer.py ran Apache-2.0 (permissive) ·
6acb761868805246 · report
fixture: returned Block · level recorded 2026-09-22 7218169bb34fc5b4 · report
fixture: returned Xception · level recorded 2026-09-22 1eba56f353d0bf37 · report
fixture: signature arr:ndarray/2/float, clip:bool/0/bool · returned ndarray · level recorded 2026-09-22 9a6c144d88add499 · report
fixture: signature img:ndarray/3/int, mask:ndarray/2/int · returned ndarray · level recorded 2026-09-22 e347cbbb16944cb7 · report
fixture: signature mask:ndarray/2/int · returned ndarray · level recorded 2026-09-22 fed5e64e52963ec7 · report
fixture: signature source:ndarray/2/float, template:ndarray/2/float, hist_match_threshold:int/0/int, mask:ndarray/2/float · returned ndarray · level recorded 2026-09-22 ba01fce9d6a52a04 · report
fixture: signature img_src:ndarray/3/float, img_tgt:ndarray/3/float, mask:ndarray/3/float · returned ndarray · level recorded 2026-09-22 e37a7fdfad057776 · report
fixture: signature src_:ndarray/3/int, dst_:ndarray/3/int, mask:ndarray/2/int · returned ndarray · level recorded 2026-09-22 c083a54678b93ce8 · report
fixture: signature src_im:ndarray/3/int, tar_im:ndarray/3/int, hist_match_threshold:int/0/int, mask:ndarray/2/float · returned ndarray · level recorded 2026-09-22 15355cf6f8ec7f19 · report
fixture: signature i0:ndarray/3/float, i1:ndarray/3/float, bins:int/0/int, n_rot:int/0/int · returned ndarray · level recorded 2026-09-22 92a49f601bcf78ae · report
fixture: signature img_src:ndarray/3/float, img_trg:ndarray/3/float · returned ndarray · level recorded 2026-09-22 774c440758cf4d89 · report
fixture: signature x0:ndarray/3/float, x1:ndarray/3/float · returned ndarray · level recorded 2026-09-22 8f4b4f9c257b13ed · report
fixture: signature src:ndarray/3/float, trg:ndarray/3/float, steps:int/0/int, batch_size:int/0/int, reg_sigmaXY:float/0/float, reg_sigmaV:float/0/float · returned ndarray · level recorded 2026-09-22 5319944dba530319 · report
fixture: signature realimg:ndarray/3/float, fakeimg:ndarray/3/float, mask:ndarray/2/float, mag:float/0/float · returned ndarray · level recorded 2026-09-22 b85534f53cf3248a · report
fixture: signature im1:ndarray/3/int, im2:ndarray/3/int, landmarks1:ndarray/2/float · returned ndarray · level recorded 2026-09-22 census: 6 implementations from 6 papers, 5 distinct outputs across 2 buckets, one shared input per bucket src/networks/synthesizer.py ran · our draft was wrong Apache-2.0 (permissive) ·
669a43459c1dcc98 · report
fixture: signature p1:tuple/1/int, p2:tuple/1/int · returned float · level recorded 2026-09-22 0ced88afb54982e1 · report
fixture: signature mask:ndarray/2/float, res:int/0/int · returned ndarray · level recorded 2026-09-22 95234979fc3cc146 · report
fixture: signature landmarks_68:ndarray/2/float · returned list · level recorded 2026-09-22 4de3aeeb2b8d9248 · report
fixture: signature image:ndarray/3/int · returned tuple · level recorded 2026-09-22 d30d467e1fd0d091 · report
fixture: signature target_img:ndarray/3/float, source_img:ndarray/3/float, mode:str/0/str, eps:float/0/float · returned ndarray · level recorded 2026-09-22 a7f3d57c95a1c2f0 · report
fixture: signature mask:ndarray/2/int · returned ndarray · level recorded 2026-09-22 b97c47134fc596c6 · report
fixture: returned ndarray · level recorded 2026-09-22 7d79e91f53c5b500 · report
fixture: signature target:ndarray/3/int, source:ndarray/3/int, clip:bool/0/bool, preserve_paper:bool/0/bool, source_mask:ndarray/3/float, target_mask:ndarray/3/float · returned ndarray · level recorded 2026-09-22 f976c91ae7d4e300 · report
fixture: signature image:ndarray/3/int, landmarks:list/1/tuple, opt:str/0/str · returned ndarray · level recorded 2026-09-22 773f480524c30a0b · report
fixture: signature image:ndarray/3/int, landmarks:list/1/tuple · returned ndarray · level recorded 2026-09-22 17b7d389e847463d · report
fixture: signature image:ndarray/3/int, landmarks:ndarray/2/int · returned ndarray · level recorded 2026-09-22 e466d89b39b88402 · report
fixture: signature src:ndarray/2/float, dst:ndarray/2/float, estimate_scale:bool/0/bool · returned ndarray · level recorded 2026-09-22 2df4fb5ac63e85f0 · report
5d568a8c6b4e3c8f · report
8ec3fc1b4f8772c6 · report
11b54e2c077cce24 · report
0cac967602788bdb · report
3f8cf674f1451c2a · report
e49f897dc62e508e · report
6cc4b069300d3ce0 · report
Method as code Syntology
What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.
1 assembly on this paper: 1 harvested, 0 generated.
harvested Assembly for Self-supervised Learning of Adversarial Example (graph method: Self-supervised Learning of Adversarial Example). 37 bricks; individually on a fixture: 28 ran (of which 3 constructed an object rather than computing a result; 5 with no instrument failure: 0 honoured, 2 violated, 3 with no contract checked; 23 where Syntology's instrument failed) · 9 unverified. The assembly has not been run end-to-end.
- synthesizer entry · level 0 · unverified ·
e49f897dc62e508e - TransferModel model · level 0 · unverified ·
2df4fb5ac63e85f0 - blend_fake_to_real data_transform · level 0 · unverified ·
8ec3fc1b4f8772c6 - generate_random_mask helper · level 1 · ran; the contract check could not run (RAISES) ·
0ced88afb54982e1 - get_five_key helper · level 1 · ran; the contract check could not run (RAISES) ·
95234979fc3cc146 - random_deform helper · level 1 · ran · our draft was wrong ·
b97c47134fc596c6 - remove_eyes helper · level 1 · ran; the contract check could not run (RAISES) ·
f976c91ae7d4e300 - remove_mouth helper · level 1 · ran; the contract check could not run (RAISES) ·
773f480524c30a0b - remove_nose helper · level 1 · ran; the contract check could not run (RAISES) ·
17b7d389e847463d - RPModel helper · level 0 · unverified ·
b7583eca3a5dea96 - xception helper · level 0 · unverified ·
6cc4b069300d3ce0 - apply_mask helper · level 1 · ran; the contract check could not run (RAISES) ·
9a6c144d88add499 - color_transfer helper · level 0 · unverified ·
11b54e2c077cce24 - copy_fake_to_real data_transform · level 1 · ran · violated contract ·
5319944dba530319 - correct_colours helper · level 1 · ran; the contract check could not run (RAISES) ·
b85534f53cf3248a - get_align_mat_new helper · level 0 · unverified ·
3f8cf674f1451c2a - mask_postprocess helper · level 1 · ran; the contract check could not run (RAISES) ·
a7f3d57c95a1c2f0 - dist helper · level 1 · ran · our draft was wrong ·
669a43459c1dcc98 - Xception helper · level 1 · ran ·
7218169bb34fc5b4 - colorTransfer_avg helper · level 1 · ran; the contract check could not run (RAISES) ·
ba01fce9d6a52a04 - colorTransfer_fs helper · level 1 · ran · violated contract ·
e37a7fdfad057776 - color_hist_match helper · level 1 · ran; the contract check could not run (RAISES) ·
c083a54678b93ce8 - color_transfer_idt helper · level 1 · ran; the contract check could not run (RAISES) ·
15355cf6f8ec7f19 - color_transfer_mix helper · level 1 · ran; the contract check could not run (RAISES) ·
92a49f601bcf78ae - color_transfer_mkl helper · level 1 · ran; the contract check could not run (RAISES) ·
774c440758cf4d89 - color_transfer_sot helper · level 1 · ran; the contract check could not run (RAISES) ·
8f4b4f9c257b13ed - linear_color_transfer helper · level 1 · ran; the contract check could not run (RAISES) ·
d30d467e1fd0d091 - reinhard_color_transfer helper · level 1 · ran; the contract check could not run (RAISES) ·
7d79e91f53c5b500 - align_eyes helper · level 0 · unverified ·
5d568a8c6b4e3c8f - get_5_keypoint helper · level 0 · unverified ·
0cac967602788bdb - umeyama helper · level 1 · ran; the contract check could not run (RAISES) ·
e466d89b39b88402 - blur_mask helper · level 1 · ran; the contract check could not run (RAISES) ·
e347cbbb16944cb7 - Block helper · level 1 · ran ·
6acb761868805246 - SeparableConv2d helper · level 1 · ran ·
e62c4554809ce2bc - channel_hist_match helper · level 1 · ran; the contract check could not run (RAISES) ·
fed5e64e52963ec7 - _scale_array helper · level 1 · ran; the contract check could not run (RAISES) ·
1eba56f353d0bf37 - lab_image_stats helper · level 1 · ran; the contract check could not run (RAISES) ·
4de3aeeb2b8d9248
Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2203.12208") returns these assemblies with each brick's role and wiring (how to connect).
Tasks
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