Generalizable Representation Learning for Mixture Domain Face Anti-Spoofing

Zhihong Chen, Taiping Yao, Kekai Sheng, Shouhong Ding, Ying Tai, Jilin Li, Feiyue Huang, Xinyu Jin

Abstract

Face anti-spoofing (FAS) is essential for securing facial recognition systems against presentation attacks. However, existing domain generalization (DG) methods often struggle when explicit domain labels are unavailable or when predefined labels do not accurately reflect environmental variations. This paper presents Domain Dynamic Adjustment Meta-learning ($D^2AM$), a novel framework designed to handle "mixture" datasets. By iteratively clustering data into pseudo-domains and employing a meta-learning strategy, $D^2AM$ learns robust, domain-invariant representations. Experimental results on benchmark datasets demonstrate that $D^2AM$ significantly outperforms state-of-the-art methods, proving that model-generated pseudo-labels can be more effective than human-provided dataset labels for generalization.

Introduction

Face anti-spoofing serves as a critical gatekeeper, distinguishing live faces from spoofing attempts such as photos, video replays, or masks. While deep learning models achieve high accuracy on specific datasets, they often fail to generalize to unseen environments. This lack of Domain Generalization (DG) is a major hurdle for real-world deployment.

Traditional DG approaches typically assume that training data comes from distinct, labeled domains (e.g., specific datasets or camera setups). In practice, however, data is often a "mixture" where such labels are missing. Moreover, standard dataset labels may be suboptimal; environmental factors like lighting and background often cross dataset boundaries. To address this, we propose $D^2AM$, which moves away from static labels toward a dynamic, iterative discovery of domains.

Comparison between conventional DG methods and the proposed D2AM approach, which iteratively divides mixture domains for training.

Methodology: Domain Dynamic Adjustment Meta-learning

The $D^2AM$ framework consists of a two-stage iterative process: pseudo-domain assignment and meta-learning-based generalization.

1. Pseudo-Domain Assignment

Instead of relying on fixed labels, the model discovers environmental clusters within the mixture data.

  • Domain Feature Extraction: The model utilizes Instance Normalization (IN) statistics (mean and standard deviation) to capture the "style" or environmental signature of an image.
  • Domain Representation Learning Module (DRLM): This module explicitly decouples features into two paths: task-discriminative features ($F^+$) for spoof detection and domain-discriminative features ($F^-$) for environment identification.
  • Reverse Entropy Loss: To ensure that domain features ($F^-$) do not leak information about the anti-spoofing task, a "domain enhancement entropy loss" is applied, forcing these features to be uninformative for the primary task.
  • Clustering: K-means clustering is applied to the domain features to group images into $K$ pseudo-domains.

2. Meta-Learning for Generalization

With pseudo-domains assigned, the model employs a meta-learning strategy (similar to MAML) to simulate unseen domain scenarios. During each training step, the model "trains" on $K-1$ pseudo-domains and "tests" on the $K$-th domain. This forces the feature extractor to prioritize representations that are effective across diverse environments. Additionally, Maximum Mean Discrepancy (MMD) regularization is used to smooth the feature space and mitigate the impact of clustering outliers.

The detailed architecture of the D2AM framework, illustrating the DRLM and the iterative pseudo-domain assignment process.

Experimental Evaluation

The study evaluates $D^2AM$ using four standard FAS datasets: OULU-NPU (O), CASIA-FASD (C), Idiap Replay-Attack (I), and MSU-MFSD (M). In a "leave-one-out" cross-dataset protocol, three datasets are pooled into a label-free mixture for training, while the fourth serves as the unseen test domain.

Key Results

$D^2AM$ consistently outperformed state-of-the-art (SOTA) methods across multiple benchmarks:

  • Cross-Dataset Performance: In the "O&C&M to I" task, $D^2AM$ achieved a Half Total Error Rate (HTER) of 15.43%, a significant improvement over the previous SOTA (RFM) at 17.30%.
  • Discriminative Power: The Area Under Curve (AUC) reached 91.22% in the same task, indicating high reliability in distinguishing spoofs from real faces.
  • Ablation Study: Experiments confirmed that pseudo-domain clustering is significantly more effective than random data division, validating the model's ability to identify meaningful environmental patterns.

Discussion and Conclusion

A core insight of this work is that pseudo-labels generated by the model can outperform human-provided dataset labels. By allowing the model to define domains based on intrinsic environmental features (like lighting or sensor noise), the training process becomes more robust. The explicit decoupling of task and domain features further prevents the model from overfitting to background noise.

While $D^2AM$ shows great promise, future work could address the need to pre-define the number of clusters ($K$) and the computational overhead associated with iterative meta-learning. Overall, $D^2AM$ provides a powerful framework for generalizable representation learning in complex, unlabeled data environments.

Summary updated

BibTeX
@inproceedings{chen2021generalizable,
  author = {Zhihong Chen and Taiping Yao and Kekai Sheng and Shouhong Ding and Ying Tai and Jilin Li and Feiyue Huang and Xinyu Jin},
  title = {{Generalizable Representation Learning for Mixture Domain Face Anti-Spoofing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i2.16199},
}
Figure