Doubly Perturbed Task Free Continual Learning

Byung Hyun Lee, Min-hwan Oh, Se Young Chun

Abstract

Task-free online continual learning (TF-CL) is a challenging problem where the model incrementally learns tasks without explicit task information. Although training with entire data from the past, present as well as future is considered as the gold standard, naive approaches in TF-CL with the current samples may be conflicted with learning with samples in the future, leading to catastrophic forgetting and poor plasticity. Thus, a proactive consideration of an unseen future sample in TF-CL becomes imperative. Motivated by this intuition, we propose a novel TF-CL framework considering future samples and show that injecting adversarial perturbations on both input data and decision-making is effective. Then, we propose a novel method named Doubly Perturbed Continual Learning (DPCL) to efficiently implement these input and decision-making perturbations. Specifically, for input perturbation, we propose an approximate perturbation method that injects noise into the input data as well as the feature vector and then interpolates the two perturbed samples. For decision-making process perturbation, we devise multiple stochastic classifiers. We also investigate a memory management scheme and learning rate scheduling reflecting our proposed double perturbations. We demonstrate that our proposed method outperforms the state-of-the-art baseline methods by large margins on various TF-CL benchmarks.

Introduction

In Continual Learning (CL), neural networks often suffer from "catastrophic forgetting," where learning new information causes the model to overwrite previously acquired knowledge. Most CL research assumes the existence of clear task boundaries (e.g., transitioning from digit recognition to alphabet recognition). However, real-world data is typically Task-Free (TF-CL), arriving in a messy, unlabeled stream where distributions shift gradually or abruptly without warning.

Existing methods primarily focus on replaying past data. The authors of this paper argue that to truly succeed, a model must proactively prepare for future unseen data. If a model's current knowledge is too "brittle"—represented by a sharp peak in the loss landscape—even a small update to learn a future sample will cause a massive drop in performance on past data.

Methodology: Doubly Perturbed Continual Learning (DPCL)

The proposed DPCL framework addresses the fragility of task-free learning by injecting noise into both the input data and the model’s internal decision-making weights. This "double perturbation" strategy is implemented through three key components:

  1. Perturbed Function Interpolation (PFI): To avoid the high computational cost of standard adversarial training, DPCL injects noise into the hidden layers and interpolates between different samples (similar to Mixup). This forces the model to learn a "smoother" representation, ensuring that small input changes do not lead to drastic output swings.
  2. Branched Stochastic Classifiers (BSC): The model maintains multiple branches for its final classification layer. By averaging weights along the training trajectory and utilizing variational inference during testing, the model effectively flattens its weight landscape.
  3. PIMA (Perturbation-Induced Memory Management): A specialized memory buffer uses Mutual Information to retain samples that are most informative under the current perturbed state, complemented by an adaptive learning rate that scales based on perturbation intensity.

The Philosophy of Flatness

The core intuition behind DPCL is that robustness to future data is mathematically linked to the "flatness" of the loss landscape. If the "valley" of low error is wide and flat, the model can shift its position slightly to accommodate new data without climbing the "walls" of high error for old data. By simulating "attacks" on its own inputs and weights during training, the model learns a generalized solution resistant to the distribution shifts inherent in continual learning.

Figure 2: Comparison of sharp vs. flat weight loss landscapes. A flatter landscape allows the model to adapt to new samples (x^{t+1}) with less impact on the loss of previous samples (x^t).

Experimental Results

DPCL was evaluated on three major benchmarks: CIFAR100, CIFAR100-SC (Super-Class), and ImageNet-100. The researchers tested these across various configurations, including disjoint, blurry, and imbalanced (i-blurry) streams.

DPCL consistently outperformed State-of-the-Art (SOTA) methods like DER++, ODDL, and CLIB:

  • Accuracy: On CIFAR100, DPCL achieved 45.27% accuracy, significantly higher than the previous best of 41.49% (ODDL).
  • Reduced Forgetting: The Forgetting Measure (FM) was notably lower. On ImageNet-100, DPCL reduced forgetting to 37.33%, compared to 51.87% for standard Experience Replay (ER).
  • Any-time Performance: The model maintained superior performance throughout the entire training process, demonstrating smooth handling of task-free streams without performance crashes during transitions.
Figure 5: Accuracy over time across task boundaries for CIFAR100, CIFAR100-SC, and ImageNet-100. DPCL (red line) consistently maintains higher accuracy than baseline methods.

Conclusion

DPCL demonstrates that proactive consideration of future samples through input and weight perturbations is a powerful strategy for task-free continual learning. By flattening the loss landscape, the model achieves a superior balance between plasticity (learning new things) and stability (retaining old things). Future work may explore applying these double perturbations deeper into the backbone encoder and optimizing hyperparameter sensitivity for completely unknown data streams.

Summary updated

BibTeX
@inproceedings{lee2024doubly,
  author = {Byung Hyun Lee and Min-hwan Oh and Se Young Chun},
  title = {{Doubly Perturbed Task Free Continual Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=cgQ7NfsjFR},
}
Figure