FaceShield: Defending Facial Image against Deepfake Threats

Jaehwan Jeong, Sumin In, Sieun Kim, Hannie Shin, Jongheon Jeong, Sang Ho Yoon, Jaewook Chung, Sangpil Kim · DOI

TL;DR

This paper introduces FaceShield, a proactive defense against deepfakes that works by subtly altering facial images to disrupt deepfake generation. It's effective against both older GAN-based and newer diffusion-based deepfake models, offering a more robust solution than just detection.

What Problem Does This Paper Address?

Deepfakes are becoming increasingly sophisticated and accessible, posing significant risks for misinformation, fraud, and other malicious activities. While many existing defenses focus on detecting deepfakes after they're created, this paper tackles the problem from a proactive stance: making it harder for deepfake models to generate convincing fakes in the first place. The challenge is that current proactive defenses often struggle with the latest diffusion-based deepfake models, being primarily designed for older Generative Adversarial Network (GAN) architectures. This limits their applicability in the rapidly evolving deepfake landscape.

Methods

FaceShield employs a three-pronged approach to disrupt deepfake generation:

  1. Conditioned Face Attack (CFA): This targets diffusion models by manipulating their attention mechanisms. Specifically, it injects adversarial noise into the conditioning image (the image whose face is being swapped) to prevent the model from effectively using its features during the denoising process. This is achieved by targeting the "key-value" pairs in the cross-attention layer, which are crucial for how diffusion models incorporate conditional information.
  2. Facial Feature Extractor Attack: This component aims to make the adversarial perturbations more robust and transferable across different deepfake models. It specifically targets common facial feature extraction models like MTCNN and ArcFace, which are widely used in deepfake pipelines. By disrupting these extractors, FaceShield ensures that even if a deepfake model uses these standard components, the generated fake will be of lower quality or identity.
  3. Enhanced Noise Update: To ensure the adversarial perturbations are imperceptible to humans and robust to common image processing, FaceShield uses two techniques:
  4. Gaussian Blur: This refines the noise by focusing on areas with significant intensity changes, making the noise less noticeable at boundaries.
  5. Low-Pass Filtering: This technique encodes the noise in the low-frequency domain, making it more resilient to JPEG compression and other post-processing steps that might otherwise remove the adversarial perturbation.

Datasets

The paper evaluates FaceShield using two standard, high-resolution datasets:

  • CelebA-HQ: A high-resolution version of the CelebA dataset, containing 30,000 celebrity face images.
  • VGGFace2-HQ: A high-resolution version of VGGFace2, comprising 3.3 million face images from 9,131 unique identities.

For their experiments, they randomly selected 200 identities from each dataset, using 100 images for source and 100 for target.

Key Insights and Ideas

  • Diffusion Models are Different: The paper highlights that diffusion models' attention mechanisms operate differently than GANs, requiring a tailored approach to adversarial attacks. Simply applying existing GAN-focused defenses doesn't work.
  • Targeting the "Condition" is Key: For diffusion models, attacking the way the source image is used as a condition (via key-value pairs in attention) is more effective than attacking other parts of the generation process.
  • Facial Feature Extractors are Universal Weaknesses: By targeting common facial feature extractors (MTCNN, ArcFace), FaceShield gains broad applicability across many different deepfake models, not just diffusion-based ones.
  • Low-Frequency Noise is Robust: Encoding adversarial noise in the low-frequency domain makes it surprisingly resilient to common image processing techniques like JPEG compression, a crucial insight for practical defense.

Key Results

  • State-of-the-Art Performance: FaceShield achieves state-of-the-art performance against the latest diffusion-based deepfake models.
  • Transferability: The method demonstrates strong transferability, working effectively against both diffusion models and GAN-based models.
  • Imperceptibility and Robustness: FaceShield produces imperceptible noise and exhibits enhanced robustness against JPEG compression.
  • Efficiency: The method is computationally efficient, requiring only 15 GB of memory and achieving 24 seconds per image.
  • Qualitative Improvements: Visual results show that FaceShield either introduces artifacts that disrupt the deepfake or completely changes the identity, effectively preventing successful face swapping.

Limitations and Future Work

  • Purification Techniques: The authors acknowledge that while FaceShield is robust against JPEG compression and resizing, other purification techniques might still degrade the protective noise. Future work will focus on strengthening the noise to counter a broader range of such methods.
  • Further Robustness: While effective, the paper suggests continued efforts to enhance robustness against more advanced purification techniques.

Summary updated

BibTeX
@inproceedings{jeong2025faceshield,
  author = {Jaehwan Jeong and Sumin In and Sieun Kim and Hannie Shin and Jongheon Jeong and Sang Ho Yoon and Jaewook Chung and Sangpil Kim},
  title = {{FaceShield: Defending Facial Image against Deepfake Threats}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure