TL;DR
This paper introduces the first "rehearsal-free" approach for Domain Continual Learning (DCL) in Face Anti-Spoofing (FAS). By developing a novel adapter for Vision Transformers (ViTs) and a prototype-based regularization technique, they achieve better generalization to unseen attack types while minimizing the forgetting of previously learned knowledge, all without needing to store past data.
What Problem Does This Paper Address?
Face Anti-Spoofing (FAS) systems are crucial for securing facial recognition technologies. However, real-world scenarios constantly introduce new attack methods and variations, creating "domain shifts." Traditional FAS models struggle with this, as their performance degrades significantly when faced with data from domains they weren't trained on. Continual Learning (CL) aims to address this by allowing models to adapt to new data over time. A major hurdle in CL is "catastrophic forgetting," where learning new information leads to the loss of old knowledge. Existing CL methods for FAS often rely on "replay buffers" to store past data for rehearsal, which is problematic due to privacy concerns and storage limitations, especially with sensitive facial data. This paper tackles the challenge of Domain Continual Learning for FAS in a practical, "rehearsal-free" setting, where models must adapt to new domains with limited new data and without access to any previous data.
Methods
The authors propose a two-pronged approach to tackle rehearsal-free DCL for FAS:
- Dynamic Central Difference Convolutional Adapter (DCDCA): To improve generalization to unseen domains, they adapt Vision Transformers (ViTs) using a novel adapter. Instead of standard linear adapters, DCDCA integrates a dynamic central difference convolution. This adapter injects a "locality inductive bias" into ViTs, allowing them to extract finer-grained features crucial for distinguishing real faces from spoofing attempts. A key innovation is that the "central difference ratio" is not fixed but is learned and self-adapts to new data domains and different layers within the ViT, making it more suitable for the dynamic DCL setting.
- Proxy Prototype Contrastive Regularization (PPCR): To combat catastrophic forgetting without using past data, PPCR leverages "proxy prototypes." These prototypes are derived from the weights of the fully-connected layers of the model, effectively representing the knowledge learned from previous domains. PPCR then uses a contrastive regularization strategy to ensure that features from new data are clustered near these proxy prototypes, thereby preserving past knowledge. This is achieved by minimizing a combined loss function that includes cross-entropy and a contrastive term.
Datasets
The authors created two new practical protocols for evaluating DCL-FAS. They utilized data from 15 publicly available datasets, including:
- Base Datasets: IDIAP REPLAY-ATTACK, CASIA-FASD, MSU MFSD, HKBU MARsV2, OULU-NPU, CSMAD, CASIA-SURF, WFFD, WMCA, CASIA-SURF 3DMASK, ROSE-YOUTU, CASIA-SURF CeFA, CelebA-Spoof, CASIA-SURF HiFiMask, and SiW.
- Combined for Base Model Training: SiW, CelebA-Spoof, and HiFiMask (due to their large data volume).
- Unseen Datasets for Evaluation: ROSE-YOUTU and CeFA.
The protocols simulate realistic DCL scenarios: Protocol-1 focuses on adapting to new domains as they emerge, while Protocol-2 simulates adapting to data from older devices.
Key Insights and Ideas
- Generalization is Key to Anti-Forgetting: A crucial observation is that models exhibiting better generalization to unseen domains tend to forget less of their previous knowledge. This insight guided the development of their methods, focusing on improving generalization as a means to combat forgetting.
- ViT Adapters Need Domain-Specific Inductive Bias: Vanilla linear adapters for ViTs are insufficient for the nuanced task of FAS. The DCDCA's convolutional nature and dynamic central difference mechanism are vital for extracting the necessary fine-grained spoofing cues.
- Proxy Prototypes as Knowledge Anchors: Without direct access to past data, using model weights (proxy prototypes) to represent and preserve prior knowledge is an effective strategy for rehearsal-free continual learning.
- Practical DCL Protocols are Necessary: The authors highlight the need for realistic evaluation protocols that mimic real-world deployment challenges, including low-shot learning and the absence of rehearsal data.
Key Results
- Improved Generalization and Reduced Forgetting: The proposed ViT-DCDCA-PPCR method significantly outperforms baseline methods (like ResNet18 and ViT-Adapter) in both generalization to unseen domains (higher mAGA) and reducing catastrophic forgetting (higher mABT).
- Quantitative Performance: In Protocol-1, ViT-DCDCA-PPCR achieved an mAGA of 78.09%, compared to 58.29% for ResNet18. For mABT, it achieved -1.82%, indicating much less forgetting than ResNet18's -7.19%. Similar improvements were observed in Protocol-2.
- DCDCA's Effectiveness: The DCDCA adapter itself showed substantial improvements over vanilla ViT-Adapter and even ViT-ConvA (which lacks the dynamic central difference).
- PPCR's Contribution: The PPCR regularization further boosted performance, especially in reducing forgetting, compared to simple finetuning or contrastive regularization without proxy prototypes.
- Qualitative Analysis: Visualizations of attention maps confirmed that ViT-DCDCA-PPCR maintained consistent attention on face regions across sessions, indicating less forgetting, while ViT-Adapter showed significant shifts in attention, signifying knowledge loss.
Limitations and Future Work
- Limitations: While the paper presents a significant advancement, the authors acknowledge that existing continual learning methods like EWC and LWF might achieve slightly better mABT (less forgetting) in some cases, though at the cost of significantly lower generalization (mAA and mAGA). This suggests a potential trade-off that future work could explore.
- Future Work: The paper lays the groundwork for rehearsal-free DCL in FAS. Future research could focus on further optimizing the balance between generalization and forgetting, exploring more sophisticated ways to derive and utilize proxy prototypes, and investigating the application of these techniques to other domains within continual learning. The authors also mention that their proposed DCDCA can be further optimized with other learnable θ strategies, suggesting avenues for architectural improvements.
Summary updated