ForensicsForest Family: A Series of Multi-Scale Hierarchical Cascade Forests for Detecting GAN-Generated Faces

Jiucui Lu, Jiaran Zhou, Junyu Dong, Bin Li, Siwei Lyu, Yuezun Li

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.

GAN-generated faces (right) are becoming hyper-realistic and hard to distinguish from real ones (left).

Methods

The authors propose the ForensicsForest Family, a set of three forest-based variants:

  1. 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.
  2. 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.
  3. 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.
Diagram of the ForensicsForest architecture, showing the flow from input features to authenticity prediction.

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.
The Hierarchical Cascade Forest processes patches sequentially, augmenting features at each layer.

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

Abstract

The prominent progress in generative models has significantly improved the authenticity of generated faces, raising serious concerns in society. To combat GAN-generated faces, many countermeasures based on Convolutional Neural Networks (CNNs) have been spawned due to their strong learning capabilities. In this paper, we rethink this problem and explore a new approach based on forest models instead of CNNs. Concretely, we describe a simple and effective forest-based method set, termed ForensicsForest Family, to detect GAN-generate faces. The ForensicsForest family is composed of three variants: ForensicsForest, Hybrid ForensicsForest and Divide-and-Conquer ForensicsForest. ForenscisForest is a novel Multi-scale Hierarchical Cascade Forest that takes appearance, frequency, and biological features as input, hierarchically cascades different levels of features for authenticity prediction, and employs a multi-scale ensemble scheme to consider different levels of information comprehensively for further performance improvement. Building upon ForensicsForest, we create Hybrid ForensicsForest, an extended version that integrates the CNN layers into models, to further enhance the efficacy of augmented features. Furthermore, to reduce memory usage during training, we introduce Divide-and-Conquer ForensicsForest, which can construct a forest model using only a portion of training samplings. In the training stage, we train several candidate forest models using the subsets of training samples. Then, a ForensicsForest is assembled by selecting suitable components from these candidate forest models. Our method is validated on state-of-the-art GAN-generated face datasets and compared with several CNN models, demonstrating the surprising effectiveness of our method in detecting GAN-generated faces.
BibTeX
@article{lu2024forensicsforest,
  author = {Jiucui Lu and Jiaran Zhou and Junyu Dong and Bin Li and Siwei Lyu and Yuezun Li},
  title = {{ForensicsForest Family: A Series of Multi-Scale Hierarchical Cascade Forests for Detecting GAN-Generated Faces}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2024},
  doi = {10.1109/tifs.2024.3395013},
}
Figure