Exposing GAN-Generated Faces Using Inconsistent Corneal Specular Highlights

Shu Hu, Yuezun Li, Siwei Lyu

Abstract

Generative Adversarial Networks (GANs) have reached a level of sophistication where synthetic faces are nearly indistinguishable from real ones to the human eye. However, these models often fail to account for the physical laws of optics. This paper proposes a forensic method to detect GAN-generated faces by analyzing inconsistencies in corneal specular highlights—the tiny reflections of the environment visible in the eyes. By comparing these reflections across both eyes, the authors demonstrate that synthetic images frequently exhibit physical impossibilities, achieving an AUC of 0.94 in classification tasks.

Introduction

The rise of high-quality synthetic media, or "deepfakes," poses significant challenges for digital forensics and information integrity. Modern GANs, such as StyleGAN2, produce hyper-realistic portraits that successfully cross the "uncanny valley." While many detection techniques rely on subtle pixel-level artifacts or frequency domain analysis, these "black-box" methods often lack interpretability and are vulnerable to common image processing operations like resizing or compression. This research introduces a physiologically-grounded approach based on the geometric consistency of corneal reflections, which are difficult for GANs to replicate because they lack an underlying 3D physical model of the world.

Methodology

The proposed detection pipeline focuses on the "portrait setting," where the subject faces the camera and light sources are relatively distant. In a real photograph, the environment reflected in the cornea of both eyes should be nearly identical in shape and relative position.

A synthetic face generated by StyleGAN2, illustrating the typical portrait orientation analyzed by the system.

The automated process involves four main steps:

  1. Preprocessing: Face detection and landmark extraction using DLib to isolate the eye regions.
  2. Limbus Detection: Identifying the circular boundary of the iris (the corneal limbus) using Canny edge detection and the Hough Transform.
  3. Highlight Extraction: Utilizing adaptive thresholding to isolate the brightest specular highlights within the eye area.
  4. Similarity Comparison: Aligning the highlights from both eyes via translation and calculating the Intersection over Union (IoU) score. A high IoU suggests the reflections match (real), while a low IoU indicates inconsistencies in shape, number, or position (GAN-generated).

Experimental Setup

The method was evaluated using two high-resolution (1024x1024) datasets to represent real and synthetic distributions.

A grid showing the diversity of faces in the study, including real individuals from FFHQ and synthetic personas from StyleGAN2.
  • Real Faces: The Flickr-Faces-HQ (FFHQ) dataset, containing a high diversity of real human faces.
  • GAN Faces: Images generated by the StyleGAN2 model, sourced from thispersondoesnotexist.com.

Results and Key Insights

The analysis revealed a significant divergence in IoU scores between real and synthetic faces. Real images typically yielded IoU scores above 0.5, while GAN-generated images often fell below 0.4. This clear separation allowed the system to achieve an Area Under the Curve (AUC) of 0.94.

The primary reason for this success is the "Independent Eye" problem: GANs generate images based on statistical distributions of pixels rather than a 3D physical model. Consequently, they often generate the left and right eyes without ensuring they are consistent with a single, shared environmental light source. Qualitative results showed GAN eyes often have different numbers of light sources or wildly different geometric shapes for the same reflection.

Discussion and Limitations

The strength of this approach lies in its reliance on semantic, physical features rather than signal-level noise, making it more robust against image laundering. However, the authors acknowledge several constraints:

  • Environmental Requirements: The method requires a portrait setting and may produce false positives if the subject is not looking at the camera or if the light source is extremely close.
  • Missing Highlights: In low-light scenarios where no specular highlights are present, the method cannot be applied.
  • Manual Intervention: A sophisticated attacker could manually edit reflections to match, though this is difficult to scale for mass disinformation.

Future work will focus on investigating more complex geometric inconsistencies to improve robustness against non-frontal poses.

Summary updated

BibTeX
@inproceedings{hu2020exposing,
  author = {Shu Hu and Yuezun Li and Siwei Lyu},
  title = {{Exposing GAN-Generated Faces Using Inconsistent Corneal Specular Highlights}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  doi = {10.1109/icassp39728.2021.9414582},
}
Figure