TL;DR
By representing images with multi-scale wavelet packets, this paper introduces a deepfake detection approach that captures forensic clues localized simultaneously in space and frequency. Using a lightweight CNN (just ~109k parameters) and boundary-adjusted wavelets, the method matches or outperforms prior spatial- and Fourier-based detectors while maintaining high data efficiency and interpretability.
What Problem Does This Paper Address?
Generative Adversarial Networks (GANs) can now synthesize hyper-realistic imagery that is virtually indistinguishable to the human eye. To detect these synthetic images, existing forensic classifiers typically fall into one of two camps:
- Spatial-domain methods: Standard Convolutional Neural Networks (CNNs) trained directly on raw pixels, which often overlook systematic frequency artifacts and can require massive parameter budgets.
- Frequency-domain methods: Techniques based on the Discrete Cosine Transform (DCT) or Fast Fourier Transform (FFT), which excel at identifying spectral anomalies caused by generator upsampling but entirely discard spatial information.
This paper tackles the lack of joint spatio-frequency analysis by asking: Can we retain spatial locality while simultaneously examining multi-scale frequency bands to expose GAN fingerprints?
Methods
The authors propose analyzing and detecting GAN artifacts using a wavelet-packet representation:
- Wavelet Packet Decomposition: Unlike standard discrete wavelet transforms (which only recursively decompose the low-frequency approximation coefficients), wavelet packets recursively filter both low- and high-frequency subbands. At level $Q=3$, this breaks an image into 64 equal-width frequency tiles while preserving coarse spatial structure ($4^Q \times \frac{h}{2^Q} \times \frac{w}{2^Q}$).
- Gram-Schmidt Boundary Wavelets: Standard wavelets require boundary padding, which alters dimension sizes or injects artificial border discontinuities. The authors implement boundary-adjusted filters that preserve orthogonality and invertibility, allowing the same neural network architecture to ingest different wavelet families (e.g., Haar, Daubechies db2–db5, Symlets sym4–sym5) without padding artifacts.
- Log-Magnitude Scaling: The absolute values of the packet coefficients are log-scaled ($\log_e$) and normalized across color channels.
- Lean Classification Architectures:
- A simple linear regression model for proof-of-concept multi-source separation.
- An extremely compact CNN (~109,000 parameters—drastically smaller than the ~9M parameters in prior pixel-based detectors) trained on top of the packet tensors.
Datasets
The authors evaluated their pipeline on standardized deepfake detection benchmarks:
- FFHQ vs. StyleGAN / StyleGAN2: 63k training images per class (faces) resized to $128 \times 128$.
- CelebA: 150k real human face images alongside 150k synthetic images each from four distinct GAN architectures: CramerGAN, MMDGAN, ProGAN, and SN-DCGAN (750k total images).
- LSUN Bedroom: 150k authentic scene images paired with 150k images from each of the same four GAN architectures (750k total images).
(No new raw datasets were collected; the authors reproduced the multi-generator benchmark protocol established by Yu et al., 2019 and Frank et al., 2020).
Key Insights and Ideas
- Where the artifacts hide: Analyzing mean packet values revealed that GAN-generated images exhibit abnormally high energy in higher-frequency subbands, particularly concentrated around image edges.
- The "monotony" of GAN backgrounds: Authentic images (FFHQ) display significantly greater standard deviation across wavelet coefficients than StyleGAN images. StyleGAN backgrounds exhibit unnatural statistical monotony across all frequency bands, indicating that GANs fail to replicate the full stochastic variance of natural scenes.
- Linear separability in packet space: Simply applying linear regression to log-scaled Haar wavelet packets yielded a 98.5% accuracy when separating authentic FFHQ faces from StyleGAN and StyleGAN2, demonstrating that the representation itself does the heavy lifting.
Key Results
- CelebA Multi-GAN Source Attribution:
- The compact wavelet-CNN with Daubechies-4 (
db4) achieved 99.43% accuracy (99.27% $\pm$ 0.15%), outperforming prior pixel-based CNNs (97.80%) and DCT-based CNNs (99.07%). Symlet-5 reached a peak accuracy of 99.49%. - A baseline Eigenfaces classifier jumped from 68.56% accuracy on raw pixels to 92.67% when fed log-scaled Haar packets.
- LSUN Bedroom Attribution:
- The wavelet model achieved 99.19% max accuracy (
db3), outperforming pixel baselines (97.06%) and remaining highly competitive with DCT (99.64%). - Data Efficiency: When reducing the training set by 80% (training on only 20% of the data), the
db4-CNN only dropped by 0.41% in top accuracy (reaching 99.01%), whereas the pixel-space CNN dropped by 2.50%. - Generalization to Unseen GANs: When tested on an architecture omitted from training (SN-DCGAN on LSUN bedrooms), a Haar-packet binary classifier still correctly identified the unknown generator with 78.8% $\pm$ 1.8% accuracy (peak 81.7%).
Limitations and Future Work
- Fragility Under Perturbations: While the wavelet representations are robust to center-cropping (95.49% vs. 90.04% for pixel CNN), they are more sensitive to rotations (90.84% vs. 91.99%) and especially JPEG compression (84.25% vs. 89.25%). Because JPEG compression selectively discards high-frequency spectral information, it suppresses the exact cues the wavelet classifier leverages.
- Unseen GAN Generalization Gap: Detection performance drops from ~98% on seen models to ~79% on unseen architectures, showing that while general forensic cues exist, generator-specific artifacts still influence the classifier.
- Future Directions: The authors suggest evaluating directional multi-scale transforms like curvelets and shearlets, as well as integrating wavelet features into multi-classifier forensic ensembles and domain-adaptation pipelines.
Summary updated