Abstract
Face Presentation Attack Detection (PAD) is essential for securing biometric systems, yet most state-of-the-art models operate as "black boxes," providing little insight into their decision-making processes. This paper introduces XFace-PAD, the first framework designed to explain face anti-spoofing decisions through natural language. By integrating biometric feature extraction with a language generation module, XFace-PAD identifies specific spoofing characteristics—such as the texture of a silicone mask or the edges of a photo—providing semantic transparency. Experimental results demonstrate that a Vision Transformer (ViT) backbone combined with specialized semantic and discriminative losses achieves high detection accuracy (AUC 0.997) while generating coherent, human-readable explanations.
Introduction
Face Presentation Attack Detection (PAD) is a critical component in securing biometric authentication systems against various spoofing attempts, including printed photos, 3D masks, and sophisticated makeup. While deep learning models have achieved high accuracy in distinguishing "bona-fide" (real) faces from "presentation attacks" (spoofs), these models typically lack interpretability.
Standard Explainable AI (XAI) techniques in biometrics often rely on saliency maps (heatmaps), which highlight regions of interest but fail to provide semantic reasoning regarding what the model sees or why a specific choice was made. XFace-PAD addresses this gap by treating PAD explanation as a joint biometrics-NLP task, translating internal neural representations into descriptive natural language.
Methodology
The XFace-PAD framework utilizes a pipeline that converts visual biometric features into human-readable text. The architecture is built upon four key pillars:
1. Feature Extraction
The system employs a pre-trained PAD backbone to extract high-level features from input face images. The researchers evaluated two primary architectures: a ResNet-50 based MOCO-v1 and a Vision Transformer (ViT).
2. Language Generation (LG)
Extracted features are passed to a lightweight LSTM (Long Short-Term Memory) network. To prevent overfitting on the relatively small specialized dataset, the model utilizes pre-trained word embeddings rather than training them from scratch.
3. Optimization via Multi-Faceted Loss Functions
To ensure the generated text is both linguistically accurate and contextually relevant, the model is optimized using three distinct losses:
- Word-wise Cross Entropy ($L_{ww}$): The standard loss for matching specific vocabulary.
- Sentence Semantic Loss ($L_{ss}$): Utilizes BERT embeddings to ensure the overall meaning of the generated sentence matches the ground truth, even if the specific word choices vary.
- Sentence Discriminative Loss ($L_{disc}$): Employs a separate classifier to ensure the description is specific enough to distinguish between different attack types, such as differentiating a "plastic mask" from "printed paper."
4. Architectural Modeling
The study compared two graphical approaches: Model A, where prediction and explanation are treated as independent parallel tasks, and Model C, where the language generation is conditioned on the predicted PAD label.
Dataset and Annotation
Because no standard dataset existed for this task, the authors introduced a new annotated version of an existing RGB face dataset:
- Composition: 1,105 bona-fide samples and 924 presentation attack (PA) samples.
- Attack Categories: 9 types, including funny glasses, mannequins, opaque masks, silicone masks, and tattoos.
- Human Ground Truth: Each attack image was annotated five times by different humans to provide a diverse and robust set of natural language descriptions for training.
Results and Discussion
The experimental results highlight the effectiveness of combining visual transformers with semantic language modeling.
Performance Metrics
The ViT-based model achieved the highest performance, reaching an AUC of 0.997 for detection. It also outperformed other configurations across standard NLP metrics, including BLEU, METEOR, and ROUGE.
The Importance of Conditioning and Semantic Loss
The researchers found that Model C (Explanation of Prediction) significantly outperformed Model A. By informing the language model of the PAD classifier's decision, the generated text became more accurate and relevant. Furthermore, the inclusion of $L_{ss}$ and $L_{disc}$ consistently improved scores across all attack categories compared to using simple word-wise loss alone.
Qualitative Success
The model demonstrated a sophisticated ability to describe complex spoofs. For instance, it successfully generated descriptions such as "there is a shiny plastic mask with holes around eyes and blue eye shadows" for intricate spoofing attempts. However, a correlation was noted between classification confidence and explanation quality; for challenging attacks like "makeup," where the PAD model was less certain, the generated explanations were also less reliable.
Conclusion and Future Work
XFace-PAD represents a significant advancement in making biometric systems more transparent and trustworthy. By providing natural language justifications for its decisions, the system allows for better debugging and user assurance.
While the current model uses a frozen backbone and a lightweight LSTM due to dataset constraints, future work will explore joint end-to-end training of both the PAD and LG modules. Additionally, the researchers aim to test the framework's generalization capabilities in "zero-shot" scenarios involving attack types not seen during the training phase.
Summary updated