Abstract
Although the recent advancement in generative models brings diverse advantages to society, it can also be abused with malicious purposes, such as fraud, defamation, and fake news. To prevent such cases, vigorous research is conducted to distinguish the generated images from the real images, but challenges still remain to distinguish the unseen generated images outside of the training settings. Such limitations occur due to data dependency arising from the model's overfitting issue to the training data generated by specific GANs. To overcome this issue, we adopt a self-supervised scheme to propose a novel framework. Our proposed method is composed of the artificial fingerprint generator reconstructing the high-quality artificial fingerprints of GAN images for detailed analysis, and the GAN detector distinguishing GAN images by learning the reconstructed artificial fingerprints. To improve the generalization of the artificial fingerprint generator, we build multiple autoencoders with different numbers of upconvolution layers. With numerous ablation studies, the robust generalization of our method is validated by outperforming the generalization of the previous state-of-the-art algorithms, even without utilizing the GAN images of the training dataset.
Introduction
As Generative Adversarial Networks (GANs) become more sophisticated, they are increasingly used to create high-quality forgeries. Traditional GAN detectors suffer from a major flaw: data dependency. Most detectors are trained using a supervised approach, shown a dataset of real images and fake images from a specific GAN (e.g., StyleGAN). Consequently, the detector overfits to the specific "fingerprints" of that one GAN. When faced with a new, unseen GAN model or a different category of objects, performance often plummets. This paper introduces a self-supervised GAN detector that learns to identify fake images without ever seeing a "real" GAN-generated image during training.
Proposed Framework
The authors propose a novel self-supervised framework consisting of two main modules: the Artificial Fingerprint Generator (AFG) and the GAN Detector.
Artificial Fingerprint Generator (AFG)
Instead of using GAN-generated images, the AFG trains three different autoencoders solely on real images to intentionally introduce upsampling artifacts that mimic GAN "fingerprints":
- $G_{high}$: Uses heavy downsampling (1/64) followed by upsampling to create prominent artifacts.
- $G_{low}$: Uses mild downsampling (1/2) to create subtle artifacts.
- $G_{non}$: Uses no upsampling, focusing on artifacts created by standard convolution layers.
Because these autoencoders use upconvolution layers similar to those in GAN generators, the reconstructed images contain "artificial fingerprints" structurally similar to real GAN forgeries. As shown in the frequency domain analysis, these artifacts manifest as predictable periodic patterns.
GAN Detector
The GAN detector is a ResNet-50 classifier trained to distinguish between original real images and the reconstructed images from the AFG. To further boost robustness, a Mixup strategy blends real and reconstructed images during training, forcing the detector to learn a more nuanced boundary between clean data and generative artifacts.
Experimental Setup
- Training: Primarily the "horse" category from the LSUN dataset.
- Evaluation: The model was tested against a wide array of GAN architectures, including ProGAN, StyleGAN, StyleGAN2, BigGAN, CycleGAN, StarGAN, GauGAN, and Deepfake (FaceSwap) across 20 different object categories.
- Source Data: Images were drawn from CelebA-HQ, CelebA, COCO, LSUN, and ImageNet.
Key Results and Insights
- Superior Generalization: In cross-category tests (training on horses, testing on 20 other categories), the proposed method achieved 92.0% accuracy and 97.7% Average Precision (AP), significantly outperforming supervised state-of-the-art models.
- Zero-Shot Performance: Even without seeing images from models like BigGAN or GauGAN during training, the detector achieved near-perfect scores (e.g., 99.8% accuracy on StarGAN).
- Learning the Process, Not the Content: The results suggest that while supervised models learn the content of fake images, this self-supervised approach learns the process of generation (e.g., upsampling artifacts), which is consistent across different models.
Conclusion
By simulating generative flaws using simple autoencoders on real data, the authors create a robust "vaccine" against diverse GAN architectures. Future work will focus on refining these fingerprints to cover even more diverse generative architectures and testing against a wider range of real-world image degradations like motion blur or low-light noise.
Summary updated