Spoofing-aware Prompt Learning for Unified Physical-Digital Facial Attack Detection
Jiabao Guo, Yadian Wang, Hui Ma, Yuhao Fu, Ju Jia, Hui Liu, Shengeng Tang, Lechao Cheng, Yunfeng Diao, Ajian Liu
TL;DR
The paper tackles unified facial attack detection by introducing SPL-UAD, a spoofing-aware prompt learning framework that decouples optimization for physical and digital attacks within the CLIP prompt space. It introduces Spoofing Context Prompt Generation to produce attack-aware contexts and Cues-awareness Augmentation to mine hard samples, all with minimal parameter overhead. Evaluations on UniAttackDataPlus show competitive improvements in ACER and AUC, with ablations confirming the complementary benefits of SCPG and CAA. The approach offers a practical, transfer-friendly pathway toward robust biometric security across diverse sensors and unseen attacks.
Abstract
Real-world face recognition systems are vulnerable to both physical presentation attacks (PAs) and digital forgery attacks (DFs). We aim to achieve comprehensive protection of biometric data by implementing a unified physical-digital defense framework with advanced detection. Existing approaches primarily employ CLIP with regularization constraints to enhance model generalization across both tasks. However, these methods suffer from conflicting optimization directions between physical and digital attack detection under same category prompt spaces. To overcome this limitation, we propose a Spoofing-aware Prompt Learning for Unified Attack Detection (SPL-UAD) framework, which decouples optimization branches for physical and digital attacks in the prompt space. Specifically, we construct a learnable parallel prompt branch enhanced with adaptive Spoofing Context Prompt Generation, enabling independent control of optimization for each attack type. Furthermore, we design a Cues-awareness Augmentation that leverages the dual-prompt mechanism to generate challenging sample mining tasks on data, significantly enhancing the model's robustness against unseen attack types. Extensive experiments on the large-scale UniAttackDataPlus dataset demonstrate that the proposed method achieves significant performance improvements in unified attack detection tasks.
