Generator attribution is the forensic task of naming which generative model produced a synthetic image: Stable Diffusion XL, DALL-E 3, or a specific GAN checkpoint. It works because each generator leaves faint, high-frequency "fingerprints" in its outputs, much as a camera sensor leaves a noise pattern. Those same fingerprints are what make attribution easy to break. Cheap anti-forensic attacks erase or forge them, and the standard fix, adversarial training (retraining the classifier on worst-case perturbed inputs), is expensive. It also pushes the classifier to ignore exactly the fine high-frequency detail that separates one generator from another. For attribution, then, the robustness-accuracy trade-off is not a side effect. It sits on the very signal being classified.
We propose to keep a large pretrained vision backbone completely frozen, read attribution from its intermediate layers where low-level artifacts survive, and harden it by training only a handful of extra input tokens. The tokens are trained against a learned, single-pass attacker that produces both additive noise and multiplicative fingerprint suppression. A feature-anchoring loss pins the clean intermediate features to those of the undefended model, so clean attribution accuracy is preserved by construction rather than traded away. The bet is that this gives most of the robustness of full adversarial training against both known attack families, at a small multiple of clean training cost and with essentially no loss in clean attribution.
Core Claim
The claim has three parts.
First, the clean-accuracy loss in robust attribution comes from forcing invariance in the feature space where fingerprints live. A defense that explicitly anchors clean fingerprint features while correcting only adversarial deviations should avoid most of that loss.
Second, the inner optimization loop that makes adversarial training costly can be replaced by an amortized attacker, meaning a small network that outputs a perturbation in one forward pass. This is feasible because the strongest known attribution attack is already such a network.
Third, covering multiplicative attacks in training is necessary. Defenses trained only on additive, norm-bounded noise are known to fail against them.
What is new is not "robustness tokens" as such. It is moving the token defense into a non-semantic forensic task, anchoring it at intermediate layers rather than outputs, and widening the threat model beyond additive perturbations.
Grounding in Prior Work
The motivating evidence comes from attacks on attribution. TraceEvader evades four attribution models with 79.07% average attack success and 97.95% against DNA-Det. It works by forging architecture traces in high frequencies and blurring weight-specific traces in low frequencies, and denoising leaves its success near 75%. Untraceable DeepFakes via Traceable Fingerprint Elimination goes further. It multiplies the image by a learned mask ($x' = x \odot W$), which removes the spectral spikes of fingerprints, and reaches 97.08% success across 12 generators. It still retains 72.39% success when defenders adversarially train, whereas TraceEvader drops to 25.10% under the same defense. That paper constrains our design in two ways: a purely additive threat model is insufficient, and the paper proves the clean image cannot be recovered. We address the proof head-on. Non-invertibility of the image does not imply that the source class is unidentifiable, because attribution needs only the label. Whether a residual trace survives is an empirical question, and our experiments test it directly.
The fingerprints themselves are well documented. Do GANs leave artificial fingerprints? and Attributing Fake Images to GANs show they are distinct enough to separate seeds of the same architecture, with 99.43% closed-set accuracy on CelebA. DNA-Det shows architecture traces are spatially consistent across patches. On modern, caption-aligned diffusion data the picture is much worse. On MS COCOAI, a Fourier-input ResNet-50 scores 0.80144 on real-vs-fake but only 0.44913 on five-way generator attribution (A Comprehensive Dataset for Human vs. AI Generated Image Detection). Clean attribution is therefore fragile even before any hardening.
The method draws on two sources. Robustness Tokens freezes a vision transformer and trains ten appended tokens in 200 steps. It uses two objectives: keep clean outputs unchanged, and map adversarial features back to clean ones. On DINOv2-Giant this recovers attacked ImageNet accuracy from 0.3% to 63.1% with clean accuracy at 85.2% versus 85.6%. That work was validated only on semantic tasks and anchors final-layer outputs. Anchor-Regularized Adaptation shows that DINOv3's deep layers discard forgery artifacts while intermediate layers keep them, and that naive low-rank fine-tuning distorts the feature space. It anchors to a single "real" manifold for binary detection. We take its layer insight and replace its single anchor with the frozen model's own per-image intermediate features, which works for any number of generator classes.
Prior robust forensic training sets the cost reference. ARIA hardens content-provenance retrieval with an inner PGD loop, a slight clean dip, and roughly 2× training time. PGD (projected gradient descent) is the standard iterative attack used inside adversarial training. F-SAT restricts adversarial noise to vulnerable audio frequency bands, takes 8 days versus 2 on an A100, and explicitly asks for faster alternatives. Neither addresses multi-generator image attribution.
Research Program
Setup. The backbone is a frozen DINOv2 or DINOv3 transformer. Write $f_S(x;\tau)$ for its concatenated features at a chosen set $S$ of intermediate layers, with learnable tokens $\tau$ appended, and $f_S(x)$ for the same features with no tokens. The layers in $S$ are picked by linear-probe attribution accuracy, following the ARA layer analysis. A small head $h$ maps these features to generator labels $y$.
Attacker. The attacker is a network $g_\phi$ that produces $\tilde{x} = x \odot W_\phi(x) + \delta_\phi(x)$. The mask $W_\phi$ is constrained to a structural-similarity floor matching the multiplicative attack's reported SSIM of 0.963. The additive term $\delta_\phi$ is bounded in $\ell_\infty$ norm.
Objective. The tokens and head minimize
$$ \mathcal{L}(\tau,h) = \mathrm{CE}\big(h(f_S(x;\tau)),y\big) + \mathrm{CE}\big(h(f_S(\tilde{x};\tau)),y\big) + \lambda_c \|f_S(x;\tau) - f_S(x)\|^2 + \lambda_a \|f_S(\tilde{x};\tau) - f_S(x)\|^2 , $$
The four terms are, in order: cross-entropy on clean inputs; cross-entropy on attacked inputs; the clean anchor (weighted by $\lambda_c$), which forbids the tokens from moving clean fingerprint features; and the correction term (weighted by $\lambda_a$), which pulls attacked features back to the clean ones. The attacker $g_\phi$ is updated to maximize the cross-entropy term.
Keeping the attacker honest. Every $k$ steps, a short PGD refresh is applied to a fraction of the batch, so the learned attacker cannot settle into a narrow mode.
Expected cost. Each step needs one attacker pass, two backbone forward passes, and one backward pass to the tokens, with no weight gradients. A 10-step PGD loop needs about eleven forward-backward passes. We therefore expect a cost of roughly 2–3× clean training against roughly 10× for PGD. This expectation comes purely from counting passes, and we will measure it.
Analysis. We will analyze where robustness lives. We will measure per-band spectral energy of the features before and after attack, and test whether high-frequency architecture traces and low-frequency weight traces (the split TraceEvader reports) are restored differently.
Baselines
The naive reference point is the undefended frozen-backbone attribution head, using the same layers and head and no tokens. It sets clean accuracy and shows how badly the attacks break it. For orientation on MS COCOAI, the only reported attribution number is the ResNet-50 Fourier baseline's 0.44913. No reported result found on Lacuna for DINOv2- or DINOv3-feature attribution on MS COCOAI, so we establish that ourselves.
The strongest existing competitor for robustness is full PGD adversarial training of a dedicated attribution network, namely DNA-Det. DNA-Det is the attribution model TraceEvader breaks at 97.95%, and a ResNet-scale model is small enough that full adversarial training is affordable. The reported reference for adversarial training as a defense is the multiplicative attack's 72.39% residual success rate under adversarial training (Untraceable DeepFakes). We will retrain DNA-Det with PGD on our generator splits, using the same data and a wall-clock budget equal to the larger of the two methods' budgets. Beating it means matching or beating its success rate against TraceEvader while cutting multiplicative-attack success well below 72.39%, keeping clean accuracy within one point of the undefended head, and using less GPU time.
The strongest parameter-efficient competitor is low-rank adaptation (LoRA) of the same frozen backbone. It will be trained with the same attacker, the same losses, and the same step budget, with or without ARA-style anchoring. This tests whether tokens are the right place to put the capacity.
Three ablations isolate the key ingredients. The first removes the clean anchor ($\lambda_c=0$). The second anchors final-layer outputs, as original Robustness Tokens does, instead of intermediate layers. The third trains against an additive-only attacker. A fourth, zero-cost ablation replaces the learned attacker with random multiplicative masks and noise used as plain augmentation.
Why not just…?
Why not just run full PGD adversarial training on a small attribution CNN? This is the most serious threat, because for a ResNet the overhead is tolerable. The evidence against it as a complete answer is that adversarial training with additive noise leaves multiplicative elimination at 72.39% success, and small CNNs score poorly on clean modern diffusion attribution (0.44913 on MS COCOAI). It is still the main baseline. If it matches our method on both attack families at similar cost, the foundation-model component is unnecessary, and we will say so. The contribution would then reduce to the multiplicative-aware attacker.
Why not just fine-tune the backbone with LoRA instead of tokens? LoRA has more capacity and may give deeper robustness. ARA, however, shows that unanchored LoRA distorts the feature space and hurts clean generalization. We run LoRA under identical losses. If anchored LoRA wins, we adopt it: the anchor and the attacker are the core idea, and the token-versus-LoRA choice is secondary.
Why not just denoise or JPEG-compress inputs before attribution? TraceEvader's success stays near 75% after denoising, and strong filtering erases the fingerprints themselves. We include a denoise-then-attribute baseline to report its clean cost and robust gain on our splits.
Why not just augment with random multiplicative masks and noise? This costs almost nothing, so if it works it should replace the learned attacker. RAID shows detectors trained with standard augmentations fall to F1 of 0.0 under white-box attack (RAID), and F-SAT needed adversarial training on top of RandAugment. The random-mask ablation settles the question directly for attribution.
Proposed Experiments
Data. We use three settings. MS COCOAI provides five-way attribution over SD3, SD2.1, SDXL, DALL-E 3, and MidJourney v6 with captions shared across classes, so content cannot leak the label. The TraceEvader generator set (ProGAN, SNGAN, CycleGAN, StyleGAN2, PNDM, LDM) is the second setting. A diffusion-plus-GAN mix mirroring the multiplicative-attack paper's twelve-generator set is the third. We reproduce both attacks on our trained models rather than reusing transferred images. RAID images, whose base generators include SD1.4, SD2.1, SDXL, and DeepFloyd IF, serve as a transfer test, provided generator labels can be recovered from its base set.
Metrics. We report clean attribution accuracy, attack success rate under TraceEvader, under the multiplicative attack, and under PGD, total GPU-hours, and the training-time multiple relative to clean head training.
Decisive checks.
The first check is the clean trade-off. Clean accuracy must stay within one point of the undefended head, and the no-anchor ablation should show a visibly larger drop if the anchor is doing the work.
The second is multiplicative robustness. Success of the multiplicative attack must fall well below the 72.39% that additive adversarial training leaves. The additive-only ablation should not achieve this. If no variant gets below that level, we report it as evidence that this attack removes source identity, not just image content.
The third is the adaptive attack. Because token defenses rely on the tokens being secret, we run white-box attacks with full knowledge of the tokens, including retraining the multiplicative attacker against the defended model. Robustness is reported only under this setting.
The fourth is cost. Wall-clock training time is compared with PGD-trained DNA-Det and with PGD-refreshed LoRA at matched robust accuracy, against the 2× (ARIA) and 4× (F-SAT) overheads reported elsewhere.
A clear win on all four checks would show that robust attribution does not require giving up the fingerprint. A failure on the adaptive or multiplicative check would show where frozen-backbone defenses for forensics stop working.
References
- TraceEvader: Making DeepFakes More Untraceable via Evading the Forgery Model Attribution
- Untraceable DeepFakes via Traceable Fingerprint Elimination
- Do GANs Leave Artificial Fingerprints?
- Attributing Fake Images to GANs: Learning and Analyzing GAN Fingerprints
- Deepfake Network Architecture Attribution
- A Comprehensive Dataset for Human vs. AI Generated Image Detection
- Robustness Tokens: Towards Adversarial Robustness of Transformers
- Anchor-Regularized Adaptation for Generalizable AI-Generated Image Detection with DINOv3
- ARIA: Adversarially Robust Image Attribution for Content Provenance
- I Can Hear You: Selective Robust Training for Deepfake Audio Detection
- RAID: A Dataset for Testing the Adversarial Robustness of AI-Generated Image Detectors