Abstract
Face Anti-Spoofing (FAS) is critical for biometric security but often fails against unseen attack types. This paper introduces a prompt-learning framework that trains FAS models using only real face images. By leveraging pre-trained Vision-Language Models (VLMs) and LLM-generated priors, the model learns to extrapolate "unknown spoof" prompts, achieving state-of-the-art generalization without requiring expensive spoofing datasets.
Introduction
Face recognition systems are ubiquitous but vulnerable to presentation attacks such as photos, videos, or 3D masks. Traditional Face Anti-Spoofing (FAS) methods rely on Domain Generalization (DG) which typically requires diverse datasets containing both real and spoofed faces. However, these models often struggle with Covariate Shift (environmental changes) and Semantic Shift (new, unseen attack types).
The core challenge is the "cat-and-mouse" nature of spoofing: attackers constantly develop new methods (e.g., high-fidelity silicone masks) that are not present in training data. This paper proposes a paradigm shift: defining the "real face" domain so precisely that any deviation is flagged as a spoof, even without prior exposure to specific attack vectors.
Methodology
The proposed framework utilizes a pre-trained CLIP (ViT-B/16) model. Instead of full fine-tuning, the authors employ Prompt Learning, keeping the image and text encoders frozen while optimizing learnable context vectors (prompts).
The architecture consists of four key modules:
- Spoof Prompt Contrastive Generation: The model learns a "real face" prompt aligned with real image embeddings while simultaneously pushing "unknown spoof" prompts away from the real face distribution.
- Prior Spoof Knowledge Guidance: To ensure learned spoof prompts are semantically meaningful, the model uses descriptions of common spoofing artifacts (e.g., "unnatural reflections") generated by an LLM (ChatGPT) as a relaxed prior.
- Spoof Prompt Diversity Refinement: To account for the broad nature of spoofs, the model learns multiple spoof prompts and enforces semantic independence between them, allowing it to capture diverse attack patterns.
- One-Class Discriminative Classification: A final cross-entropy loss ensures the model effectively distinguishes real faces from the inferred spoof space.
Experimental Evaluation
The method was evaluated across nine diverse datasets, including standard benchmarks (SiW-Mv2, WMCA) and specialized 3D mask datasets (3DMAD, HKBU-MARs). Using 27 distinct evaluation protocols—including "leave-one-attack-out" scenarios—the model demonstrated exceptional robustness.
Key Results
- State-of-the-Art Performance: The method achieved SOTA results in 23 out of 27 protocols.
- Significant Error Reduction: On the SiW-Mv2 dataset, the Average Classification Error Rate (ACER) was reduced by 27.98% compared to previous one-class methods.
- Zero-Shot Generalization: The model successfully identified 3D masks despite never seeing one during training, validating the "outward expansion" hypothesis where the model maps the territory surrounding real face embeddings.
Discussion and Conclusion
This research demonstrates that high-quality spoof detection is possible using only real face images. By leveraging the latent knowledge in VLMs and guiding the learning process with LLM-derived priors, the model overcomes the limitations of traditional data-hungry DG methods.
While the model shows some limitations with "obfuscation makeup"—which closely mimics real facial features—future work aims to incorporate physical properties like material reflectance to further enhance discrimination. This approach significantly lowers the barrier to deploying robust FAS systems in dynamic, real-world environments.
Summary updated