Federated Test-Time Adaptive Face Presentation Attack Detection with Dual-Phase Privacy Preservation

Rui Shao, Bochao Zhang, Pong C. Yuen, Vishal M. Patel

TL;DR

This paper introduces a novel framework for Face Presentation Attack Detection (fPAD) that achieves high generalization across different environments and attack types without ever sharing private user or institutional data. By combining Federated Learning during training with unsupervised Test-Time Adaptation during deployment, the authors create a "dual-phase" privacy shield that significantly outperforms existing state-of-the-art anti-spoofing models.

What Problem Does This Paper Address?

Face recognition systems are everywhere, but they are surprisingly vulnerable to "presentation attacks"—think high-resolution prints, video replays, or even sophisticated 3D masks. To build a robust fPAD (anti-spoofing) model, you need a massive, diverse dataset.

However, two major hurdles exist:

  1. The Privacy Bottleneck: Data centers (like research labs or banks) cannot legally or ethically share their raw face data with each other.
  2. The Domain Gap: A model trained in a lab often fails in the "wild" because of different lighting, camera sensors, or entirely new types of spoofing attacks it hasn't seen before.

Current solutions usually force a choice between privacy and performance. This paper aims to provide both.

Methods

The authors propose a two-pronged approach called Federated Test-Time Adaptive fPAD:

  • Phase 1: Federated Learning (Training): Instead of pooling data into one giant bucket, multiple "data centers" train their own local models. They only send model updates (weights) to a central server. The server aggregates these updates into a "global model" and sends it back. This allows the model to learn from the diversity of all data centers without any raw images ever leaving their home servers.
  • Phase 2: Test-Time Adaptation (Testing): Once the model is on a user's device (like a smartphone), it encounters a "domain gap." To fix this, the authors use Entropy Minimization. When the model sees a new, unlabeled test image, it adjusts its own internal parameters (specifically the affine parameters in Batch Normalization layers) to make its prediction more "certain." This is an unsupervised process—it doesn't need to know if the face is real or fake to adapt; it just needs to align itself with the new data distribution.

Datasets

The researchers evaluated their framework using seven diverse fPAD datasets to simulate real-world variety:

  • 2D Attack Datasets: Oulu-NPU (O), CASIA-MFSD (C), Idiap Replay-Attack (I), MSU-MFSD (M), and SiW (S). These include print and video-replay attacks.
  • 3D Mask Datasets: 3DMAD (3) and HKBUMARsV2 (H). These involve sophisticated 3D face reconstructions.

Key Insights and Ideas

  • The "Better Starting Point" Synergy: Test-time adaptation is notoriously sensitive to initial settings. The authors found that Federated Learning provides a much more robust "global" starting point than a model trained on a single dataset, making the subsequent test-time adaptation much more effective.
  • Unsupervised Refinement: The use of Shannon entropy as a loss function during testing is clever. By minimizing entropy, the model essentially says, "I don't know if this is a spoof yet, but I'm going to adjust my internal filters so that my final decision is as confident as possible."
  • Dual-Phase Privacy: Privacy isn't just for the training data. By performing adaptation locally on the user's device, the user's personal face data never needs to be uploaded to a cloud for "re-training."

Key Results

The proposed method consistently outperformed "Single" (models trained on one source), "Fused" (simple averaging), and "FedPAD" (standard federated learning).

  • Generalization: In a cross-dataset test (training on O, C, and I; testing on M), the proposed method achieved a Half Total Error Rate (HTER) of 14.70%, compared to 19.45% for standard Federated Learning and over 27% for single-source models.
  • 3D Mask Robustness: When adapting to 3D mask attacks (which are very different from 2D prints), the framework improved the HTER by 17.73% compared to the previous state-of-the-art federated approach.
  • AUC Improvements: The Area Under the Curve (AUC)—a measure of overall diagnostic accuracy—reached as high as 90.57% in challenging cross-domain scenarios.

Limitations and Future Work

While the results are promising, the authors note a few areas for growth:

  • Imbalanced Data: Federated learning can struggle when one data center has significantly more (or different) data than others. Future work will look into "FedMix" or specialized loss functions to handle this imbalance.
  • Computational Overhead: Performing adaptation on a mobile device requires extra computation per frame. Optimizing this for real-time performance on low-power hardware remains a practical challenge.
  • Data Augmentation: The authors suggest that integrating advanced data augmentation (like AugMix) could further harden the model against extreme environmental variations.

Summary updated

BibTeX
@inproceedings{shao2021federated,
  author = {Rui Shao and Bochao Zhang and Pong C. Yuen and Vishal M. Patel},
  title = {{Federated Test-Time Adaptive Face Presentation Attack Detection with Dual-Phase Privacy Preservation}},
  booktitle = {FG},
  year = {2021},
  doi = {10.1109/fg52635.2021.9666952},
}

Loading related content...

Figure