Introduction
The rapid evolution of generative AI has created a significant challenge for digital forensics. While Generative Adversarial Networks (GANs) were previously the primary source of synthetic media, the emergence of Denoising Diffusion Probabilistic Models (DDPMs) has shifted the landscape. These diffusion-based models produce "hyper-realistic" face forgeries that often bypass detectors trained on older benchmarks. Current face forgery datasets frequently suffer from limited scale, low resolution, and a lack of fine-grained labeling, making it difficult to train models that generalize across different generation techniques.
To address these gaps, this research introduces GenFace, a massive hierarchical benchmark, and Cross Appearance-Edge Learning (CAEL), a novel detection framework designed to identify subtle forgery traces by fusing visual appearance with structural edge inconsistencies.
The GenFace Benchmark
GenFace is designed to move beyond the binary "real vs. fake" classification that limits many existing datasets. It comprises 615,000 images (100,000 real and 515,000 forged) sourced from high-quality repositories like CelebAHQ and FFHQ. The dataset is organized into a three-level hierarchy to facilitate more nuanced research:
- Level 1 (Coarse-grained): Binary classification (Real vs. Fake).
- Level 2 (Forgery Type): Categorization into Entire Face Synthesis, Attribute Manipulation, or Face Swapping.
- Level 3 (Fine-grained): Identification of the specific generator used, including modern diffusion models (e.g., DDPM, DiffFace) and advanced GANs (e.g., StyleGAN3).
By providing these granular labels, GenFace allows researchers to analyze exactly where detectors fail and how different generative methods leave unique artifacts.
Cross Appearance-Edge Learning (CAEL)
Detecting modern forgeries requires looking beyond standard RGB pixel data. The authors propose the CAEL detector, which operates across two distinct domains: the Appearance Domain and the Edge Domain.
Dual-Domain Feature Extraction
The Appearance Domain utilizes a transformer-based backbone to capture both global context and fine-grained visual details. Simultaneously, the Edge Domain uses a Sobel operator to generate structural edge maps. The researchers observed that while diffusion models excel at creating realistic textures, they often struggle with structural consistency at the boundaries, leaving "smoking gun" artifacts in the edge maps that are invisible to the naked eye.
Appearance-Edge Cross-Attention (AECA)
The core innovation of CAEL is the Appearance-Edge Cross-Attention (AECA) module. Instead of simply concatenating features, the AECA uses edge information as a "query" to probe the appearance features. This process effectively directs the model's attention toward regions where structural anomalies align with suspicious visual textures, allowing the detector to find forgery traces that single-domain models typically overlook.
Experimental Results
CAEL was evaluated against several state-of-the-art (SOTA) baselines, demonstrating superior performance in generalization and cross-generator scenarios.
- Generalization Performance: When trained on the standard FaceForensics++ (FF++) dataset and tested on the more diverse GenFace benchmark, CAEL achieved a 65.04% AUC, significantly outperforming Xception (60.61%) and specialized detectors like UFD (61.89%).
- Cross-Generator Robustness: In a challenging test where models were trained on diffusion-based fakes and tested on GAN-based fakes, CAEL maintained a high 92.73% AUC. In contrast, standard Vision Transformers (ViT) struggled, with performance dropping to near-random levels (49-50%).
- Human-AI Comparison: A case study revealed that CAEL significantly outperforms human intuition. While humans found diffusion-generated faces (DiffFace) nearly impossible to identify—achieving only ~36% accuracy—CAEL remained highly effective at distinguishing these sophisticated forgeries.
Conclusion and Future Work
GenFace and CAEL represent a significant step forward in the deepfake arms race. By providing a large-scale, fine-grained benchmark that includes diffusion models, the researchers have set a new standard for dataset diversity. The CAEL framework demonstrates that fusing structural edge data with visual features is a powerful strategy for catching hyper-realistic fakes.
Future work will focus on optimizing the model's computational efficiency, as the current architecture is relatively large (158.63M parameters). Additionally, the authors aim to incorporate "forgery masks" to provide spatial localization of manipulated areas and expand the dataset to include emerging generative techniques like Variational Autoencoders (VAEs) and Normalizing Flows.
Summary updated