Papers › Evading Forensic Classifiers with Attribute-Conditioned Adversarial Faces

Evading Forensic Classifiers with Attribute-Conditioned Adversarial Faces

22 Jun 2023CVPR 2023 1arXiv:2306.13091archive 2025-07-28

Fahad Shamshad, Koushik Srivatsan, Karthik Nandakumar

The ability of generative models to produce highly realistic synthetic face images has raised security and ethical concerns. As a first line of defense against such fake faces, deep learning based forensic classifiers have been developed. While these forensic models can detect whether a face image is synthetic or real with high accuracy, they are also vulnerable to adversarial attacks. Although such attacks can be highly successful in evading detection by forensic classifiers, they introduce visible noise patterns that are detectable through careful human scrutiny. Additionally, these attacks assume access to the target model(s) which may not always be true. Attempts have been made to directly perturb the latent space of GANs to produce adversarial fake faces that can circumvent forensic classifiers. In this work, we go one step further and show that it is possible to successfully generate adversarial fake faces with a specified set of attributes (e.g., hair color, eye size, race, gender, etc.). To achieve this goal, we leverage the state-of-the-art generative model StyleGAN with disentangled representations, which enables a range of modifications without leaving the manifold of natural images. We propose a framework to search for adversarial latent codes within the feature space of StyleGAN, where the search can be guided either by a text prompt or a reference image. We also propose a meta-learning based optimization strategy to achieve transferable performance on unknown target models. Extensive experiments demonstrate that the proposed approach can produce semantically manipulated adversarial fake faces, which are true to the specified attribute set and can successfully fool forensic face classifiers, while remaining undetectable by humans. Code: https://github.com/koushiksrivats/face_attribute_attack.

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

Code

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

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

koushiksrivats/face_attribute_attack officialmentioned in paperpytorch 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

20 samples harvested; 12 ran; 0 honoured the contract we drafted; 8 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.

1ran · our draft was wrong
2ran · fixture could not drive it
9ran
8unverified

Licence: 20 of the 20 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 koushiksrivats/face_attribute_attack. “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.

Blur koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 6a657c5a423ebb1b · report
ConstantInput koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 6ac39cc25c802292 · report
EqualLinear koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · e47588046427d5bf · report
FusedLeakyReLU koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 49d075452b1d32c2 · report
Generator koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 1ec76c108312391c · report
ImageTransform koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · our draft was wrong no licence file found · pointer only · a14989f041846d5f · report
NoiseInjection koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 6a89165f91afae45 · report
Normalize koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 3aff569b0f560591 · report
PixelNorm koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 9b4774177e343e0b · report
Upsample koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 9a98641c4a409588 · report
upfirdn2d koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · fixture could not drive it no licence file found · pointer only · 238fedc043c13f62 · report
upfirdn2d_native koushiksrivats/face_attribute_attack/image_as_reference.py official repository ran · fixture could not drive it no licence file found · pointer only · fe99cfd294676edb · report
ModulatedConv2d koushiksrivats/face_attribute_attack/image_as_reference.py official repository unverified no licence file found · pointer only · 673fcfe5abee6fa2 · report
StyledConv koushiksrivats/face_attribute_attack/image_as_reference.py official repository unverified no licence file found · pointer only · dabdb31d4bd12319 · report
ToRGB koushiksrivats/face_attribute_attack/image_as_reference.py official repository unverified no licence file found · pointer only · 995aad99045f4c4d · report
ensure_checkpoint_exists koushiksrivats/face_attribute_attack/image_as_reference.py official repository unverified no licence file found · pointer only · 223870c61558817c · report
fused_leaky_relu koushiksrivats/face_attribute_attack/image_as_reference.py official repository unverified no licence file found · pointer only · 737ec98d1a59d066 · report
get_classifier koushiksrivats/face_attribute_attack/image_as_reference.py official repository unverified no licence file found · pointer only · dd91635c995516a5 · report
get_stylegan_generator koushiksrivats/face_attribute_attack/image_as_reference.py official repository unverified no licence file found · pointer only · cc2b94960ff33e11 · report
image_as_reference koushiksrivats/face_attribute_attack/image_as_reference.py official repository unverified no licence file found · pointer only · 0910a44fbe46f84f · report

Tasks

AttributeMeta-Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Adaptive Instance NormalizationConvolutionDense ConnectionsFeedforward NetworkR1 RegularizationStyleGAN

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