Introduction: The Challenge of Compressed Deepfakes
While modern deepfake detectors achieve near-perfect accuracy on high-resolution datasets, their performance in real-world "wild" scenarios is often lackluster. Social media platforms typically apply heavy compression (e.g., JPEG or H.264), which acts as a low-pass filter. This process erases subtle high-frequency artifacts—such as sharp edges around hair or unnatural textures—that are essential for distinguishing real faces from AI-generated ones. Previous research indicates that detection accuracy can drop by up to 18% on heavily compressed data. The core challenge lies in training models to identify forgery evidence that has been effectively suppressed by compression algorithms.
Methodology: The ADD Framework
The proposed ADD (Attention-based Deepfake detection Distiller) framework utilizes a teacher-student knowledge distillation (KD) paradigm. Unlike traditional KD used for model compression, ADD focuses on feature restoration. A teacher model, pre-trained on High-Quality (HQ) images, guides a student model tasked with detecting forgeries in Low-Quality (LQ) compressed images.
The framework incorporates two primary distillation modules:
- Frequency Attention Distillation: Utilizing the Discrete Fourier Transform (DFT), this module identifies high-frequency components missing in the student's features compared to the teacher's. A weighted loss function forces the student to prioritize the recovery of these discriminative signals.
- Multi-View Attention Distillation: To address the loss of local region correlations caused by compression, the authors employ the Radon Transform to analyze feature tensors from multiple geometric perspectives. The Sliced Wasserstein Distance (SWD) is then used to align the distributions of the teacher and student, ensuring structural consistency.
- Contrastive Learning: A contrastive loss is integrated to ensure the student learns to distinguish between real and fake representations effectively, rather than merely mimicking the teacher's output.
Experimental Results
The ADD framework was evaluated on five benchmark datasets: NeuralTextures (NT), Deepfakes (DF), Face2Face (F2F), FaceSwap (FS), and FaceShifter (FSr). Testing was conducted at medium (c23) and high (c40) compression levels using the H.264 codec.
Key findings include:
- Significant Accuracy Gains: On the NeuralTextures dataset with high compression (c40), ADD-ResNet50 achieved an accuracy of 68.53%, a substantial improvement over the baseline ResNet50's 60.27%.
- Module Effectiveness: Ablation studies confirmed that the frequency attention module alone contributed a significant boost in accuracy, highlighting the importance of frequency-domain analysis for low-quality detection.
- Architectural Robustness: The framework proved to be backbone-agnostic, providing performance improvements of up to 7.1% for various architectures, including EfficientNet-B0 and different ResNet variants.
Conclusion
ADD addresses a critical bottleneck in deepfake detection by leveraging knowledge distillation for feature restoration in the presence of heavy compression. By focusing on frequency-domain artifacts and multi-view geometric structures, the framework enables robust detection on low-quality images. Future work may explore reducing the computational complexity of the distillation process and improving the student's generalization to novel forgery types not seen by the teacher model.
Summary updated