# Learning Unknown Spoof Prompts for Generalized Face Anti-Spoofing Using Only Real Face Images

arXiv: https://arxiv.org/abs/2505.03611 · HTML: https://mlsanity.com/paper/2505.03611/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Builds on 26 of its 70 references that are in the map.
- First posted on arXiv 6 May 2025.

## Builds on (most cited first, 26 of 26)

- [Learning to Prompt for Vision-Language Models](https://mlsanity.com/paper/2109.01134/) (2021)
- [Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Networks](https://mlsanity.com/paper/1604.02878/) (2016)
- [Vision-Language Models for Vision Tasks: A Survey](https://mlsanity.com/paper/2304.00685/) (2023)
- [Generalizing to Unseen Domains: A Survey on Domain Generalization](https://mlsanity.com/paper/2103.03097/) (2021)
- [Unified Vision and Language Prompt Learning](https://mlsanity.com/paper/2210.07225/) (2022)
- [Single-Side Domain Generalization for Face Anti-Spoofing](https://mlsanity.com/paper/2004.14043/) (2020)
- [NAS-FAS: Static-Dynamic Central Difference Network Search for Face Anti-Spoofing](https://mlsanity.com/paper/2011.02062/) (2020)
- [Regularized Fine-grained Meta Face Anti-spoofing](https://mlsanity.com/paper/1911.10771/) (2019)
- [face anti-spoofing based on color texture analysis](https://mlsanity.com/paper/1511.06316/) (2015)
- [Biometric Face Presentation Attack Detection with Multi-Channel Convolutional Neural Network](https://mlsanity.com/paper/1909.08848/) (2019)
- [Rethinking Domain Generalization for Face Anti-spoofing: Separability and Alignment](https://mlsanity.com/paper/2303.13662/) (2023)
- [FLIP: Cross-domain Face Anti-spoofing with Language Guidance](https://mlsanity.com/paper/2309.16649/) (2023)
- [Multi-domain Learning for Updating Face Anti-spoofing Models](https://mlsanity.com/paper/2208.11148/) (2022)
- [One-Class Convolutional Neural Network](https://mlsanity.com/paper/1901.08688/) (2019)
- [Adaptive Mixture of Experts Learning for Generalizable Face Anti-Spoofing](https://mlsanity.com/paper/2207.09868/) (2022)
- [Anomaly Detection-Based Unknown Face Presentation Attack Detection](https://mlsanity.com/paper/2007.05856/) (2020)
- [Towards Data-Centric Face Anti-Spoofing: Improving Cross-domain Generalization via Physics-based Data Synthesis](https://mlsanity.com/paper/2409.03501/) (2024)
- [S-Adapter: Generalizing Vision Transformer for Face Anti-Spoofing with Statistical Tokens](https://mlsanity.com/paper/2309.04038/) (2023)
- [Interpretable Face Anti-Spoofing: Enhancing Generalization with Multimodal Large Language Models](https://mlsanity.com/paper/2501.01720/) (2025)
- [DiffFAS: Face Anti-Spoofing via Generative Diffusion Models](https://mlsanity.com/paper/2409.08572/) (2024)
- [Domain Generalization via Ensemble Stacking for Face Presentation Attack Detection](https://mlsanity.com/paper/2301.02145/) (2023)
- [Generalized Face Anti-spoofing via Finer Domain Partition and Disentangling Liveness-irrelevant Factors](https://mlsanity.com/paper/2407.08243/) (2024)
- [Confidence Aware Learning for Reliable Face Anti-spoofing](https://mlsanity.com/paper/2411.01263/) (2024)
- [SLIP: Spoof-Aware One-Class Face Anti-Spoofing with Language Image Pretraining](https://mlsanity.com/paper/2503.19982/) (2025)
- [Unknown Face Presentation Attack Detection via Localised Learning of Multiple Kernels](https://mlsanity.com/paper/2204.10675/) (2022)
- [Use of in-the-wild images for anomaly detection in face anti-spoofing](https://mlsanity.com/paper/2006.10626/) (2020)

## Built on by (most cited first, 1 of 1)

- [Primitive-Driven Compositional Forensic Visual Prompting for Open-World Face Anti-Spoofing](https://mlsanity.com/paper/2608.17351/) (2026)

## Abstract (arXiv)

Face anti-spoofing is a critical technology for ensuring the security of face recognition systems. However, its ability to generalize across diverse scenarios remains a significant challenge. In this paper, we attribute the limited generalization ability to two key factors: covariate shift, which arises from external data collection variations, and semantic shift, which results from substantial differences in emerging attack types. To address both challenges, we propose a novel approach for learning unknown spoof prompts, relying solely on real face images from a single source domain. Our method generates textual prompts for real faces and potential unknown spoof attacks by leveraging the general knowledge embedded in vision-language models, thereby enhancing the model's ability to generalize to unseen target domains. Specifically, we introduce a diverse spoof prompt optimization framework to learn effective prompts. This framework constrains unknown spoof prompts within a relaxed prior knowledge space while maximizing their distance from real face images. Moreover, it enforces semantic independence among different spoof prompts to capture a broad range of spoof patterns. Experimental results on nine datasets demonstrate that the learned prompts effectively transfer the knowledge of vision-language models, enabling state-of-the-art generalization ability against diverse unknown attack types across unseen target domains without using any spoof face images.
