A Closer Look at Fourier Spectrum Discrepancies for CNN-generated Images Detection

Keshigeyan Chandrasegaran, Ngoc-Trung Tran, Ngai-Man Cheung · DOI

Introduction

Recent advancements in generative modeling, particularly Generative Adversarial Networks (GANs), have made it increasingly difficult to distinguish synthetic images from real ones in the spatial domain. Consequently, researchers have turned to the frequency domain, identifying what appeared to be a fundamental "fingerprint" of CNN-generated content: a failure to replicate the natural power law decay of high-frequency components. Previous studies suggested that this spectral discrepancy was an intrinsic property of the convolutional architecture, allowing for near-perfect detection of deepfakes. This paper challenges that notion, investigating whether these artifacts are truly inherent or merely a byproduct of common architectural design choices.

The Role of Upsampling

The core hypothesis of this work is that spectral artifacts are primarily caused by the upsampling operations used in the final layers of a generator, rather than the convolutional layers themselves. Standard transpose convolutions often utilize "zero-insert scaling," which mathematically replicates low-frequency content into high-frequency bands, creating distinct spikes or deviations from natural spectral decay.

To investigate this, the authors experimented with alternative upsampling methods:

  • Zero-insert scaling: The baseline method in most transpose convolutions.
  • Nearest-neighbor interpolation: Scaling by pixel repetition.
  • Bilinear interpolation: Scaling via weighted averaging of neighbors.
Comparison of power spectra for different upsampling methods. Zero-insertion creates significant high-frequency artifacts compared to interpolation methods.

By replacing the final transpose convolution with an interpolation step followed by a standard convolution, the researchers aimed to produce "spectrally consistent" images.

Experimental Setup

The study utilized a variety of GAN architectures, including DCGAN, LSGAN, WGAN-GP, and StarGAN, across multiple datasets such as CelebA (faces), LSUN Bedrooms, and CelebA-HQ. The intervention was specifically targeted at the very last layer of the generator, following the logic of the Sampling Theorem: the final upsampling step has the most significant impact on the highest frequencies of the output image.

Results and Impact on Forensics

The results demonstrate that the "intrinsic" spectral flaw is easily corrected. By simply changing the final upsampling method, GANs can produce images whose Fourier power spectra are virtually indistinguishable from those of real images.

Power spectrum of real images versus modified GANs (Nearest and Bilinear upsampling). The modified models closely follow the real spectral decay.

Key findings include:

  • Detector Evasion: State-of-the-art frequency-based detectors, which previously achieved up to 99% accuracy, saw their performance drop to near-chance levels when faced with these spectrally consistent images.
  • Quality Preservation: The modification did not degrade image quality. FID scores remained comparable to or better than baseline models, indicating no trade-off between visual fidelity and spectral "stealth."
  • Generality: The findings were consistent across different loss functions, datasets, and generative tasks.

Conclusion

This research provides a critical "wake-up call" for the AI forensics community. It proves that the high-frequency spectral artifacts previously thought to be inherent to CNNs are actually avoidable design artifacts. Forensic tools relying on Fourier spectrum attributes are fragile and easily bypassed by simple architectural tweaks. Future research in deepfake detection must move beyond low-level frequency analysis toward more robust, semantic features that are harder for generative models to mimic perfectly.

Summary updated

BibTeX
@inproceedings{chandrasegaran2021closer,
  author = {Keshigeyan Chandrasegaran and Ngoc-Trung Tran and Ngai-Man Cheung},
  title = {{A Closer Look at Fourier Spectrum Discrepancies for CNN-generated Images Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00712},
}
Figure