Towards Adversarially Robust Continual Learning

Tao Bai, Chen Chen, Lingjuan Lyu, Jun Zhao, Bihan Wen

Abstract

Continual learning (CL) aims to enable deep learning models to learn from a sequence of tasks without forgetting previous knowledge. However, these models remain highly vulnerable to adversarial attacks. This paper presents the first systematic study of Adversarially Robust Continual Learning (ARCL). We identify "robustness forgetting"—a phenomenon where models lose adversarial resistance on old tasks—and propose Task-Aware Boundary Augmentation (TABA). TABA preserves decision boundaries by interpolating boundary samples across tasks, effectively balancing standard accuracy and adversarial robustness.

1. Introduction

Deep learning models deployed in dynamic environments face two primary challenges: catastrophic forgetting and adversarial vulnerability. Catastrophic forgetting occurs when a model, learning a sequence of tasks, overwrites weights essential for previous tasks. Adversarial vulnerability refers to the susceptibility of models to small, intentional input perturbations that lead to incorrect classifications.

While both fields have been studied extensively in isolation, their intersection remains under-explored. This paper investigates how to maintain adversarial robustness throughout a continual learning process. The authors observe that standard Adversarial Training (AT) fails in a CL context because the scarcity of old task data (the "imbalance problem") leads to the rapid degradation of decision boundaries for those tasks.

2. Methodology: Task-Aware Boundary Augmentation (TABA)

The authors introduce Robust Continual Learning (RCL) as a baseline, which integrates adversarial training into the iCaRL (Incremental Classifier and Representation Learning) framework. To address the specific failure modes of RCL, they propose Task-Aware Boundary Augmentation (TABA).

2.1 Boundary Data Selection

Unlike traditional CL methods that store "exemplars" near class means, TABA focuses on "boundary data." These are adversarial examples that the model currently misclassifies. By focusing on the samples that define the transition between classes, the model can more effectively preserve the "walls" of its decision regions.

2.2 Cross-Task Interpolation and Restricted Lambda

TABA synthesizes training data by linearly interpolating boundary samples from previous tasks with those from the current task. A critical innovation is the use of a restricted interpolation weight ($\lambda$). While standard Mixup uses a broad range of $\lambda$, TABA restricts it to $[0.45, 0.55]$. This ensures that the generated synthetic samples remain extremely close to the decision boundary, where the model's defensive capabilities are most tested.

2.3 Dual Loss Function

The training objective combines a standard classification loss with a distillation loss. This dual approach ensures that the model acquires new robust features without discarding the defensive knowledge learned in prior stages.

3. Experimental Setup

The proposed method was evaluated on CIFAR-10 and CIFAR-100.

  • CIFAR-10: Split into 5 stages with 2 classes each.
  • CIFAR-100 Setting I: 20 classes per stage across 5 stages.
  • CIFAR-100 Setting II: A more complex scenario with unequal class distributions per stage (varying between 5 and 45 classes) to simulate real-world data streams.

4. Key Results and Insights

The study yielded several critical insights into the nature of robust learning:

  • The Fragility of Robustness: The authors found that "robust accuracy" (performance under attack) collapses much faster than "standard accuracy" (performance on clean data). A model might still correctly label a clean image while losing all ability to defend against a perturbed version of that same image.
  • TABA vs. Baselines: Standard iCaRL achieved 0% robust accuracy against strong attacks like AutoAttack. TABA significantly improved this, achieving 38.41% Robust Accuracy (PGD) on CIFAR-10, outperforming both the RCL baseline (36.83%) and standard Mixup (33.11%).
  • Balancing Accuracy and Robustness: While standard Mixup can sometimes improve robustness, it often causes a catastrophic drop (up to 20%) in standard accuracy in CL settings. TABA maintains a superior balance, preserving high standard accuracy (65.97% on CIFAR-10) while providing robust defense.

5. Conclusion and Future Work

TABA represents a significant step toward secure continual learning. However, challenges remain. Adversarial training is computationally expensive due to the need for online attack generation. Additionally, the replay-based nature of TABA requires a memory buffer for old samples. Future research may focus on regularization-based or parameter-isolation methods to achieve adversarial robustness without the need for data storage, potentially reducing the overhead of robust continual learning.

Summary updated

BibTeX
@inproceedings{bai2023towards,
  author = {Tao Bai and Chen Chen and Lingjuan Lyu and Jun Zhao and Bihan Wen},
  title = {{Towards Adversarially Robust Continual Learning}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=GgFAd0AdjC},
}
Figure