TL;DR
This paper introduces a rehearsal-free approach for Domain Continual Learning (DCL) in Face Anti-Spoofing (FAS), addressing critical privacy concerns by eliminating the need for data replay buffers. By combining a dynamic adapter for Vision Transformers with a proxy-based contrastive regularization, the method achieves superior generalization to new domains while significantly reducing the "catastrophic forgetting" of previously learned ones.
What Problem Does This Paper Address?
Face Anti-Spoofing (FAS) systems—designed to distinguish real faces from spoofing attacks like photos or masks—frequently encounter "domain shifts" caused by changes in lighting, camera hardware, or new types of attacks. To stay effective, these models must evolve through continual learning.
However, standard continual learning methods rely on rehearsal, where a subset of old data is stored in a buffer and re-played during new training sessions to prevent the model from forgetting. In the context of FAS, this is a major privacy risk: storing and transferring biometric facial data is often legally and ethically prohibited. The authors tackle the challenge of enabling FAS models to learn from new domains sequentially without keeping any old data, while simultaneously ensuring they can generalize to completely unseen domains.
Methods
The authors propose a framework based on Efficient Parameter Transfer Learning (EPTL) using a Vision Transformer (ViT) backbone. Instead of retraining the entire massive model, they keep the ViT backbone frozen and only update small, specialized "adapter" modules.
- Dynamic Central Difference Convolutional Adapter (DCDCA): Standard adapters typically use simple linear layers, which lack the spatial inductive bias needed to detect the fine-grained textures that distinguish real skin from spoofing materials. DCDCA integrates Central Difference Convolutions (CDC) into the adapter. Crucially, the ratio of central difference information is not fixed; it is a learnable, dynamic parameter that adapts to the specific characteristics of each new domain.
- Proxy Prototype Contrastive Regularization (PPCR): To prevent forgetting without storing old images, the authors use the weights of the model's final classification layer as "proxy prototypes" for previous domains. As shown in Figure 3, these proxies act as anchors in a contrastive learning framework. The model is trained to keep features of new data clustered near these existing prototypes, effectively "remembering" the distribution of past domains through the model's own weights.
Datasets
The study utilizes a massive benchmark of 15 public datasets to simulate realistic domain shifts, including IDIAP REPLAY-ATTACK, CASIA-FASD, OULU-NPU, and CASIA-SURF HiFiMask.
- Base Training: A large-scale base model is trained on a combination of SiW, CelebA-Spoof, and HiFiMask.
- Continual Learning: The model then encounters 10 additional datasets sequentially in a "low-shot" setting (only 50 real and 50 spoof samples per domain).
- Evaluation Protocols: The authors devised two protocols: Protocol-1 (datasets ordered by release year, old to new) and Protocol-2 (new to old).
- Unseen Generalization: The ROSE-YOUTU and CeFA datasets are reserved as completely unseen domains to test the model's ability to generalize beyond its training history.
Key Insights and Ideas
- Generalization is the Best Defense Against Forgetting: A core observation of the paper is that models with better unseen domain generalization naturally suffer less from catastrophic forgetting. By learning robust, domain-invariant features, the model creates a more stable foundation that is less likely to be overwritten by new, specific data.
- Texture Matters for FAS: The failure of vanilla ViT adapters highlighted that linear layers aren't enough for FAS. The success of DCDCA proves that injecting specific architectural biases (like central differences for texture) is vital when adapting general-purpose transformers to specialized computer vision tasks.
- Privacy-Preserving Memory: The use of classifier weights as "proxies" for data distributions is a clever workaround for privacy constraints. It allows the model to maintain a "memory" of past tasks without ever needing to store a single pixel of sensitive user data.
Key Results
The proposed ViT-DCDCA-PPCR method consistently outperformed baselines like ResNet18 and vanilla ViT-Adapters across all metrics:
- Generalization: On Protocol-1, the method achieved a mean Average unseen domain Generalization AUC (mAGA) of 82.06%, significantly higher than the ResNet18 baseline (58.29%) and vanilla ViT-Adapter (58.72%).
- Anti-Forgetting: The PPCR module significantly reduced the mean Accumulative Backward Transfer (mABT), indicating that the model retained much more knowledge of early domains even after 10 subsequent training sessions.
- Qualitative Stability: Visual attention maps (Figure 6) demonstrate that while vanilla adapters quickly lose focus on relevant facial features when moving between sessions, the DCDCA-equipped model maintains a consistent and accurate focus on the cues necessary for spoof detection.
Limitations and Future Work
While the method significantly mitigates forgetting, the mABT values remain negative, meaning some knowledge loss still occurs. The authors suggest that completely eliminating forgetting in a rehearsal-free setting remains an open challenge. Additionally, while this work focuses on RGB data, future research could extend these rehearsal-free DCL techniques to multi-modal FAS systems that incorporate Infrared (IR) or Depth information.
Summary updated