Uncertainty-Aware Physically-Guided Proxy Tasks for Unseen Domain Face Anti-spoofing

Junru Wu, Xiang Yu, Buyu Liu, Zhangyang Wang, Manmohan ChandrakerarXiv 2020

Abstract

Face anti-spoofing (FAS) models often struggle with domain generalization, failing when encountering novel spoofing attacks not present in their training data. This paper proposes a robust framework that shifts the focus from binary classification to physically-guided "proxy tasks"—depth estimation, material classification, and reflection detection. By integrating these tasks with an uncertainty-aware attention module, the model learns invariant physical properties of genuine faces. Experimental results on major benchmarks demonstrate state-of-the-art performance, particularly in unseen domain scenarios.

Introduction

Face recognition systems are increasingly targeted by presentation attacks, including printed photos, digital screens, and 3D masks. A critical challenge in FAS is the "domain gap": models trained on specific artifacts often fail to generalize to new environments or attack types. Current approaches frequently overfit to visual artifacts of the training set rather than learning the intrinsic characteristics of a live human face. This work aims to bridge this gap by anchoring the model on universal physical principles that distinguish real faces from spoofs.

Methodology

The proposed framework utilizes a multi-task learning architecture centered on a shared feature extractor. The system is designed to recognize "realness" through several integrated components.

Physically-Guided Proxy Tasks

Instead of relying solely on a liveness score, the model is trained to solve auxiliary problems that capture the physical essence of a face:

  • Depth Estimation: Exploits the 3D geometry of genuine faces versus the flatness of many spoofs.
  • Material Classification: Distinguishes human skin from materials like paper, glass, or plastic.
  • Reflection Detection: Identifies abnormal specular reflections typical of spoofing surfaces.

Uncertainty-Aware Attention

To handle varying reliability across different inputs, the authors introduce an uncertainty-aware attention mechanism. This module estimates the variance (uncertainty) of each proxy task. If a specific cue (e.g., depth) is deemed unreliable for a given input, the system automatically down-weights its contribution to the final liveness prediction.

Overview of the proposed multi-task framework, including pretext, proxy, and main tasks with uncertainty-aware attention.

Attribute-Assisted Triplet Mining

To prevent the model from conflating liveness with identity or facial attributes (e.g., glasses), triplet loss is employed to disentangle liveness-specific features from irrelevant facial variations, ensuring a more robust representation.

Experiments and Results

The model was evaluated using both intra-dataset and inter-dataset protocols across major FAS benchmarks, including CASIA-MFSD, Replay-Attack, MSU-MFSD, Oulu-NPU, and SiW.

Quantitative Performance

The proposed method achieved significant gains, particularly on the SiW dataset. As shown in the performance table, the full model (Ours L+D+R+M+A) consistently outperformed existing state-of-the-art methods across various protocols.

Quantitative comparison of the proposed method against baselines on the SiW dataset across three protocols.

On SiW Protocol 1, the model achieved an Average Classification Error Rate (ACER) of 0.36%, a substantial improvement over the previous best of 1.05%. Ablation studies confirmed that each component—depth, reflection, material, and uncertainty-aware attention—contributes incrementally to the final performance.

Discussion and Conclusion

By anchoring liveness detection in invariant physical properties, this framework successfully addresses the domain generalization problem in face anti-spoofing. The inclusion of uncertainty modeling provides a "safety valve," making the system more reliable in the face of ambiguous inputs.

While highly effective, the current single-frame approach does not yet utilize temporal cues like eye blinking or pulse detection, which could further enhance security against sophisticated video attacks. Additionally, the computational cost of running multiple proxy heads remains a consideration for real-time mobile deployment. Future work will explore more efficient architectures and the integration of temporal information.

Summary updated

BibTeX
@misc{wu2020uncertainty,
  author = {Junru Wu and Xiang Yu and Buyu Liu and Zhangyang Wang and Manmohan Chandraker},
  title = {{Uncertainty-Aware Physically-Guided Proxy Tasks for Unseen Domain Face Anti-spoofing}},
  year = {2020},
  eprint = {2011.14054},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.14054},
}
Figure