Enabling Supervised Learning of Generative Signatures for Generalized AI-Generated Images Detection

Jianwei Fei, Yunshu Dai, Xiaoyu Zhou, Zhihua Xia, Alessandro PivaCVPR 2026

TL;DR

Detecting AI-generated images (AIGIs) across unseen generator architectures is notoriously difficult because we lack "trace-free" ground truths to train supervised artifact extractors. This paper introduces a surrogate supervision framework that uses a randomized, dynamic image reconstructor to simulate diverse generative traces on real images. By training an extractor on these simulated residuals, the authors achieve state-of-the-art, highly generalized deepfake detection across multiple diverse benchmarks.

What Problem Does This Paper Address?

When generative models (like GANs or Diffusion Models) create images, they leave behind subtle, instance-specific statistical artifacts or "fingerprints." While these traces are excellent forensic cues, accurately isolating them is incredibly challenging. Why? Because for any given AI-generated image, we do not possess a "trace-free" ground-truth counterpart to show an AI model exactly what to extract.

Existing methods try to bypass this by using hand-crafted high-frequency filters or generic, off-the-shelf denoisers. However, because these denoisers are optimized for generic noise reduction rather than isolating model-specific artifacts, they fail to reliably capture generative signatures. Consequently, current detectors easily overfit to specific dataset contents (semantic bias) or fail entirely when tested against new, unseen generator families.

Methods

The authors overcome the lack of ground-truth supervision by creating a three-stage framework based on a surrogate training strategy:

Figure 1. Overview of our three-stage framework for generative signature extraction and AIGI detection.
  1. Stage I: Simulating Traces via DAIR: The authors design a Dynamic-Architecture Image Reconstructor (DAIR). DAIR takes a real image and attempts to reconstruct it. Crucially, during every forward pass, DAIR randomly varies its internal architecture (sampling different upsampling methods, normalization layers, and activations) and utilizes a novel Context-Conditioned Dynamic Convolution (CCDC) to stochastically alter its parameters. This intentional randomness forces the network to introduce diverse, simulated generative artifacts into the reconstructed image ($\hat{I}$). The mathematical difference between the original real image and the reconstruction ($I - \hat{I}$) serves as a perfect, clean surrogate ground-truth trace.
  2. Stage II: Training the Signature Extractor ($\mathcal{E}_{sig}$): With a reliable source of surrogate ground truths, a fully convolutional network is trained via supervised learning (MSE loss) to predict the reconstruction residual. This teaches $\mathcal{E}_{sig}$ how to cleanly isolate generative signatures (GenSign) from underlying image content.
  3. Stage III: Dual-Stream Detection with Self-Augmentation: The final AIGI detector uses two streams: one processes the standard RGB image (via a fine-tuned CLIP ViT), and the other processes the extracted GenSign (via EfficientNet-B0). To prevent the detector from relying on semantic shortcuts, the frozen DAIR module is re-purposed to inject pseudo-fake traces into a portion of the training images, forcing the classifier to focus strictly on the subtle architectural signatures.

Datasets

The models were trained using standard subsets from ProGAN or Stable Diffusion v1.4 (SDv1.4). To evaluate cross-model generalization, the authors tested their framework on four widely recognized benchmarks:

  • UniversalFakeDetect: Evaluates performance across various GANs and low-level perceptual loss variations.
  • AIGCDetectBenchmark: Features 17 distinct generative models, spanning GANs, Diffusion Models, and commercial text-to-image systems.
  • AIGIBenchmark: A diverse dataset containing recent generative models and localized face-swapping forgeries.
  • GenImage: A million-scale benchmark for evaluating broad AIGI detection capabilities.

Key Insights and Ideas

  • Simulation Covers Reality: By scaling the number of stochastically simulated models in DAIR up to 100,000, the distribution of simulated traces expands to naturally overlap with real-world, unseen generators like Midjourney, FLUX, and StyleGAN3 (visualized via PCA in the paper).
  • Supervised Beats Unsupervised: Training an extractor with explicit surrogate supervision yields significantly more discriminative and generalizable forensic features than relying on task-agnostic denoisers or unsupervised structural anomaly detection.
  • GenSign Visualizes Clear Differences: When visualized, the GenSign of real images resembles completely random, unstructured noise. In contrast, the GenSign of AIGIs displays large, coherent patches and distinct spatial patterns unique to the generator's upsampling mechanics.

Key Results

The proposed framework achieved state-of-the-art performance across all evaluated benchmarks, demonstrating exceptional consistency:

  • UniversalFakeDetect: Achieved a mean Average Precision (mAP) of 99.37%, outperforming competitive baselines like FatFormer.
  • AIGCDetectBenchmark: Reached a highest overall mean AP of 98.04%, maintaining near-perfect detection (>99% AP) on 12 out of 17 distinct generators.
  • AIGIBenchmark: Achieved a mean AP of 89.96%, outperforming the next-best competitor (AIDE) by a massive margin of 14.6%. Notably, it maintained strong performance on localized face-swapping forgeries (e.g., 88.57% on FaceSwap), where other detectors completely collapsed to random-chance levels.

Limitations and Future Work

While the foundational components ($\mathcal{R}$ and $\mathcal{E}_{sig}$) are highly effective, they are computationally heavy to train initially, requiring roughly 49 hours and 41 hours respectively on an NVIDIA A100 GPU (though they can be frozen and universally reused afterward). Additionally, while the model shows a massive leap forward in detecting localized forgeries (like face-swapping), its performance on these tasks (e.g., 66.37% on BlendFace) is still lower than its near-perfect performance on full-image generations, indicating that localizing and detecting tightly bounded image manipulations remains an open area for future improvement.

Summary updated

BibTeX
@inproceedings{fei2026enabling,
  author = {Jianwei Fei and Yunshu Dai and Xiaoyu Zhou and Zhihua Xia and Alessandro Piva},
  title = {{Enabling Supervised Learning of Generative Signatures for Generalized AI-Generated Images Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=PfhSkO15J0},
}
Figure