Abstract
The rapid evolution of Generative Adversarial Networks (GANs) poses a significant challenge for forensic detectors, which often fail to generalize to new architectures. This paper presents a multi-task incremental learning framework that enables a single model to detect and classify images from emerging GAN architectures while retaining performance on previously learned ones. By integrating exemplar management and distillation loss, the proposed methods mitigate catastrophic forgetting, achieving over 90% detection accuracy across multiple generations of GAN technology.
Introduction
The "arms race" between GAN development and deepfake detection is currently lopsided. While new generative models like StyleGAN and StarGAN produce increasingly realistic imagery, detectors are typically trained on static datasets. When a new GAN architecture is introduced, existing detectors often fail to recognize its unique "fingerprints."
Retraining models from scratch is computationally prohibitive and requires maintaining massive datasets. Conversely, simple fine-tuning leads to catastrophic forgetting, where the model's ability to identify older GAN fakes degrades as it adapts to new ones. This research seeks a middle ground: an incremental system that maintains high performance across all known GAN architectures while efficiently adapting to new ones.
Methodology
The authors adapt the iCaRL (Incremental Classifier and Representation Learning) framework for the forensic task of GAN detection. iCaRL employs two primary strategies to prevent forgetting:
- Exemplar Management: Maintaining a small "memory budget" of representative images from previous classes.
- Distillation Loss: Ensuring the updated network's outputs for old classes remain similar to the previous model version.
Two novel multi-task variants are proposed:
- Multi-Task Multi-Classifier (MT-MC): Operates a dedicated binary detector (Real vs. Fake) in parallel with an incremental classifier that identifies the specific GAN source.
- Multi-Task Single Classifier (MT-SC): Utilizes a unified classifier with an additional binary cross-entropy loss term to emphasize the fundamental distinction between real and synthetic images.
Experimental Setup
The study evaluates the models using five prominent GAN architectures to simulate a realistic technological timeline: CycleGAN, ProGAN (at multiple resolutions), Glow, StarGAN, and StyleGAN. To ensure the model learns GAN-specific artifacts rather than facial features, real images were sourced from high-quality datasets like CelebA-HQ.
Key Results and Insights
The proposed incremental methods significantly outperformed standard CNN baselines:
- Sustained Accuracy: While standard models like XceptionNet saw accuracy drop to ~65% after five sequential tasks, MT-SC and MT-MC maintained over 90% detection accuracy.
- Memory Efficiency: The system remained stable even with a minimal memory budget of only 256 to 512 exemplar images.
- Classification Performance: The MT-SC model correctly identified the specific source GAN with over 90% accuracy for most architectures.
- Generalization: When StyleGAN was introduced as a final task, the model successfully integrated it (achieving ~94% accuracy) without compromising performance on the previous four architectures.
A key insight is that treating GAN detection as a classification problem—learning specific "fingerprints"—results in a more robust internal representation of "fakeness" than simple binary classification.
Conclusion
This work demonstrates that incremental learning is a viable solution for the evolving landscape of synthetic media. While the current supervised approach requires labeled data for updates, it provides a robust framework for forensic analysts to keep pace with generative technology. Future research will focus on "blind" detection of unknown GANs and further optimizing memory management for larger-scale deployments.
Summary updated