Source-linked AI summary

Fourier Spectrum Discrepancies in Deep Network Generated Images

Tarik Dzanic, Karan Shah, Freddie Witherden

arXiv:1911.06465v3eess.IVcs.LGstat.ML

TL;DR

Hyperrealistic deep-network images motivate detection methods that can identify generated content despite visual similarity to real images. The paper analyzes high-frequency Fourier spectra, fits their decay characteristics, and evaluates spectrum-based classification across architectures and image transformations. It reports 99.2% accuracy on uncompressed high-resolution images with minimal training data, while compression and resolution reduction reduce accuracy and spectrum modification can deceive the classifier.

  • Problem

    Deep generative models can produce images visually indistinguishable from real images, creating concerns about malicious uses and motivating detection methods.

  • Method

    The paper models high-frequency Fourier spectra using reduced spectra and decay parameters, then applies binary classification across multiple generative architectures and image conditions.

  • Results

    99.2% accuracy was achieved on uncompressed, high-resolution images with minimal training data, while accuracy decreased for highly compressed or low-resolution images.

  • Takeaways & Limitations

    High-frequency spectral characteristics provide a practical basis for distinguishing real and generated images, but spectrum synthesis can effectively deceive the classifier without visible image changes.

  • Takeaways & Limitations

    Compression can make real and generated spectra converge, and systematic spectrum spoofing can nullify the classifier's detection capability.

Abstract

from arXiv · show

Advancements in deep generative models such as generative adversarial networks and variational autoencoders have resulted in the ability to generate realistic images that are visually indistinguishable from real images, which raises concerns about their potential malicious usage. In this paper, we present an analysis of the high-frequency Fourier modes of real and deep network generated images and show that deep network generated images share an observable, systematic shortcoming in replicating the attributes of these high-frequency modes. Using this, we propose a detection method based on the frequency spectrum of the images which is able to achieve an accuracy of up to 99.2% in classifying real and deep network generated images from various GAN and VAE architectures on a dataset of 5000 images with as few as 8 training examples. Furthermore, we show the impact of image transformations such as compression, cropping, and resolution reduction on the classification accuracy and suggest a method for modifying the high-frequency attributes of deep network generated images to mimic real images.

1 Introduction

The paper addresses concerns about hyperrealistic generated images by examining high-frequency image characteristics and proposing spectrum-based detection. It compares real images with outputs from several GAN, VAE, and hybrid architectures.

  • Hyperrealistic generated images can be visually indistinguishable from real images, raising concerns about misinformation, fabricated evidence, and biometric attacks.
  • Existing detection strategies analyze encoding fingerprints, acquisition traces, color statistics, textures, features, and architecture-dependent noise fingerprints.
  • The proposed method analyzes high-frequency characteristics to distinguish real images from deep network generated images.
  • The study evaluates StyleGAN, StyleGAN2, PGGAN, VQ-VAE2, and ALAE generated images against real images.
  • High-frequency magnitude and decay differences are more observable at higher resolutions, while compression and cropping can hinder detection.

2 Methodology

The methodology converts images into reduced, rotation- and scale-invariant Fourier spectra, fits their high-frequency decay, and classifies images using the resulting parameters. Experiments vary architectures, resolutions, compression levels, and training-set sizes.

  • Fourier spectrum analysis: The discrete Fourier transform maps each image channel into a frequency-domain representation with the same dimensions as the input.
  • Fourier spectrum analysis: Cartesian frequency coordinates are transformed into normalized polar coordinates to construct scale- and rotation-invariant thresholds for high frequencies.
  • Fourier spectrum analysis: Azimuthal averaging and radial binning reduce the Fourier spectrum to a one-dimensional representation of signal strength across radial wavenumber.
  • Fourier spectrum analysis: A power-law decay fit summarizes high-frequency content with b1 for magnitude and b2 for decay rate above threshold wavenumber kT.These parameters and the reduced spectra are used to distinguish real from generated images.
  • Image transformations: The experiments vary native and cropped resolutions and use JPEG compression qualities of 100%, 95%, and 85%.The 100% condition is treated as uncompressed, while 95% and 85% represent high- and medium-quality compression.
  • Classification: Classification uses simple binary classifiers, including a k-nearest neighbors model with k = 5 trained on grayscale decay parameters.The task predicts real versus fake rather than identifying the generating architecture.
  • Classification: The processing pipeline performs Fourier transformation, polar conversion, radial averaging, decay fitting above kT, and binary classification.

3 Experiments and results

Experiments compare reduced Fourier spectra and real-versus-generated image classification across resolutions, cropping, and JPEG compression. High-frequency spectral differences support strong classification at native resolution but become less separable after compression or resolution reduction.

  • 3.1 Reduced spectrum: Real images initially decay approximately as k^-4, whereas most generated-image spectra have decay exponents below 1.StyleGAN2 is an exception at the original threshold, but behaves similarly when the threshold wavenumber increases.
  • 3.1.1 Resolution and cropping: Cropping to 768^2 produced spectra and classification accuracies nearly identical to 1024^2, but reducing resolution to 256^2 lowered accuracy to 88.8%.At lower resolution, increasing the threshold wavenumber recovered similar spectral observations because generated-image spectral tails flattened at the highest wavenumbers.
  • 3.1.2 Compression: Compression substantially modified the high-frequency spectra of StyleGAN, StyleGAN2, and ALAE, while VQ-VAE2 and PGGAN spectra were less affected.At 85% quality, the first three became essentially indistinguishable from compressed real images, whereas VQ-VAE2 remained distinguishable even at 60%.
  • 3.2 Classification: 99.2% accuracy was achieved when classifying uncompressed 1024^2 images across all image types.Single-architecture classification ranged from 97.4% for PGGAN to 99.9% for StyleGAN.
  • 3.2 Classification: Uncompressed generated images formed distinct spectral clusters, but PGGAN’s low high-frequency content overlapped with some real images and caused misclassification.VQ-VAE2 and ALAE produced the lowest and highest amounts of high-frequency content, respectively.
  • 3.2 Classification: At 85% compression, overall classification accuracy fell to 83.9% as real and generated-image decay-rate distributions converged.The clusters became indistinguishable for many image types under stronger compression.

4 Spectrum synthesis

The spectrum synthesis method modifies high-frequency components of generated images to match a real-image target while preserving low-frequency content. In an example VQ-VAE2 image, this produced a close spectral match and avoided compression artifacts.

  • Compression can disguise some generated images, but the compression level required generally introduces noticeable visual artifacts.
  • High-frequency components of a generated image are scaled to match a real-image target, producing a spoofed spectrum and image.The scaling factor is the ratio of the target and source fitted decay functions.
  • A smooth hyperbolic tangent blending function leaves low-frequency components unaffected while avoiding visual artifacts.
  • The VQ-VAE2 example closely matched the target real-image spectrum in decay and magnitude and appeared visually indistinguishable from the original.The synthesized image was higher quality than its compressed counterpart because the method introduced no compression artifacts.
  • The method’s effects on the reduced spectrum are illustrated in Figure 7.

5 Conclusion

The paper identifies systematic high-frequency Fourier differences between real and generated images and uses them for detection. Detection reaches high accuracy on uncompressed high-resolution images but weakens under compression or reduced resolution, while spectrum synthesis can deceive the classifier without visible changes.

  • Real-image spectra show large high-frequency decay rates, whereas generated-image spectra show small rates whose magnitudes vary by model.The differences become more noticeable at higher resolutions, while lossy compression reduces them.
  • 99.2% accuracy was achieved on uncompressed, high-resolution images with minimal training data.Accuracy decreased for highly compressed and/or low-resolution images, although classification remained robust across unseen resolutions.
  • The proposed detector classified images from StyleGAN, StyleGAN2, PGGAN, VQ-VAE2, and ALAE using high-frequency characteristics.
  • Spectrum modification made generated images mimic real-image spectra and deceive the classifier without visually noticeable changes.

Broader Impact

The paper frames frequency-domain analysis as relevant to combating harmful uses of generated images and improving generative models. It also emphasizes that synthetic-data shortcomings may remain hidden until examined outside the visual domain.

  • The method is presented as relevant to combating unethical uses of deep network generated images.
  • Frequency-domain metrics and Fourier-space loss functions are proposed as possible tools for improving generative-model training.
  • Generative models can have systematic shortcomings that are not immediately evident until observed in domains such as frequency.Such flaws may have detrimental effects when synthetic data are used where data are scarce and quality is important.
Loading 1911.06465v3…