NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Robustness and Generalizability of Face Synthesis Detection Methods

Johan Sabel, Fredrik JohanssonWorkshops @ CVPR 2021

Abstract

As Generative Adversarial Networks (GANs) achieve unprecedented realism in face synthesis, the need for reliable detection methods becomes critical. This paper evaluates the performance of three state-of-the-art detectors—Fingerprint-based, Xception, and ForensicTransfer—focusing on their robustness to image perturbations and their ability to generalize to unseen generative models. Our findings reveal a significant "generalization gap" where models fail on novel architectures. However, we demonstrate that data augmentation significantly enhances robustness and that few-shot fine-tuning with as few as three images can restore detection accuracy to near-perfect levels.

Introduction

The advent of architectures like StyleGAN2 has enabled the creation of hyper-realistic synthetic faces, which can be exploited for fraud or disinformation. While many detection methods report high accuracy in laboratory settings, they often struggle in "in-the-wild" scenarios characterized by image compression, resizing, and the constant emergence of new GAN models.

A collection of real and synthetic faces illustrating the high degree of realism achieved by modern GANs.

Methodology

We conduct a comprehensive stress test on three prominent detection frameworks:

  • Fingerprint-based Network: Detects the unique high-frequency noise patterns (fingerprints) left by specific GAN architectures.
  • Xception Network: A deep convolutional neural network (CNN) optimized for image classification tasks.
  • ForensicTransfer: Utilizes an autoencoder-based approach to learn a latent space that disentangles real features from fake ones, facilitating cross-domain adaptation.

The models were trained and tested on over 60,000 images from datasets including CelebA-HQ, FFHQ, ProGAN, StyleGAN, and StyleGAN2.

Robustness to Image Perturbations

Real-world images are frequently degraded by noise, blur, or compression. Our experiments show that models trained on clean data suffer significant performance drops when faced with these perturbations. However, the Fingerprint-based method showed inherent resilience to noise and blur even without specific training for these conditions.

Detection performance (Accuracy and AUROC) across various image perturbations. The starred entries (*) denote models trained with data augmentation, showing significantly improved robustness.

As shown in Figure 4, incorporating data augmentation during training allows all three models to maintain near-perfect performance across various post-processing steps, such as JPEG compression and resizing.

Generalization and Few-Shot Adaptation

A critical challenge is the "generalization gap": detectors trained on one GAN often fail to identify images from another. Out-of-the-box accuracy on unseen models was found to be as low as 44.7% for Xception and 56.7% for the Fingerprint method.

To address this, we explored few-shot fine-tuning. We discovered that fine-tuning a pre-trained model on just three images from an unknown source can boost accuracy to over 96%. Specifically, the ForensicTransfer model achieved an average accuracy of 96.8% with this minimal data. A notable side effect is "catastrophic forgetting," where the model loses its ability to detect previously learned GANs. This can be mitigated by including original training samples during the fine-tuning process.

Conclusion

While universal detection of synthetic faces remains a difficult goal, our results show that robustness can be achieved through data augmentation and that rapid adaptation to new threats is possible via few-shot learning. Future research should prioritize the development of more generalizable features and incremental learning strategies to keep pace with the evolving landscape of generative AI.

Summary updated

BibTeX
@inproceedings{sabel2021robustness,
  author = {Johan Sabel and Fredrik Johansson},
  title = {{On the Robustness and Generalizability of Face Synthesis Detection Methods}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00107},
}
Figure