English

Leveraging Intermediate Features of Vision Transformer for Face Anti-Spoofing

Computer Vision and Pattern Recognition 2025-06-17 v2

Abstract

Face recognition systems are designed to be robust against changes in head pose, illumination, and blurring during image capture. If a malicious person presents a face photo of the registered user, they may bypass the authentication process illegally. Such spoofing attacks need to be detected before face recognition. In this paper, we propose a spoofing attack detection method based on Vision Transformer (ViT) to detect minute differences between live and spoofed face images. The proposed method utilizes the intermediate features of ViT, which have a good balance between local and global features that are important for spoofing attack detection, for calculating loss in training and score in inference. The proposed method also introduces two data augmentation methods: face anti-spoofing data augmentation and patch-wise data augmentation, to improve the accuracy of spoofing attack detection. We demonstrate the effectiveness of the proposed method through experiments using the OULU-NPU and SiW datasets. The project page is available at: https://gsisaoki.github.io/FAS-ViT-CVPRW/ .

Keywords

Cite

@article{arxiv.2505.24402,
  title  = {Leveraging Intermediate Features of Vision Transformer for Face Anti-Spoofing},
  author = {Mika Feng and Koichi Ito and Takafumi Aoki and Tetsushi Ohki and Masakatsu Nishigaki},
  journal= {arXiv preprint arXiv:2505.24402},
  year   = {2025}
}

Comments

2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW)