Rehearsal-Free Domain Continual Face Anti-Spoofing: Generalize More and Forget Less

Rizhao Cai, Yawen Cui, Zhi Li, Zitong Yu, Haoliang Li, Yongjian Hu, Alex C. Kot

Introduction

Face Anti-Spoofing (FAS) is a critical security component designed to protect face recognition systems from presentation attacks, such as high-resolution photos, video replays, or sophisticated 3D masks. While modern FAS models perform well in controlled environments, they often struggle with "domain shift"—performance degradation when encountering new lighting conditions, camera sensors, or novel spoofing materials.

To address this, models must undergo Continual Learning (CL) to adapt to new environments. However, standard CL faces two significant challenges: catastrophic forgetting, where the model loses its ability to recognize previous domains while learning new ones, and privacy/storage constraints, which prevent the use of "replay buffers" (storing sensitive face data from previous sessions). This paper introduces a novel, rehearsal-free Domain Continual Learning (DCL) framework that enables models to generalize to new domains while preserving past knowledge without storing any raw images.

Methodology

The proposed framework leverages a Vision Transformer (ViT) backbone and introduces two primary innovations designed to enhance texture awareness and prevent forgetting.

1. Dynamic Central Difference Convolutional Adapter (DCDCA)

Rather than fine-tuning the entire ViT—which is computationally expensive and prone to forgetting—the researchers utilize parameter-efficient adapters. The Dynamic Central Difference Convolutional Adapter (DCDCA) integrates Central Difference Convolution (CDC) into the adapter structure. Unlike standard linear layers, CDC is specifically designed to capture fine-grained local textures and gradient patterns, which are essential for distinguishing the subtle differences between real human skin and spoofing materials. The "dynamic" nature of the adapter allows the model to adaptively weight these texture cues based on the specific characteristics of the incoming domain.

2. Proxy Prototype Contrastive Regularization (PPCR)

To eliminate the need for a replay buffer, the authors propose Proxy Prototype Contrastive Regularization (PPCR). This method treats the weights of the model's classifier as "proxies" or prototypes that represent the distribution of real and spoof samples from previously seen domains. During the training of a new domain, a contrastive loss is applied to ensure that new features remain aligned with these established prototypes. This anchors the model’s knowledge, effectively preventing the feature space from shifting so drastically that it forgets how to classify older domains.

Experimental Setup

The study evaluated the framework using a comprehensive suite of 15 public datasets, including SiW, Celeba-Spoof, HiFiMask, and OULU-NPU. The researchers established two rigorous protocols:

  • Protocol-1: Learning domains in the chronological order of their release.
  • Protocol-2: Learning domains in reverse chronological order.

The experiments focused on a "low-shot" scenario, where the model is updated using as few as 50 frames per domain, simulating real-world constraints where data for a new deployment site might be scarce.

Key Insights and Results

The proposed ViT-DCDCA + PPCR method demonstrated significant improvements over baseline models like ResNet18 and standard ViT-Adapters:

  • Superior Generalization: On Protocol-1, the method achieved a 78.70% mean Average Generalization AUC (mAGA). This significantly outperformed ResNet18 (58.29%) and vanilla ViT-Adapters (58.72%), suggesting that learning the "essence" of a spoof through texture-aware adapters leads to better performance on unseen attacks.
  • Mitigating Catastrophic Forgetting: Using the mABT metric (which measures performance drop on previous tasks), the framework remained stable across 10 sequential learning sessions. While standard fine-tuning led to rapid performance degradation on old domains, the PPCR mechanism successfully anchored the model's memory.
  • Efficiency and Privacy: By updating only the small adapter modules and the classification head, the method is highly parameter-efficient. Most importantly, it achieves these results without storing any previous user data, making it a privacy-preserving solution for sensitive biometric applications.

Conclusion

This research presents a significant step forward for Face Anti-Spoofing in dynamic, real-world environments. By combining texture-aware adapters with proxy-based regularization, the framework achieves a balance between learning new information and retaining the old. The rehearsal-free nature of the system addresses the critical intersection of security, performance, and data privacy, providing a viable path for deploying FAS models that can evolve alongside emerging spoofing threats.

Summary updated

BibTeX
@inproceedings{cai2023rehearsal,
  author = {Rizhao Cai and Yawen Cui and Zhi Li and Zitong Yu and Haoliang Li and Yongjian Hu and Alex C. Kot},
  title = {{Rehearsal-Free Domain Continual Face Anti-Spoofing: Generalize More and Forget Less}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure