Joint Physical-Digital Facial Attack Detection Via Simulating Spoofing Clues

Xianhua He, Dashuang Liang, Song Yang, Zhanlong Hao, Hui Ma, Binjie Mao, Xi Li, Yao Wang, Pengfei Yan, Ajian LiuWorkshops @ CVPR 2024 · DOI

Abstract

Modern face recognition systems face threats from both physical (print/replay) and digital (deepfake/adversarial) attacks. Traditionally, these have been handled by separate models, which is computationally inefficient. This paper introduces a unified detection framework that utilizes two novel data augmentation strategies—Simulated Physical Spoofing Clues (SPSC) and Simulated Digital Spoofing Clues (SDSC)—to transform live face samples into synthetic attack data. This approach allows a single model to achieve state-of-the-art accuracy across diverse attack vectors without additional inference overhead.

The Challenge of Unified Facial Attack Detection

Face recognition systems are increasingly vulnerable to two distinct categories of attacks. Physical attacks involve presenting a counterfeit object, such as a high-resolution print or a video replay, to the camera. Digital attacks occur at the pixel level, utilizing deepfakes (digital forgery) or adversarial noise to deceive neural networks.

Overview of physical and digital facial attacks and their associated visual clues.

Historically, these threats have been treated as separate problems, necessitating multiple specialized models. This approach is computationally expensive and difficult to maintain. The goal of this research is to develop a single, "joint" detector capable of generalizing to unseen attack methods in both the physical and digital realms.

Methods: Simulating Spoofing Clues

The proposed framework is "backbone-agnostic," allowing integration with various architectures like ResNet or Swin Transformer. The core innovation lies in simulating attack artifacts directly on live data during the training phase:

  1. Simulated Physical Spoofing Clues (SPSC): This mimics physical attacks by applying ColorJitter (to simulate printer color distortions) and a custom Moire Pattern algorithm (to simulate the wavy interference patterns seen when a camera films a digital screen).
  2. Simulated Digital Spoofing Clues (SDSC): This creates synthetic deepfakes by performing face parsing on a live image, applying distortions to a "pseudo-source" version of the face, and blending it back. This teaches the model to detect subtle edge artifacts and statistical inconsistencies typical of digital forgery.

By training on these simulations, the model learns fundamental "spoofing clues" rather than just memorizing specific dataset biases.

Experimental Setup: UniAttackData

The method was evaluated using the UniAttackData dataset, a comprehensive benchmark featuring 1,800 subjects across three races (African, East Asian, and Central Asian). It includes:

  • Physical attacks: Print and Replay.
  • Digital forgery attacks: Six types, including FaceDancer and Simswap.
  • Adversarial attacks: Six types, including FGSM and PGD.

This dataset is unique because it maintains consistent face IDs across all attack types, making it an ideal testbed for joint detection capabilities.

Key Results and Insights

The proposed method secured first place in the "Unified Physical-Digital Face Attack Detection" track at the 5th Face Anti-spoofing Challenge (CVPR 2024). Quantitative results showed a dramatic reduction in the Average Classification Error Rate (ACER) compared to the baseline:

  • Physical Attacks (Protocol 2.1): ACER reduced from 38.05% to 1.32%.
  • Digital Attacks (Protocol 2.2): ACER reduced from 44.35% to 1.65%.
  • Overall Challenge Performance: Achieved a final ACER of 2.34%.

Key insights include the discovery that simulated clues often generalize better than real data, which can be biased toward specific hardware or lighting. Furthermore, because the method relies on training-time augmentation, it introduces no computational overhead during deployment.

Conclusion and Future Directions

While highly effective, the framework shows some performance variability across different neural network backbones, likely due to the limited size of current benchmarks. Future research will focus on scaling these simulation techniques to larger datasets and extending them to handle more complex threats, such as 3D mask attacks, which present more intricate visual signatures than 2D prints or replays.

Summary updated

BibTeX
@inproceedings{he2024joint,
  author = {Xianhua He and Dashuang Liang and Song Yang and Zhanlong Hao and Hui Ma and Binjie Mao and Xi Li and Yao Wang and Pengfei Yan and Ajian Liu},
  title = {{Joint Physical-Digital Facial Attack Detection Via Simulating Spoofing Clues}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
  doi = {10.1109/cvprw63382.2024.00105},
}
Figure