Papers › Preserving Fairness Generalization in Deepfake Detection

Preserving Fairness Generalization in Deepfake Detection

27 Feb 2024CVPR 2024 1arXiv:2402.17229archive 2025-07-28

Li Lin, Xinan He, Yan Ju, Xin Wang, Feng Ding, Shu Hu

Although effective deepfake detection models have been developed in recent years, recent studies have revealed that these models can result in unfair performance disparities among demographic groups, such as race and gender. This can lead to particular groups facing unfair targeting or exclusion from detection, potentially allowing misclassified deepfakes to manipulate public opinion and undermine trust in the model. The existing method for addressing this problem is providing a fair loss function. It shows good fairness performance for intra-domain evaluation but does not maintain fairness for cross-domain testing. This highlights the significance of fairness generalization in the fight against deepfakes. In this work, we propose the first method to address the fairness generalization problem in deepfake detection by simultaneously considering features, loss, and optimization aspects. Our method employs disentanglement learning to extract demographic and domain-agnostic forgery features, fusing them to encourage fair learning across a flattened loss landscape. Extensive experiments on prominent deepfake datasets demonstrate our method's effectiveness, surpassing state-of-the-art approaches in preserving fairness during cross-domain deepfake detection. The code is available at https://github.com/Purdue-M2/Fairness-Generalization

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="2402.17229")

Code

Syntology Ran 11 of 14 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 8 ran with no contract checked.

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

purdue-m2/fairness-generalization officialmentioned in paperpytorchMIT 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

14 samples harvested; 11 ran; 0 honoured the contract we drafted; 3 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.

3ran · our draft was wrong
8ran
3unverified

Licence: 0 of the 14 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 Purdue-M2/Fairness-Generalization. “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.

AdaIN Purdue-M2/Fairness-Generalization/training/detectors/fair_df_detector.py official repository ran fingerprinted MIT (permissive) · 7f3ff664d9863e70 · report
Conv2d1x1 Purdue-M2/Fairness-Generalization/training/detectors/fair_df_detector.py official repository ran fingerprinted MIT (permissive) · 72523daadda7aa6a · report
Head Purdue-M2/Fairness-Generalization/training/detectors/fair_df_detector.py official repository ran MIT (permissive) · a961635e87f5c559 · report
Registry Purdue-M2/Fairness-Generalization/training/detectors/fair_df_detector.py official repository ran MIT (permissive) · f88683254210f95c · report
calculate_metrics_for_train Purdue-M2/Fairness-Generalization/training/detectors/fair_df_detector.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 46cb3a5813949dd0 · report
classification_metrics purdue-m2/fairness-generalization/training/fairness_metrics.py official repository ran MIT (permissive) · c987e7409c07b8d5 · report
get_accracy Purdue-M2/Fairness-Generalization/training/detectors/fair_df_detector.py official repository ran · our draft was wrong MIT (permissive) · 5eb46a5ee6daa359 · report
r_double_conv Purdue-M2/Fairness-Generalization/training/detectors/fair_df_detector.py official repository ran · our draft was wrong MIT (permissive) · 9d6ab83ebd588047 · report
sigmoid purdue-m2/fairness-generalization/training/fairness_metrics.py official repository ran fingerprinted MIT (permissive) · 396256bd807f90dc · report
softmax purdue-m2/fairness-generalization/training/fairness_metrics.py official repository ran fingerprinted MIT (permissive) · 7937fb59ef6dda7d · report
swap_spe_features purdue-m2/fairness-generalization/training/loss/contrastive_regularization.py official repository ran MIT (permissive) · 04fdd18bc3255f94 · report
AbstractDetector Purdue-M2/Fairness-Generalization/training/detectors/fair_df_detector.py official repository unverified MIT (permissive) · 907c22bdf2a2c147 · report
Conditional_UNet Purdue-M2/Fairness-Generalization/training/detectors/fair_df_detector.py official repository unverified MIT (permissive) · 7f58b64ed9b32184 · report
FairDetector Purdue-M2/Fairness-Generalization/training/detectors/fair_df_detector.py official repository unverified MIT (permissive) · 16b3c26d9346c7bc · report

Tasks

DeepFake DetectionDisentanglementFace SwappingFairness

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