Domain Generalization for Face Anti-Spoofing via Content-Aware Composite Prompt Engineering
Jiabao Guo, Ajian Liu, Yunfeng Diao, Jin Zhang, Hui Ma, Bo Zhao, Richang Hong, Meng Wang
Hefei University of Technology · Chinese Academy of Sciences
Key points
From the paper's conclusion- 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Grounding-Aware Judge Reward Reinforcement Learning for Out-of-Domain Face Anti-SpoofingarXiv · 2026
- Context-Predictive Low-Rank Adaptation for Face Presentation Attack DetectionarXiv · 2026
- Beyond Shortcut Learning: Hierarchical Spatial Prototype Regularization for Face Forgery DetectionarXiv · 2026
- Decoupled Representation Learning for Face Presentation Attack Detection under Smart Glass CapturearXiv · 2026
- DINOFAS: Bonafide-Centric Representation Learning for Face Anti-SpoofingarXiv · 2026
- KVeil: First-Place Solution to ECCV 2026 LifeGenIP Challenge on Unlearnable VideosarXiv · 2026