GRACE Deepfake Detection
Explainable Deepfake Detection System
2 min readupdated
The GRACE (Generalisable, Robust And Concept-Explainable detection) model addresses the task of detecting fake faces in videos and images by scoring them across ten clear forensic features. Instead of simply outputting a "real or fake" verdict, the system provides a detailed breakdown by concepts (such as skin artifacts, color mismatches, or geometry inconsistencies). The architecture includes a heavy teacher model based on CLIP ViT-L/14 with LoRA adapters and a compact EfficientNet-B0 student for fast CPU inference. Created as part of an academic capstone project at PES University, it is useful for security researchers and developers building media verification systems.
Key features
- Ten concepts: Evaluation based on specific features like blur, blending artifacts, or eye editing.
- Teacher-student architecture: An accurate teacher for powerful servers and a lightweight 4.7-million-parameter ONNX model for CPUs.
- Robust base: Trained on the FaceForensics++ dataset with self-blended fakes without using test data.
- Ready-to-use interface: Source code and a demo space available on Hugging Face Spaces.
What you can do
- Media verification: Run the built-in demo to analyze suspicious videos and photos for manipulations.
- CPU integration: Use the lightweight
grace_student.onnxversion for fast video analysis on standard servers. - Vulnerability analysis: Examine model weights and configurations to research the reliability of modern deepfake detectors.
Example
The model evaluates 224×224 pixel faces across ten forensic criteria, outputting an interpretable fake logit as the weighted sum of these concepts.
Read more
DetailsAUC metrics: FF++ 0.997, DFD 0.951, Celeb-DF 0.901
Limitations: Vulnerable to new generators (diffusion models), heavy video compression, and extreme head pose angles
Components: PyTorch teacher weights with LoRA on CLIP and a compact EfficientNet-B0 student










Comments