Watch your Up-Convolution: CNN Based Generative Deep Neural Networks are Failing to Reproduce Spectral Distributions

Ricard Durall, Margret Keuper, Janis Keuper · DOI

Abstract

While modern Generative Adversarial Networks (GANs) produce high-quality images that are often indistinguishable from reality to the human eye, they fail to reproduce the spectral distributions of real-world data. This paper demonstrates that common up-sampling techniques—such as transposed convolutions and interpolation—introduce systematic artifacts in the frequency domain. We propose a spectral regularization loss and architectural modifications to mitigate these distortions. Our findings show that these spectral "fingerprints" allow for near-perfect deepfake detection and that addressing them leads to more stable GAN training.

Introduction

The quest for photorealism in generative modeling has largely focused on spatial domain metrics. However, beneath the surface of these generated pixels lies a consistent failure to match the frequency characteristics of natural images. In "Watch your Up-Convolution," we reveal that almost all current generative models leave behind a distinct spectral signature. This discrepancy is not merely a curiosity; it provides a robust mechanism for distinguishing synthetic content from reality and suggests a path toward more theoretically sound generative architectures.

Methodology

The core of our analysis involves moving from the spatial pixel domain to the frequency domain using the Discrete Fourier Transform (DFT).

Spectral Representation and Azimuthal Integration

To analyze the 2D power spectrum efficiently, we employ Azimuthal Integration. This technique reduces the 2D spectrum into a 1D representation by averaging values along concentric circles of increasing radii. This process collapses the complex 2D frequency map into a manageable 1D line that describes the distribution of power from low to high spatial frequencies.

Azimuthal integration converts the 2D power spectrum into a 1D representation by averaging across concentric circles.

Spectral Regularization ($L_{Spectral}$)

We introduce a novel regularization term, $L_{Spectral}$, to the generator's objective function. This loss calculates the binary cross-entropy between the 1D power spectrum of the generated image and the mean spectrum of the real training data. By penalizing deviations in the frequency domain, we force the generator to learn the underlying spectral statistics of the target dataset.

Architectural Adjustments

Our analysis indicates that standard $3 \times 3$ convolutional filters lack the receptive field necessary to correct high-frequency artifacts introduced during up-sampling. We recommend utilizing larger filters (e.g., $5 \times 5$) in the final layers of the generator to provide the model with sufficient capacity to adjust the output's spectral distribution.

Key Results

The spectral gap between real and synthetic images is remarkably consistent across various architectures, including DCGAN, WGAN-GP, and LSGAN.

Deepfake Detection

Because the spectral distortions are so predictable, complex neural networks are not required for detection. A simple Support Vector Machine (SVM) trained on 1D spectral features achieves 100% accuracy on datasets like Faces-HQ and CelebA.

Spectral Alignment and Training Stability

By incorporating the proposed spectral loss, we successfully align the power spectra of various GANs with real-world data. This alignment significantly improves training stability, reduces the likelihood of mode collapse, and results in lower (better) Fréchet Inception Distance (FID) scores.

Comparison of power spectra for standard GANs (top) and GANs trained with our proposed spectral loss (bottom).

Conclusion

The failure of CNN-based generators to reproduce spectral distributions is a fundamental byproduct of standard up-sampling mathematics. By acknowledging and addressing these frequency-domain artifacts through spectral regularization and larger filter sizes, we can produce more realistic synthetic data and develop highly effective tools for deepfake detection. Future research will explore 2D spectral features and the theoretical link between spectral consistency and GAN convergence.

Summary updated

BibTeX
@inproceedings{durall2020watch,
  author = {Ricard Durall and Margret Keuper and Janis Keuper},
  title = {{Watch your Up-Convolution: CNN Based Generative Deep Neural Networks are Failing to Reproduce Spectral Distributions}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00791},
}
Figure