Skip to main content
QUICK REVIEW

[Paper Review] X-Transfer: A Transfer Learning-Based Framework for GAN-Generated Fake Image Detection

Lei Zhang, Hao Chen|arXiv (Cornell University)|Oct 7, 2023
Digital Media Forensic DetectionComputer Science5 citations
TL;DR

This paper proposes X-Transfer, a novel transfer learning framework using two sibling neural networks with interleaved parallel gradient transmission to mitigate knowledge forgetting and improve detection of GAN-generated fake images. By combining AUC loss with cross-entropy loss, the method achieves a 99.04% detection AUC, representing a ~10% improvement over baseline transfer methods, and demonstrates strong generalization across face and non-face datasets.

ABSTRACT

Generative adversarial networks (GANs) have remarkably advanced in diverse domains, especially image generation and editing. However, the misuse of GANs for generating deceptive images, such as face replacement, raises significant security concerns, which have gained widespread attention. Therefore, it is urgent to develop effective detection methods to distinguish between real and fake images. Current research centers around the application of transfer learning. Nevertheless, it encounters challenges such as knowledge forgetting from the original dataset and inadequate performance when dealing with imbalanced data during training. To alleviate this issue, this paper introduces a novel GAN-generated image detection algorithm called X-Transfer, which enhances transfer learning by utilizing two neural networks that employ interleaved parallel gradient transmission. In addition, we combine AUC loss and cross-entropy loss to improve the model's performance. We carry out comprehensive experiments on multiple facial image datasets. The results show that our model outperforms the general transferring approach, and the best metric achieves 99.04%, which is increased by approximately 10%. Furthermore, we demonstrate excellent performance on non-face datasets, validating its generality and broader application prospects.

Motivation & Objective

  • To address the challenge of knowledge forgetting in transfer learning when detecting GAN-generated fake images.
  • To improve detection performance on imbalanced datasets commonly found in real-world GAN detection scenarios.
  • To enhance model generalization across diverse datasets, including non-face images such as LSUN-Cat, LSUN-Church, and LSUN-Car.
  • To develop a robust detection framework that maintains high performance on both source and target datasets during transfer.
  • To validate the effectiveness of AUC loss in improving model generalization and detection accuracy, especially under data imbalance.

Proposed method

  • X-Transfer employs a dual-network sibling architecture: a master network for target dataset adaptation and an auxiliary network that preserves knowledge from the source dataset.
  • Gradients are transmitted in an interleaved, parallel manner between corresponding layers of the two networks to balance learning and reduce catastrophic forgetting.
  • The framework integrates a hybrid loss function combining binary cross-entropy and WMW-AUC loss to enhance model generalization and detection performance.
  • Hyper-parameter tuning of the AUC loss weighting (β) is performed to balance BCE and AUC components, with β = 0.6 found optimal for StyleGAN2-to-StarGAN transfer.
  • Data augmentation techniques such as Gaussian blur, JPEG compression, and CutMix are applied to improve robustness and reduce overfitting during transfer.
  • The method is evaluated across multiple datasets, including CelebA, FFHQ, LSUN, and GauGAN, to assess generalization and performance under data imbalance.

Experimental results

Research questions

  • RQ1Can a dual-network transfer learning framework reduce knowledge forgetting during GAN-generated image detection transfer?
  • RQ2How does the integration of AUC loss improve detection performance on imbalanced datasets compared to standard cross-entropy loss?
  • RQ3To what extent does the X-Transfer framework generalize to non-face image datasets such as LSUN-Cat, LSUN-Church, and LSUN-Car?
  • RQ4What is the optimal hyper-parameter setting for the AUC loss component in the X-Transfer framework?
  • RQ5Does data augmentation improve detection robustness during transfer learning without degrading performance on the target dataset?

Key findings

  • X-Transfer achieves a 99.04% AUC on the target dataset, representing a ~10% improvement over standard transfer learning methods.
  • The method maintains high performance on the source dataset (98.0% AUC) and the target dataset (98.7% AUC), demonstrating balanced performance across domains.
  • On non-face datasets, X-Transfer achieves AUC scores of 97.9% (LSUN-Cat), 98.1% (LSUN-Church), and 97.6% (LSUN-Car), confirming strong generalization beyond facial images.
  • The use of AUC loss increases the target dataset AUC by 4% on an imbalanced GauGAN dataset (from 87.2% to 91.2%), showing improved robustness to class imbalance.
  • Data augmentation improves the source dataset AUC from 93.2% to 98.8%, though it slightly reduces target AUC from 98.9% to 97.4%, indicating a trade-off that favors overall robustness.
  • The optimal hyper-parameter β for AUC loss is found to be 0.6 when transferring from StyleGAN2 to StarGAN, yielding the highest detection performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.