TL;DR
This paper introduces a novel method for detecting GAN-generated faces by analyzing the geometric irregularity of pupils. The authors propose that GANs struggle to perfectly replicate the natural, near-circular shape of human pupils, and this subtle artifact can be reliably detected using an automated pupil segmentation and ellipse-fitting approach. This method offers an interpretable and robust alternative to existing black-box deep learning detectors.
What Problem Does This Paper Address?
The proliferation of highly realistic GAN-generated human faces poses a significant challenge, particularly in their misuse for fake social media accounts and other malicious purposes. While deep learning models have achieved high accuracy in detecting these synthetic faces, they often lack interpretability and struggle to generalize across different GAN architectures. Existing methods that exploit physical cues have shown promise but can be limited by environmental assumptions or specific artifacts. This paper addresses the need for a more interpretable, robust, and universally applicable method for GAN-generated face detection by focusing on a fundamental physiological characteristic: the shape of the human pupil.
Methods
The proposed method involves several key steps:
- Face and Landmark Detection: Standard face detection is used to locate faces, followed by facial landmark detection to precisely pinpoint the eye regions.
- Pupil Segmentation: An improved U-Net-based model (EyeCool) with an EfficientNet-B5 encoder and a boundary attention block is employed to segment the pupil and extract its outer boundary.
- Ellipse Fitting: A least-squares fitting method is used to fit a parametric ellipse to the detected pupil boundary. This step aims to find the best-fitting ellipse to the pupil's shape.
- Shape Irregularity Estimation (BIoU): The Boundary Intersection-over-Union (BIoU) metric is used to quantify the difference between the segmented pupil mask and the fitted ellipse. BIoU measures the overlap of pixels within a certain distance from the boundaries of both shapes. A higher BIoU score indicates a better fit to the ellipse, suggesting a more regular pupil shape.
The core hypothesis is that GAN-generated pupils will exhibit more irregular shapes, leading to lower BIoU scores compared to real human pupils.
Datasets
- Flickr-Faces-HQ (FFHQ) dataset: Used for real human faces.
- StyleGAN2-generated faces: A dataset of GAN-generated faces was collected from StyleGAN2, a state-of-the-art GAN model.
The authors collected 1,600 images for each class (real and fake) with a resolution of 1024x1024, ensuring that eyes and pupils could be successfully extracted.
Key Insights and Ideas
- Pupil Shape as a Universal GAN Artifact: The paper posits that the near-circular nature of human pupils is a fundamental physiological constraint that GANs, even advanced ones like StyleGAN2, struggle to perfectly replicate. This leads to subtle but detectable irregularities in GAN-generated pupils.
- BIoU for Quantifying Irregularity: The Boundary IoU (BIoU) metric is effectively repurposed to quantify the deviation of a pupil's shape from a perfect ellipse. This provides a quantitative measure of "regularity."
- Interpretability through Physiology: By focusing on a physical cue (pupil shape), the method offers a more interpretable explanation for its detection decisions compared to black-box deep learning models.
- Human-Level Detection: The authors note that this pupil shape consistency cue is also effective for humans in visually identifying GAN-generated faces, suggesting its intuitive nature.
Key Results
- Clear Separation of Distributions: The distributions of BIoU scores for real and GAN-generated faces show a clear separation, indicating the effectiveness of pupil shape regularity as a discriminative feature.
- High AUC Score: The proposed method achieved an Area Under the ROC Curve (AUC) of 0.91, demonstrating strong performance in distinguishing GAN-generated faces from real ones.
- Robustness to GAN Architectures: The paper suggests that this artifact is universal across known GAN models (e.g., PGGAN, Alias-Free GAN, SofGAN), implying good generalization capabilities.
Limitations and Future Work
Limitations: * False Positives from Real Faces: The method may produce false positives if real human pupils are naturally non-elliptical due to diseases or specific conditions (e.g., infected eyes). * Segmentation Failures: Imperfect imaging conditions such as lighting variations, extreme viewing angles, or occlusions can lead to errors in pupil segmentation, impacting detection accuracy.
Future Work: * Inter-Pupil Consistency: Investigate inconsistencies between the two pupils within a single GAN-generated face, such as differences in geometric shape or relative positioning. * Online Deployment: Develop an online platform to make this detection method accessible and address issues in social media forensics.
Summary updated