Domain Generalization for Face Anti-Spoofing via Content-Aware Composite Prompt Engineering
The challenge of Domain Generalization (DG) in Face Anti-Spoofing (FAS) is the significant interference of domain-specific signals on subtle spoofing clues. Recently, some CLIP-based algorithms have been developed to alleviate this interference by adjusting the weights of visual classifiers. How-ever, our analysis of this class-wise prompt engineering suffers from two shortcomings for DG FAS: (1) The categories of facial categories, such as real or spoof, have no semantics for the CLIP model, making it difficult to learn accurate category descriptions. (2) A single form of prompt cannot portray the various types of spoofing. In this work, instead of class-wise prompts, we propose a novel Content-aware Composite Prompt Engineering (CCPE) that generates instance-wise composite prompts, including both fixed template and learnable prompts. Specifically, our CCPE constructs content-aware prompts from two branches: (1) Inherent content prompt explicitly benefits from abundant transferred knowledge from the instruction-based Large Language Model (LLM). (2) Learnable content prompts implicitly extract the most informative visual content via Q-Former. Moreover, we design a Cross-Modal Guidance Module (CGM) that dynamically adjusts unimodal features for fusion to achieve better generalized FAS. Finally, our CCPE has been validated for its effectiveness in multiple cross-domain experiments and achieves state-of-the-art (SOTA) results.
Authors
- Yunfeng Diao (ORCID: https://orcid.org/0000-0002-9455-1510)
- Bo Zhao
- Richang Hong (ORCID: https://orcid.org/0000-0001-5461-3986)
- Hui Ma (ORCID: https://orcid.org/0000-0001-8359-5158)
- Meng Wang (ORCID: https://orcid.org/0000-0002-3094-7735)
- Jiabao Guo
- Jin Zhang (ORCID: https://orcid.org/0000-0003-2499-7709)
- Ajian Liu (ORCID: https://orcid.org/0000-0002-7788-9368)
Institutions
- Macau University of Science and Technology (MO)
- Hefei University of Technology (CN)
- Chinese Academy of Sciences (CN)
- Wuhan University (CN)
- Institute of Automation (CN)
- Taiyuan University of Science and Technology (CN)
- Taiyuan University of Technology (CN)
Publication Details
- Journal
- IEEE Transactions on Multimedia
- Published
- 2025-10-14
- DOI
- https://doi.org/10.1109/tmm.2025.3618575
- Citations
- 7
- Primary Topic
- Biometric Identification and Security
- Type
- article
- Field-Weighted Citation Impact
- 10.40