Abstract
Face Anti-Spoofing (FAS) is essential to secure face recognition systems and has been extensively studied in recent years. Although deep neural networks (DNNs) for the FAS task have achieved promising results in intra-dataset experiments with similar distributions of training and testing data, the DNNs' generalization ability is limited under the cross-domain scenarios with different distributions of training and testing data. To improve the generalization ability, recent hybrid methods have been explored to extract task-aware handcrafted features (e.g., Local Binary Pattern) as discriminative information for the input of DNNs. However, the handcrafted feature extraction relies on experts' domain knowledge, and how to choose appropriate handcrafted features is underexplored. To this end, we propose a learnable network to extract Meta Pattern (MP) in our learning-to-learn framework. By replacing handcrafted features with the MP, the discriminative information from MP is capable of learning a more generalized model. Moreover, we devise a two-stream network to hierarchically fuse the input RGB image and the extracted MP by using our proposed Hierarchical Fusion Module (HFM). We conduct comprehensive experiments and show that our MP outperforms the compared handcrafted features. Also, our proposed method with HFM and the MP can achieve state-of-the-art performance on two different domain generalization evaluation benchmarks.
Introduction
Face recognition systems are increasingly ubiquitous, yet they remain vulnerable to "presentation attacks" such as high-resolution photos, digital screen replays, or 3D masks. While deep neural networks (DNNs) excel at detecting these attacks when test data matches training distributions, they often struggle with domain shift. For instance, a model trained on high-quality indoor video may fail when encountering low-quality outdoor footage or varying screen reflections.
To address this, "hybrid methods" typically augment networks with handcrafted features like Local Binary Patterns (LBP) to focus on texture. However, these features are manually designed based on specific assumptions and may fail against unanticipated attack types. This research proposes a shift from handcrafted features to an automatically learned Meta Pattern (MP) to enhance generalization.
Methodology
The proposed framework introduces a two-pronged approach to robust face anti-spoofing:
- Meta Pattern (MP) Extractor: Instead of fixed algorithms, a shallow convolutional neural network ($\Phi$) extracts a "Meta Pattern." This extractor is trained via bi-level optimization (learning-to-learn). By splitting training data to simulate unseen domains, the MP extractor is optimized to provide features that specifically help the main classifier generalize to new environments.
- Hierarchical Fusion Network (HFN): The system employs a two-stream architecture where one stream processes the raw RGB image and the other processes the extracted Meta Pattern.
- Hierarchical Fusion Module (HFM): Rather than simple late-stage concatenation, the HFM progressively fuses RGB and MP features across multiple network levels. This ensures that both fine-grained texture details (like moiré patterns) and high-level semantic information are effectively integrated.
Experimental Evaluation
The study utilized five major FAS benchmark datasets: CASIA-FASD (C), MSU-MFSD (M), IDIAP REPLAY-ATTACK (I), OULU-NPU (O), and ROSE-YOUTU (Y). These cover a wide range of resolutions, lighting conditions, and attack types (e.g., warped photos, paper masks, and digital replays).
Performance was evaluated using the MICO and MICY protocols, which test cross-domain generalization by training on three datasets and testing on a completely unseen fourth dataset.
Key Results and Insights
The proposed HFN+MP method achieved state-of-the-art results on the MICO benchmark:
- Superior Generalization: In the "O&M&I to C" scenario, the model achieved a Half Total Error Rate (HTER) of 9.11%, significantly outperforming previous methods like RFMetaFAS (20.27%) and SSDG-R (10.44%).
- Learned vs. Handcrafted: Replacing the Meta Pattern with traditional LBP features increased the error rate from 5.24% to 8.31% in the "C&I&O to M" test, demonstrating that the learned MP provides more discriminative information than expert-designed descriptors.
- Robustness: The model maintained strong performance even when the number of source training domains was limited, and the HFM proved critical in preventing the loss of fine-grained spoofing artifacts in deeper network layers.
Conclusion
By replacing traditional handcrafted features with a learnable Meta Pattern and employing a hierarchical fusion strategy, this framework significantly improves the generalization of face anti-spoofing systems. Future work may explore more complex extractor architectures and the application of Meta Patterns to other domains, such as DeepFake detection.
Summary updated