TL;DR
The ForensicsForest Family introduces a novel, non-differentiable approach to detecting GAN-generated faces using multi-scale hierarchical cascade forests instead of standard CNNs. This framework achieves state-of-the-art accuracy—particularly on challenging models like StyleGAN3—while being significantly more resource-efficient and inherently resistant to adversarial attacks.
What Problem Does This Paper Address?
Generative Adversarial Networks (GANs) have reached a point where their synthetic faces are virtually indistinguishable from real ones to the human eye. While Convolutional Neural Networks (CNNs) are the standard tool for detection, they suffer from two major drawbacks: high computational costs (requiring expensive GPUs) and vulnerability to adversarial attacks. Because CNNs are differentiable, attackers can easily craft imperceptible noise to flip a model's prediction. The authors explore whether a low-resource, non-differentiable forest-based model can overcome these hurdles.
Methods
The authors propose the ForensicsForest Family, a set of three forest-based variants:
- ForensicsForest: The core model. It avoids raw pixels, instead extracting fixed-dimension features: color histograms (appearance), power spectra (frequency), and facial landmarks (biology). These are fed into a Hierarchical Cascade Forest where each layer contains multiple random forests. Features from image patches are processed sequentially, allowing later layers to "augment" their input with knowledge from previous patches.
- Hybrid ForensicsForest: An extension that integrates Fully Connected (FC) layers between forest layers to refine features using learnable parameters, attempting to combine the strengths of decision trees and deep learning.
- Divide-and-Conquer ForensicsForest: A training strategy designed to reduce memory overhead. It trains multiple "candidate" models on small data subsets and then assembles the best components into a final, high-performing ensemble.
A key innovation is the Multi-scale Ensemble, which processes the image at different patch scales (e.g., 1x1, 2x2, 3x3) to capture both global structural inconsistencies and local texture artifacts.
Datasets
The method was validated against several state-of-the-art GANs and real-world datasets:
- Primary Benchmarks: StyleGAN, StyleGAN2, and the highly realistic StyleGAN3.
- Real Faces: FFHQ (Flickr-Faces-HQ) dataset.
- Generalization Tests: ProGAN, StarGAN, and Latent Diffusion Models (LDM).
- General Scenes: LSUN dataset (used to test if the method works on non-face images like airplanes or dogs).
Key Insights and Ideas
- Non-Differentiability as a Shield: Unlike CNNs, forest models are decision-based and non-differentiable. This makes them naturally resistant to gradient-based adversarial attacks that typically plague deep learning models.
- Frequency and Biology Matter: GANs often fail to perfectly replicate the frequency distribution of real images or the precise topology of facial landmarks. By explicitly extracting these as features, ForensicsForest catches subtle "tells" that CNNs might miss.
- Hierarchical Patch Integration: Instead of a flat ensemble, the hierarchical cascade allows the model to learn local associations between different parts of the face while building toward a global authenticity prediction.
- CPU-Friendly Forensics: The model can be trained on standard CPUs in a fraction of the time it takes to train a CNN on a high-end GPU.
Key Results
- Superior Accuracy: ForensicsForest outperformed mainstream CNNs (like ResNet50 and InceptionV3) across all datasets. On the challenging StyleGAN3 dataset, it achieved 88.4% accuracy, while most CNNs struggled in the 70-80% range.
- Efficiency Gains: Training ForensicsForest on a StyleGAN dataset took only 232.5 seconds on a CPU, compared to over 3,300 seconds for VGG16 on a GPU.
- Robustness: The model demonstrated strong resilience to brightness changes and additive Gaussian noise, maintaining high performance even on darkened or noisy images.
Limitations and Future Work
The primary limitation identified is sensitivity to image resolution. When images are resized to small dimensions (e.g., 256x256), the frequency spectrum and landmark features become significantly distorted, leading to a performance drop on StyleGAN datasets. While the model handles JPEG compression well, it is slightly less robust than some high-parameter CNNs at extreme compression levels. Future research will focus on improving robustness to low-resolution inputs and further refining the hybrid forest-CNN architectures.
Summary updated