Abstract
Class-incremental learning (CIL) suffers from the notorious dilemma between learning newly added classes and preserving previously learned class knowledge. That catastrophic forgetting issue could be mitigated by storing historical data for replay, which yet would cause memory overheads as well as imbalanced prediction updates. To address this dilemma, we propose to leverage "free" external unlabeled data querying in continual learning. We first present a CIL with Queried Unlabeled Data (CIL-QUD) scheme, where we only store a handful of past training samples as anchors and use them to query relevant unlabeled examples each time. Along with new and past stored data, the queried unlabeled are effectively utilized, through learning-without-forgetting (LwF) regularizers and class-balance training. Besides preserving model generalization over past and current tasks, we next study the problem of adversarial robustness for CIL-QUD. Inspired by the recent success of learning robust models with unlabeled data, we explore a new robustness-aware CIL setting, where the learned adversarial robustness has to resist forgetting and be transferred as new tasks come in continually. While existing options easily fail, we show queried unlabeled data can continue to benefit, and seamlessly extend CIL-QUD into its robustified versions, RCIL-QUD. Extensive experiments demonstrate that CIL-QUD achieves substantial accuracy gains on CIFAR-10 and CIFAR-100, compared to previous state-of-the-art CIL approaches. Moreover, RCIL-QUD establishes the first strong milestone for robustness-aware CIL.
Introduction
Deep learning models typically operate in static environments where they are trained once on a fixed dataset. However, real-world applications such as robotics and autonomous systems require Class-Incremental Learning (CIL), where models must learn new classes sequentially. The primary challenge in CIL is catastrophic forgetting: as the model adapts to new tasks, it abruptly loses performance on previously learned ones.
While replaying old data can mitigate this, storing large historical datasets is often impractical due to memory constraints or privacy regulations. Furthermore, maintaining adversarial robustness—the ability to resist malicious input perturbations—is even more difficult in an incremental setting. This paper introduces a novel approach that leverages "free," unlabeled external data to act as a proxy for historical data, preserving both standard accuracy and adversarial robustness.
The CIL-QUD Framework
The proposed CIL-QUD (Class-Incremental Learning with Queried Unlabeled Data) framework replaces the need for large memory buffers with a small set of "anchor" images (e.g., 10 per class).
Key Components:
- Anchor-based Querying: During each new task, the model uses its stored anchors to query the $K$-nearest neighbors from a massive pool of unlabeled data (e.g., the 80 Million Tiny Images dataset). This ensures the unlabeled data is semantically relevant to the forgotten classes.
- Dual Classifier Training: To handle the inherent class imbalance between new and old data, the framework employs two classifiers. A primary classifier is trained on class-balanced batches, while an auxiliary classifier uses random sampling to maintain general feature representations.
- Consistency Regularization: Learning-without-Forgetting (LwF) regularizers are applied to the queried unlabeled data, ensuring the model's current predictions remain consistent with its previous knowledge state.
Robustifying Incremental Learning (RCIL-QUD)
Adversarial robustness is notoriously fragile during sequential learning. To address this, the authors extend CIL-QUD into RCIL-QUD, introducing robustified regularizers:
- Robustified Knowledge Distillation (RKD): Aligns the model's outputs on perturbed (attacked) unlabeled images with the previous model's clean outputs.
- Robustified Feature Transferring (RFT): Minimizes the drift in internal feature maps when processing adversarial samples.
- Robustified TRADES (RTC): Adapts the TRADES defense mechanism to stabilize predictions between clean and adversarial inputs across tasks.
Experimental Results
The frameworks were evaluated on CIFAR-10 and CIFAR-100, split into five sequential tasks, using external unlabeled sources like 80 Million Tiny Images and ImageNet 32x32.
Performance Gains:
- Standard Accuracy: CIL-QUD outperformed previous state-of-the-art methods by 10.28% on CIFAR-10 and 1.19% on CIFAR-100.
- Robust Accuracy: RCIL-QUD established a significant milestone, achieving 40.15% robust accuracy on CIFAR-10, nearly matching the multi-task learning upper bound of 40.39%.
- Efficiency: Unlike competitors that rely on complex generative models or multi-stage training, CIL-QUD achieves these results with minimal computational overhead.
Conclusion
CIL-QUD and its robust counterpart, RCIL-QUD, demonstrate that external unlabeled data is a powerful resource for overcoming catastrophic forgetting. By using anchors to query relevant data, the framework effectively "reminds" the model of past knowledge without the storage costs of traditional replay methods. This work sets a new standard for both accuracy and robustness in the evolving field of class-incremental learning.
Summary updated