Exploring Frequency Adversarial Attacks for Face Forgery Detection

Shuai Jia, Chao Ma, Taiping Yao, Bangjie Yin, Shouhong Ding, Xiaokang Yang

Abstract

As face forgery detection models increasingly rely on frequency-domain artifacts to identify Deepfakes, they become vulnerable to targeted adversarial perturbations. This paper introduces a novel frequency-based adversarial attack that injects imperceptible noise into the frequency spectrum using Discrete Cosine Transform (DCT). By integrating this with a meta-learning-inspired hybrid approach that alternates between spatial and frequency domains, the researchers achieve significantly higher attack success rates and improved transferability across different detector architectures while preserving superior visual quality (PSNR of 42.7).

Introduction

The rapid advancement of facial manipulation techniques, commonly known as Deepfakes, has necessitated the development of robust detection systems. Modern state-of-the-art detectors often look beyond pixel-level inconsistencies, focusing instead on "frequency artifacts"—microscopic patterns in the frequency spectrum generated during the synthesis process that are invisible to humans. While effective, these detectors are susceptible to adversarial attacks: small, calculated perturbations designed to flip a model's prediction. Traditional attacks like FGSM and PGD operate primarily in the spatial (pixel) domain, often resulting in visible artifacts and poor transferability to unseen models. This research addresses these gaps by proposing an attack that targets the frequency domain directly.

Methodology

The core of the proposed approach consists of two main components: a Frequency Adversarial Attack and a Hybrid Meta-Learning strategy.

Frequency Adversarial Attack

Unlike standard attacks that modify pixels, this method operates in the frequency domain. The input image $X^{init}$ is partitioned into $K \times K$ blocks and transformed using the Discrete Cosine Transform (DCT). A perturbation $P_N$ is then introduced and balanced across different frequency bands (low, middle, high) via a learnable weight matrix $M$ in a Fusion Module. The modified frequency components are then converted back to the spatial domain using the Inverse DCT (IDCT) to produce the adversarial example $X^{adv}$.

The proposed Frequency Adversarial Attack pipeline, utilizing Discrete Cosine Transform (DCT) to inject perturbations into the frequency domain.

Hybrid Adversarial Attack

To enhance transferability—the ability to fool "black-box" detectors whose architecture is unknown—the authors employ a hybrid strategy inspired by meta-learning. The algorithm iteratively alternates between attacking spatial features and frequency features. By calculating gradients in both domains and updating the perturbation iteratively, the resulting adversarial image "gathers the virtues" of both, making it harder for any detector (spatial-based or frequency-based) to catch.

Experimental Setup

The method was evaluated on two industry-standard benchmark datasets:

  • Deepfake Detection Challenge (DFDC): A large-scale dataset featuring diverse, high-quality facial manipulations.
  • FaceForensics++ (FF++): A comprehensive dataset covering four common forgery types: Deepfakes, FaceSwap, Face2Face, and NeuralTextures.

Key Results and Discussion

The experimental results demonstrate the clear advantages of frequency-domain attacks in both effectiveness and imperceptibility.

Attack Success and Transferability

On the DFDC dataset, the proposed attack achieved a 97.1% success rate against an EfficientNet-b4 detector, a substantial improvement over the 77.7% achieved by the standard PGD attack. Furthermore, the hybrid approach showed superior transferability; an attack optimized for a ResNet-50 model successfully fooled an XceptionNet detector 49.6% of the time, whereas standard spatial attacks often drop to near 0% transferability in such black-box scenarios.

Visual Fidelity

A critical requirement for adversarial attacks is that the perturbations remain invisible to the human eye. The proposed method achieved a PSNR (Peak Signal-to-Noise Ratio) of 42.7, significantly outperforming PGD (30.4) and FGSM (23.3). As shown in the visual comparison, the frequency-based attack avoids the "fuzzy" noise patterns characteristic of spatial-domain methods.

Comparison of visual quality across different adversarial attacks. Our method (d) maintains high fidelity compared to standard spatial attacks like FGSM (b) and PGD (c).

Ablation studies further revealed that targeting low-frequency bands is particularly effective, as these bands carry the structural information most critical for neural network classification.

Conclusion and Future Work

This research highlights a significant vulnerability in current face forgery detectors: their reliance on frequency artifacts. By attacking these artifacts directly, the proposed method achieves high success rates with minimal impact on image quality. While the computational cost of alternating domain transformations is higher than simple pixel modifications, the gains in robustness and transferability are substantial. Future work will focus on extending these techniques to video sequences, where temporal consistency (flicker) presents a new set of challenges for adversarial robustness.

Summary updated

BibTeX
@inproceedings{jia2022exploring,
  author = {Shuai Jia and Chao Ma and Taiping Yao and Bangjie Yin and Shouhong Ding and Xiaokang Yang},
  title = {{Exploring Frequency Adversarial Attacks for Face Forgery Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure