Finding AI-Generated Faces in the Wild

Gonzalo J. Aniano Porcile, Jack Gindi, Shivansh Mundra, James R. Verbus, Hany FaridWorkshops @ CVPR 2024 · DOI

Abstract

As generative AI models become increasingly sophisticated, the proliferation of hyper-realistic synthetic faces poses significant challenges for online platform integrity. Researchers from LinkedIn and UC Berkeley have developed a robust detection framework utilizing an EfficientNet-B1 backbone. Unlike previous methods that rely on low-level pixel artifacts or specific generator glitches, this approach identifies semantic-level facial inconsistencies. The resulting model generalizes across diverse synthesis engines—including GANs and Diffusion models—and maintains high accuracy even under significant image degradation.

Introduction

The rapid evolution of generative AI has made it trivial to create hyper-realistic fake profile pictures, which are frequently used to anchor inauthentic accounts for fraud and disinformation campaigns. Existing detection methods often fall into two traps: they target specific glitches (like pupil shapes) that are eventually corrected by newer models, or they overfit to low-level noise patterns that are easily removed by standard image processing like resizing or JPEG compression. This work introduces a "resilient and general-purpose" detector designed to identify fundamental structural flaws in how AI constructs human faces.

Methodology

The proposed detection pipeline employs an EfficientNet-B1 convolutional neural network. This architecture was selected to balance high-performance classification with the computational efficiency required for large-scale deployment on professional social networks.

The process follows three stages:

  1. Preprocessing: Input images are normalized and resized to $512 \times 512$ pixels.
  2. Feature Extraction: The image passes through the EfficientNet-B1 transfer learning layers to generate a high-dimensional embedding.
  3. Classification: Two fully connected layers process the embedding to produce a final synthetic score between 0 (real) and 1 (AI-generated).

To ensure broad applicability, the model was trained on a diverse mixture of GAN and Diffusion-based images, preventing it from becoming overly specialized to a single generator's unique "fingerprint."

Datasets and Evaluation

The study utilized a comprehensive dataset of 225,900 images to benchmark performance. This included 120,000 real LinkedIn profile photos and 105,900 synthetic images from ten distinct engines, ranging from early StyleGAN models to modern Diffusion-based systems like Midjourney and Stable Diffusion XL.

Comparison of synthetic faces across various generation engines, illustrating the diversity of the training and evaluation data.

The model was also tested against non-face synthetic categories (e.g., cars, cats, and interiors) to evaluate its specificity to facial structures.

Key Insights: The Semantic Artifact

A core finding of this research is that the detector identifies "semantic-level artifacts" rather than simple pixel noise.

The Face-Only Advantage

The model exhibits high specificity; when presented with synthetic images of non-human subjects, its detection performance drops significantly. This suggests the network has learned structural regularities specific to human facial synthesis rather than a generic "AI signature."

Examples of synthetic content used to test model specificity, including noise patterns, faces, and complex scenes.

Resilience and Generalization

  • Structural Perception: Using the "Thatcher Illusion" (inverted faces), researchers confirmed the model relies on the spatial arrangement of features. Performance degrades when faces are upside down, mirroring human perceptual limitations.
  • Robustness to Laundering: The detector remains effective at low resolutions (down to $128 \times 128$) and survives aggressive JPEG compression, conditions that typically break noise-based detectors.
  • Zero-Shot Generalization: The model successfully identified faces from engines it had never encountered during training (e.g., Midjourney), achieving an 84.5% True Positive Rate (TPR) on unseen models at a strict 0.5% False Positive Rate (FPR).

Results

At a fixed 0.5% FPR (meaning only 1 in 200 real images are misclassified), the model achieved:

  • 98.0% TPR for known synthesis engines.
  • 84.5% TPR for entirely unseen "out-of-engine" generators.
  • 91.9% TPR on low-resolution ($128 \times 128$) images when specifically optimized.

Explainability analysis via integrated gradients revealed that the model primarily focuses on the eyes, nose, mouth, and skin texture to make its determinations.

Conclusion

This research demonstrates that focusing on semantic facial structures provides a more resilient path for AI detection than tracking low-level pixel artifacts. While the "cat-and-mouse game" between generators and detectors continues, this model offers a robust defense against current synthetic profile picture misuse. Future efforts will focus on hardening the model against intentional adversarial attacks and incorporating newer generative architectures as they emerge.

Summary updated

BibTeX
@inproceedings{porcile2024finding,
  author = {Gonzalo J. Aniano Porcile and Jack Gindi and Shivansh Mundra and James R. Verbus and Hany Farid},
  title = {{Finding AI-Generated Faces in the Wild}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
  doi = {10.1109/cvprw63382.2024.00433},
}
Figure