[Paper Review] Learning Generalizable and Identity-Discriminative Representations for Face Anti-Spoofing
This paper proposes GFA-CNN, a multi-task deep learning framework that jointly performs face anti-spoofing and face recognition by introducing a Total Pairwise Confusion (TPC) loss to reduce overfitting to dataset-specific spoof patterns and a Fast Domain Adaptation (FDA) module to mitigate domain shift. The model achieves state-of-the-art performance in cross-dataset generalization for anti-spoofing while preserving strong face recognition accuracy.
Face anti-spoofing (a.k.a presentation attack detection) has drawn growing attention due to the high-security demand in face authentication systems. Existing CNN-based approaches usually well recognize the spoofing faces when training and testing spoofing samples display similar patterns, but their performance would drop drastically on testing spoofing faces of unseen scenes. In this paper, we try to boost the generalizability and applicability of these methods by designing a CNN model with two major novelties. First, we propose a simple yet effective Total Pairwise Confusion (TPC) loss for CNN training, which enhances the generalizability of the learned Presentation Attack (PA) representations. Secondly, we incorporate a Fast Domain Adaptation (FDA) component into the CNN model to alleviate negative effects brought by domain changes. Besides, our proposed model, which is named Generalizable Face Authentication CNN (GFA-CNN), works in a multi-task manner, performing face anti-spoofing and face recognition simultaneously. Experimental results show that GFA-CNN outperforms previous face anti-spoofing approaches and also well preserves the identity information of input face images.
Motivation & Objective
- To address the poor generalizability of CNN-based face anti-spoofing models when tested on unseen spoofing patterns and environments.
- To reduce overfitting to dataset-specific spoof patterns by balancing the contribution of all spoof patterns during training.
- To mitigate domain shift caused by variations in illumination, camera type, and spoofing medium by aligning feature distributions across domains.
- To enable a unified deep learning framework that simultaneously performs face anti-spoofing and face recognition with shared feature learning.
- To improve robustness of PA representations across diverse real-world deployment scenarios without sacrificing identity recognition performance.
Proposed method
- The TPC loss is designed to minimize confusion between all pairs of spoof patterns, encouraging the model to learn balanced, generalizable representations rather than overfitting to dominant patterns.
- The FDA module is integrated into the network to align the feature distributions of source and target domain samples, reducing domain shift in the feature space.
- The model is trained in a multi-task fashion, sharing convolutional layers between the face anti-spoofing and face recognition branches to enable parameter efficiency and feature sharing.
- The anti-spoofing branch uses TPC loss and Anti-loss to distinguish live from spoofed faces, while the recognition branch uses Recog-loss to preserve identity information.
- The framework processes domain-adapted images through the anti-spoofing branch and raw cropped faces through the recognition branch, enabling joint optimization.
- The architecture uses shared backbone features with two parallel branches, allowing simultaneous optimization of both tasks without significant computational overhead.
Experimental results
Research questions
- RQ1Can a loss function that balances pairwise confusion between all spoof patterns improve the generalizability of face anti-spoofing models?
- RQ2How effective is Fast Domain Adaptation in reducing distribution discrepancy between samples from different domains in face anti-spoofing?
- RQ3To what extent does multi-task learning with face recognition improve the robustness of anti-spoofing representations to spoofing artifacts?
- RQ4Does the joint training of anti-spoofing and recognition degrade performance on either task, especially in cross-dataset evaluation?
- RQ5Can a unified model maintain high face recognition accuracy while achieving state-of-the-art anti-spoofing performance across diverse test environments?
Key findings
- GFA-CNN achieves the lowest HTER (Equal Error Rate) in cross-dataset testing on CASIA-FASD → Replay-Attack, MFSD → Replay-Attack, and Replay-Attack → MFSD, with a relative 8.3% improvement over the best prior method on the latter.
- On the Replay-Attack → CASIA-FASD cross-test, GFA-CNN shows a performance drop due to resolution mismatch, indicating that FDA can cause quality degradation when source images are significantly higher resolution than target images.
- The multi-task training setup leads to a slight 2.5% drop in intra-dataset anti-spoofing performance on MSU-MFSD but improves training stability and reduces overfitting compared to single-task training.
- On LFW, GFA-CNN achieves 97.1% face verification accuracy, comparable to VGG-16, while on SiW it maintains 4.5% accuracy drop compared to VGG-16’s 14% drop, indicating better robustness to spoofing artifacts.
- The face recognition performance of GFA-CNN is less sensitive to spoofing patterns due to shared feature learning, demonstrating mutual enhancement between the two tasks.
- The TPC loss effectively reduces overfitting to dominant spoof patterns, as evidenced by improved generalization across diverse test domains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.