Introduction
The rapid advancement of generative AI models, including Generative Adversarial Networks (GANs) and Diffusion Models, has ushered in an era where deepfakes—highly realistic manipulated media—are increasingly difficult to distinguish from authentic content. While human observers struggle to identify these forgeries, traditional forensic methods have primarily focused on pixel-level artifacts or architectural "fingerprints" within the RGB color space. However, as generative models improve, these visual cues become more subtle and harder to detect.
This paper introduces SurFake, a novel detection framework that shifts the focus from visual appearance to physical consistency. By exploiting the underlying 3D surface geometry of faces, SurFake identifies anomalies that occur when generative processes fail to respect the geometric constraints of the real world.
The Geometric Challenge in Deepfake Generation
Current deepfake techniques, such as face swapping or facial reenactment, often prioritize visual fidelity over structural accuracy. When a real camera captures a scene, the resulting image is a product of complex interactions between lighting, surface geometry, and camera orientation. Deepfake models frequently disrupt this mathematical harmony. For instance, a swapped face might not perfectly align with the original head's orientation, or a reenacted expression might introduce micro-jitters in the estimated surface normals.
The core hypothesis of SurFake is that these geometric inconsistencies, while often invisible in the RGB domain, leave a distinct forensic trail in the 3D domain.
Methodology: The SurFake Pipeline
The SurFake approach moves the detection task into the geometric domain through a multi-step process:
- Face Extraction: The system utilizes the
dlibtoolkit to detect and crop faces from video frames, ensuring a consistent input for subsequent analysis. - Surface Estimation via UpRightNet: The cropped images are processed by UpRightNet, a neural network originally designed to estimate 2-Degree-of-Freedom (2DoF) camera orientation (roll and pitch).
- Global Surface Descriptor (GSD): Rather than using the final camera orientation, SurFake extracts an intermediate representation known as the Global Surface Descriptor. This feature maps surface normals into a global "up-right" reference system, effectively characterizing the face as a collection of oriented surfaces.
- Classification: The resulting GSD—a 3-channel tensor—is used to train standard convolutional neural network (CNN) architectures, including ResNet50, MobileNetV2, EfficientNet-B0, and Xception.
The researchers explored two primary configurations:
- GSD-only: Training models exclusively on geometric features to test their standalone discriminative power.
- RGB+GSD: Concatenating the original RGB image with the GSD to provide a 6-channel input, combining visual and geometric information.
Experimental Results
The framework was evaluated using the FaceForensics++ (FF++) benchmark, specifically the "HQ" (c23) compressed version to simulate real-world social media conditions. The dataset includes various manipulation types: DeepFakes (DF), FaceShifter (FSH), FaceSwap (FS), Face2Face (F2F), and NeuralTextures (NT).
Standalone Geometric Performance
One of the most significant findings is that surface geometry alone is a potent forensic signal. Models trained only on GSD features achieved an average accuracy of 75.7% to 76.1% across all forgery types. This demonstrates that even without texture or color information, the structural "logic" of the face is enough to identify a significant portion of deepfakes.
Enhancing State-of-the-Art Detectors
When GSD features were combined with traditional RGB data, the performance of existing architectures improved. For example, using the MobileNetV2 backbone, the average accuracy increased from 98.2% (RGB only) to 98.5% (RGB+GSD). The Area Under Curve (AUC) for GSD-only detection remained consistently high, often exceeding 0.85 for methods like DeepFakes and FaceSwap.
Visualizing Surface Anomalies
The power of the GSD becomes apparent when visualizing the features. By examining the logarithm of the GSD, researchers can see patterns that are hidden in the original image.
Manipulations often create "jitter" or exaggerated geometric patterns around high-activity areas like the forehead or the corners of the mouth. While the RGB pixels might look smooth, the GSD reveals these as glaring physical anomalies.
Discussion and Future Directions
While SurFake shows great promise, certain challenges remain. NeuralTextures (NT) proved to be the most difficult manipulation to detect. Because NT primarily modifies small, localized regions (such as the interior of the mouth) while leaving the overall facial structure intact, the Global Surface Descriptor may overlook these subtle changes.
Future work will focus on investigating descriptors that focus on smaller patches to catch localized fakes like lip-syncing, as well as testing the method against more recent datasets like Celeb-DF and DFDC to ensure robustness against the latest generation of AI models.
In conclusion, SurFake demonstrates that the physical "logic" of a scene is a critical, yet often overlooked, dimension in the fight against digital misinformation. By looking beneath the surface—literally—forensic models can become significantly more robust.
Summary updated