Introduction
Deepfake detection has reached high levels of accuracy on pristine, high-resolution images. However, real-world scenarios often involve images that have undergone heavy compression for transmission over social media platforms. This compression typically removes high-frequency details and destroys subtle pixel correlations, leading to a significant drop in detector performance—sometimes by as much as 18%. The Attention-based Deepfake detection Distiller (ADD) addresses this gap by leveraging knowledge distillation to recover discriminative features from low-quality (LQ) compressed images.
Methodology
The core of the ADD framework is a Knowledge Distillation (KD) strategy where a "teacher" model, pre-trained on high-quality (HQ) raw images, guides a "student" model trained on LQ compressed images. This setup enables the student to learn robust feature representations that are typically lost during compression.
ADD introduces two primary distillation modules:
- Frequency Attention Distillation (FAD): Utilizing Discrete Fourier Transforms (DFT), this module forces the student to focus on high-frequency components. By calculating the weighted difference between teacher and student frequency representations, it helps the student retrieve fine-grained artifacts essential for detection.
- Multi-View Attention Distillation (MVAD): This module employs Sliced Wasserstein Distance (SWD) to compare feature maps. By "slicing" 3D feature tensors from multiple angles into 1D distributions, the student learns to mimic the teacher's global feature distribution and local pixel correlations more effectively than standard element-wise comparisons.
The framework also integrates Contrastive Distillation to better separate "real" and "fake" features in the embedding space.
Experiments and Results
The ADD framework was evaluated using the FaceForensics++ ecosystem, covering five manipulation methods: NeuralTextures, Deepfakes, Face2Face, FaceSwap, and FaceShifter. Tests were conducted at two compression levels: medium (c23) and high (c40).
As shown in the results, ADD consistently outperforms non-distillation baselines across all datasets and backbones (ResNet18, ResNet34, EfficientNet-B0). The improvement is most pronounced in the highly compressed c40 scenarios. For instance, on the NeuralTextures c40 dataset, ADD achieved a significant accuracy boost, reaching 68.53% compared to the 60.27% baseline. Qualitative analysis via Grad-CAM further confirmed that ADD-trained models successfully focus on facial regions rather than background noise, closely mimicking the teacher's attention patterns.
Conclusion
ADD provides a robust solution for deepfake detection in compressed media. By explicitly distilling frequency-domain knowledge and multi-view attention distributions, the framework allows student models to "see" features that are technically absent from their degraded inputs. Future work may explore extending this framework to video-based detection and improving its resilience against adversarial attacks.
Summary updated