Unmasking DeepFakes with simple Features

Ricard Durall, Margret Keuper, Franz-Josef Pfreundt, Janis Keuper

Abstract

As generative models like GANs produce increasingly realistic synthetic faces, traditional deep learning-based detectors struggle with high data requirements and susceptibility to adversarial fine-tuning. This paper presents a simple yet highly effective detection method based on frequency domain analysis. By extracting 1D power spectrum statistics from the Discrete Fourier Transform (DFT) of images, the authors achieve up to 100% detection accuracy on high-resolution datasets with as few as 20 training samples.

Introduction

The rapid advancement of Generative Adversarial Networks (GANs) has made synthetic images virtually indistinguishable from real ones to the human eye. Most existing detection methods rely on complex deep learning architectures that face two significant hurdles:

  1. Data Hunger: They require thousands of labeled examples to generalize effectively.
  2. The "Cat-and-Mouse" Game: Since these detectors operate in the same pixel space as the GANs, they are vulnerable to being bypassed by models specifically fine-tuned to fool them.

This research explores whether a fundamental, structural difference exists in how AI "paints" an image compared to a physical camera, detectable through classical signal processing.

Methodology

The proposed pipeline shifts the focus from pixel-level analysis to frequency-domain characteristics.

The proposed detection pipeline: from input image to frequency-domain feature extraction and classification.

The process involves four main steps:

  1. Pre-processing: Images are converted to grayscale.
  2. Discrete Fourier Transform (DFT): The image is transformed into the frequency domain to create a 2D power spectrum.
  3. Azimuthal Averaging: The 2D spectrum is collapsed into a 1D "power spectrum statistics" line, capturing energy distribution across scales—from coarse shapes to fine details.
  4. Classification: These 1D features are fed into "shallow" machine learning classifiers such as Support Vector Machines (SVM) or Logistic Regression. The authors also demonstrated success using unsupervised K-Means clustering.

Experimental Setup

The method was evaluated across three primary datasets representing different resolutions:

  • Faces-HQ: A benchmark introduced in this study, combining 40,000 high-resolution images from CelebA-HQ and Flickr-Faces-HQ (Real) with synthetic images from the "100K Faces project" and "thispersondoesnotexist.com" (Fake).
  • CelebA: Used for medium-resolution testing, with fakes generated via a custom-trained DCGAN.
  • FaceForensics++: A standard dataset for low-resolution video sequences, testing robustness against compression and motion.

Key Insights and Results

The core discovery is the High-Frequency "Tell". Natural images typically exhibit a smooth decay in power as frequency increases. In contrast, AI-generated images often show distinct artifacts, such as "flat regions" or unusual spikes at high frequencies, likely stemming from the upsampling and convolution layers inherent in GAN architectures.

Comparison of power spectra across real and fake datasets, highlighting the distinct high-frequency signatures of GAN-generated images.

Key performance metrics include:

  • High-Resolution (Faces-HQ): Achieved 100% accuracy using SVM and Logistic Regression.
  • Extreme Data Efficiency: The model reached 100% accuracy with only 20 annotated samples, whereas typical CNNs require thousands.
  • Unsupervised Success: K-Means clustering achieved up to 96% accuracy on CelebA without any labels, proving that spectral differences are a fundamental structural property.
  • Low-Resolution Video: Performance remained high at 91% accuracy on FaceForensics++, though video compression slightly "smears" the high-frequency details.

Conclusion

This research demonstrates that simple frequency-domain features can outperform complex deep learning models in DeepFake detection. While highly effective, the method's primary limitation is sensitivity to heavy compression and low resolution, which can obscure spectral artifacts. Future work will focus on improving robustness to "in-the-wild" degradations and anticipating "spectral losses" that GAN developers might use to hide these digital fingerprints.

Summary updated

BibTeX
@misc{durall2019unmasking,
  author = {Ricard Durall and Margret Keuper and Franz-Josef Pfreundt and Janis Keuper},
  title = {{Unmasking DeepFakes with simple Features}},
  year = {2019},
  eprint = {1911.00686},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.00686},
}
Figure