FaceShield: Explainable Face Anti-Spoofing with Multimodal Large Language Models
Hongyang Wang, Yichen Shi, Zhuofu Tao, Yuhao Gao, Liepiao Zhang, Xun Lin, Jun Feng, Xiaochen Yuan, Zitong Yu, Xiaochun Cao
TL;DR
FaceShield proposes an explainable face anti-spoofing framework built on a multitask multimodal large language model. By introducing Spoof-Aware Vision Perception (SAVP) and Prompt-Guided Vision Token Masking (PVTM), it extends FAS to four tasks—coarse-grained and fine-grained classification, reasoning, and attack localization—and leverages two dedicated datasets FaceShield-pre10K and FaceShield-sft45K for pretraining and supervised fine-tuning. Across rigorous intra- and cross-dataset evaluations, FaceShield consistently outperforms traditional FAS models and general MLLMs, while providing interpretable reasoning and precise localization of spoof regions. The work delivers a data-generation pipeline, a specialized FAS-focused MLLM, and comprehensive ablation analyses, with resources to be released to foster further progress in explainable FAS.
Abstract
Face anti-spoofing (FAS) is crucial for protecting facial recognition systems from presentation attacks. Previous methods approached this task as a classification problem, lacking interpretability and reasoning behind the predicted results. Recently, multimodal large language models (MLLMs) have shown strong capabilities in perception, reasoning, and decision-making in visual tasks. However, there is currently no universal and comprehensive MLLM and dataset specifically designed for FAS task. To address this gap, we propose FaceShield, a MLLM for FAS, along with the corresponding pre-training and supervised fine-tuning (SFT) datasets, FaceShield-pre10K and FaceShield-sft45K. FaceShield is capable of determining the authenticity of faces, identifying types of spoofing attacks, providing reasoning for its judgments, and detecting attack areas. Specifically, we employ spoof-aware vision perception (SAVP) that incorporates both the original image and auxiliary information based on prior knowledge. We then use an prompt-guided vision token masking (PVTM) strategy to random mask vision tokens, thereby improving the model's generalization ability. We conducted extensive experiments on three benchmark datasets, demonstrating that FaceShield significantly outperforms previous deep learning models and general MLLMs on four FAS tasks, i.e., coarse-grained classification, fine-grained classification, reasoning, and attack localization. Our instruction datasets, protocols, and codes will be released at https://github.com/Why0912/FaceShield.
