Adaptive Normalized Representation Learning for Generalizable Face Anti-Spoofing

Shubao Liu, Ke-Yue Zhang, Taiping Yao, Mingwei Bi, Shouhong Ding, Jilin Li, Feiyue Huang, Lizhuang Ma

Introduction

Face Anti-Spoofing (FAS) is a critical security component designed to distinguish between live faces and presentation attacks, such as printed photos, video replays, or 3D masks. While deep learning models have achieved high accuracy on specific datasets, they often struggle with generalization. This "domain gap" arises when models overfit to specific environmental factors like lighting, camera sensors, or background styles present in the training data, leading to poor performance on unseen "target" domains.

A fundamental challenge in FAS is balancing feature discriminability with domain invariance. Traditional models rely heavily on Batch Normalization (BN) or Instance Normalization (IN). BN is effective at capturing the fine-grained textures necessary to identify spoofs but is susceptible to domain-specific styles. Conversely, IN excels at removing style bias but can inadvertently discard discriminative information.

Conceptual comparison of feature distributions for BN and IN models, illustrating the trade-off between domain invariance and class separability.

Methodology: The ANRL Framework

To address these limitations, researchers from Tencent Youtu Lab and East China Normal University proposed Adaptive Normalized Representation Learning (ANRL). This framework adaptively combines BN and IN to extract domain-agnostic yet highly discriminative features.

Adaptive Feature Normalization Module (AFNM)

The core of ANRL is the AFNM. Instead of applying a fixed normalization strategy, the module computes both BN and IN features for each input. A lightweight sub-network then predicts a sample-specific balance factor ($\alpha$), which dynamically weights the contribution of each normalization type. This allows the model to prioritize "de-styling" (IN) or "detail preservation" (BN) based on the specific characteristics of the input image.

Dual Calibrated Constraints (DCC)

To guide the AFNM, the authors introduced two specialized loss functions:

  • Inter-Domain Compatible (IDC) Loss: This loss encourages the model to align features from different source domains while preventing it from clustering samples based on their dataset origin.
  • Inter-Class Separable (ICS) Loss: This ensures that the boundary between real and fake faces remains sharp, tightening the clusters of real faces and pushing various spoofing attacks away.
The complete ANRL architecture, showing the integration of the AFNM, DCC, and the meta-learning optimization process.

Meta-Learning Optimization

The framework is trained using a meta-learning strategy. By simulating domain shifts during training—treating a subset of source datasets as "pseudo-unseen" target domains—the model optimizes the AFNM parameters to maximize generalization performance.

Experimental Results and Insights

The ANRL framework was evaluated using a "leave-one-out" cross-dataset protocol across four major FAS datasets: OULU-NPU (O), CASIA-FASD (C), Idiap Replay-Attack (I), and MSU-MFSD (M).

  • Superior Generalization: ANRL consistently outperformed state-of-the-art (SOTA) methods. For instance, in the "O&C&I to M" task, ANRL achieved a Half Total Error Rate (HTER) of 10.83%, a significant improvement over the previous best of 13.89%.
  • Layer-Wise Adaptation: Analysis revealed that the model naturally prefers IN in shallower layers to filter out low-level style noise, while shifting toward BN in deeper layers to preserve high-level semantic features for classification.
  • Sample-Wise Flexibility: The adaptive $\alpha$ factor allows the model to handle varying levels of domain bias on a per-image basis, which is more effective than global alignment strategies.

Conclusion

ANRL represents a significant step forward in generalizable face anti-spoofing. By moving beyond static normalization and global domain alignment, the framework learns to extract features that are both robust to environmental changes and highly effective at spotting presentation attacks. Future work may explore the integration of other normalization techniques and further optimization for deployment on resource-constrained edge devices.

Summary updated

BibTeX
@inproceedings{liu2021adaptive,
  author = {Shubao Liu and Ke-Yue Zhang and Taiping Yao and Mingwei Bi and Shouhong Ding and Jilin Li and Feiyue Huang and Lizhuang Ma},
  title = {{Adaptive Normalized Representation Learning for Generalizable Face Anti-Spoofing}},
  booktitle = {ACM Multimedia},
  year = {2021},
  url = {https://openreview.net/forum?id=9Xym5vXGvOI},
}
Figure