TL;DR
This paper investigates a critical, previously unexplored security vulnerability in class-incremental continual learning (Class-IL): stage-transferred adversarial attacks. They demonstrate that adversarial examples crafted on earlier versions of a continually learning model can effectively attack later versions, posing a significant security risk. Existing defense mechanisms are found to be insufficient, highlighting the need for new strategies tailored to Class-IL.
What Problem Does This Paper Address?
Continual learning (CL) aims to enable models to learn new information over time without forgetting previously acquired knowledge. Class-incremental learning (Class-IL) is a particularly challenging setting where new classes are added sequentially. While CL methods excel at mitigating "catastrophic forgetting," their security against adversarial attacks has been largely overlooked. This paper addresses the gap in understanding how the iterative nature of Class-IL, where models are continuously updated rather than trained from scratch, creates unique vulnerabilities. Specifically, they investigate "stage-transferred attacks," where an adversary leverages a model from an earlier learning stage to attack the model in a later stage, even without direct access to the current model. This is a significant concern because adversarial attacks are known to transfer between different models, and the evolving nature of CL models presents a novel attack surface.
Methods
The authors introduce and analyze the concept of stage-transferred adversarial attacks in Class-IL. Their core methodology involves:
- Defining Stage-Transferred Attacks: An adversarial example generated using a model at stage t is used to attack the model at a later stage t+k (where k > 0). This is distinct from general adversarial transferability between independent models.
- Experimental Setup: They employ the Avalanche framework for Class-IL and test several representative CL methods (iCaRL, GDumb, ER-ACE, ER-AML) on standard benchmarks.
- Attack Methods: They utilize established adversarial attack algorithms: Fast Gradient Sign Method (FGSM), Projected Gradient Descent (PGD), and AutoAttack (AA).
- Measuring Transferability: The primary metric is the Attack Success Rate (ASR), specifically the ASR ratio (ASR of transferred attack normalized by the ASR of a direct attack on the final model). This ratio provides a stage-aware measure of vulnerability.
- Analyzing Mechanisms: To understand why stage-transferred attacks are effective, they investigate:
- Model Similarity: Cosine similarity between model parameters and Centered Kernel Alignment (CKA) to measure how similar the learned representations are across stages.
- Model Complexity and Robustness Degradation: They quantify model complexity using the average local Lipschitz constant and the spectral norm of the Hessian matrix of the loss.
Datasets
The experiments were conducted on two widely used benchmarks:
- Split-MNIST: Divided into five stages, with two classes added per stage. Multi-layer perceptron (MLP) models were used.
- Split-CIFAR100: Divided into ten stages, with ten classes added per stage. A reconstructed ResNet-based architecture was used.
Key Insights and Ideas
- Class-IL Models are Highly Vulnerable to Stage-Transferred Attacks: This is the paper's central finding. Adversarial examples crafted on earlier models are surprisingly effective against later models, indicating a significant security flaw in current Class-IL paradigms.
- Model Similarity is a Key Driver: The more similar two models are across stages (in terms of parameters and feature representations), the higher the transferability of adversarial attacks. This suggests that the shared knowledge and structure between successive model versions facilitate attacks.
- Robustness Degradation Amplifies Vulnerability: Beyond similarity, the increasing complexity of decision boundaries as new classes are added leads to a steeper loss surface. This makes the later stage models more susceptible to perturbations that were effective in earlier stages.
- Asymmetric Transferability Exists: The paper observes that attacks from earlier stages to later stages (forward transfer) are generally more effective than attacks from later stages to earlier stages (backward transfer). This is attributed to the cumulative nature of learning and the degradation of robustness over time.
- Existing Defenses Fall Short: State-of-the-art adversarial training methods, when applied to Class-IL, are not sufficient to mitigate stage-transferred attacks. This underscores the need for specialized defense strategies.
Key Results
- High ASR for Transferred Attacks: In Split-MNIST, FGSM attacks from Stage 1 to the final Stage 5 achieved an ASR of 0.774, only a slight drop from the direct attack ASR of 0.953. In Split-CIFAR100, similar trends were observed, with transferred attacks maintaining significant effectiveness.
- Correlation between Similarity and Transferability: Figures 3(a) and 3(b) show a clear positive correlation between model similarity (cosine similarity and CKA) and the ASR ratio, confirming that similar models are more susceptible to transferred attacks.
- Model Complexity Increases with Stages: Figure 4 demonstrates that both the Lipschitz constant and the spectral norm of the Hessian increase as the number of stages progresses, indicating growing model complexity and potential vulnerability.
- Defense Methods Show Limited Efficacy: Figure 5 shows that while defense methods like TABA, FLAIR, and FLAIR+ do reduce ASR against stage-transferred attacks, they still leave models vulnerable, with FGSM attacks achieving nearly 50% ASR on Split-CIFAR100.
Limitations and Future Work
- Focus on Specific Attack Types: The study primarily focuses on white-box attacks (FGSM, PGD, AA) and assumes the adversary has knowledge of the classes added at each stage. Real-world scenarios might involve more sophisticated black-box attacks or different threat models.
- Need for Tailored Defenses: The paper explicitly calls for the development of defense mechanisms specifically designed for the unique characteristics and vulnerabilities of Class-IL scenarios.
- Exploring Combined Threat Models: Future work could integrate stage-transferred attacks with other adversarial threats like data poisoning or backdoor insertions to understand their cumulative impact.
- Investigating Broader CL Settings: While focused on Class-IL, exploring stage-transferred attacks in other CL settings (e.g., task-incremental, domain-incremental) could provide a more comprehensive understanding of CL security.
Summary updated