A Unified and General Framework for Continual Learning

Zhenyi Wang, Yan Li, Li Shen, Heng Huang

Abstract

Continual Learning (CL) seeks to mitigate catastrophic forgetting in artificial neural networks trained on sequential tasks. While various strategies—ranging from weight regularization to memory replay—have been developed, the field lacks a cohesive mathematical foundation. This paper presents a unified framework that expresses diverse CL methods as specific instances of a generalized optimization objective based on Bregman divergence. Building on this framework, we introduce Refresh Learning, a biologically inspired "unlearn-then-relearn" mechanism. By intentionally forgetting task-specific noise and prioritizing essential features, Refresh Learning helps models avoid over-memorization and find flatter minima. Experimental results show significant performance gains across standard benchmarks, including CIFAR and Tiny-ImageNet.

1. Introduction

Artificial neural networks often suffer from catastrophic forgetting, where new information overwrites previously acquired knowledge. Current research in Continual Learning (CL) is typically categorized into three distinct buckets: regularization-based methods (e.g., EWC), Bayesian-based methods (e.g., VCL), and memory-replay methods (e.g., ER). However, these approaches are often treated as separate paradigms. Furthermore, existing methods frequently focus exclusively on knowledge retention, leading to "over-memorization" and increased cognitive load, which can hinder the learning of subsequent tasks.

2. A Unified Mathematical Framework

We propose that most popular CL methods can be unified under a single generalized optimization objective: $$\mathcal{L}^{CL} = \mathcal{L}_{CE}(\mathbf{x}, \mathbf{y}) + \alpha D_\Phi(h_\theta(\mathbf{x}), \mathbf{z}) + \beta D_\Psi(\theta, \theta_{old})$$ This objective balances three components: the cross-entropy loss on the current task, regularization in the output space (predictions), and regularization in the weight space (parameters). By utilizing Bregman divergence, we demonstrate that methods like Elastic Weight Consolidation (EWC), Experience Replay (ER), and Variational Continual Learning (VCL) are mathematically equivalent to specific parameterizations of this general formula.

Table 1: The unified framework demonstrates how various CL categories (Bayesian, Regularization, Memory-replay) are recovered by setting specific parameters in the generalized objective.

3. Refresh Learning: Strategic Forgetting

Inspired by the neuroscientific principle that forgetting acts as a filter to prioritize essential information, we introduce Refresh Learning. This "unlearn-then-relearn" plug-in operates in two stages for every mini-batch:

  1. Unlearning: The model intentionally increases the current task loss. To protect past knowledge, it uses the Fisher Information Matrix (FIM) to ensure that parameters critical to previous tasks are modified more slowly.
  2. Relearning: The model performs a standard training step on the same data to recover and refine the task-specific knowledge.

Theoretically, this cycle acts as a penalty on the gradient norm, encouraging the model to converge toward "flat minima." Flat minima are associated with better generalization and robustness, helping the model distinguish between essential features and task-specific noise.

4. Experimental Evaluation

The framework and Refresh Learning plug-in were evaluated on several benchmarks:

  • Image Classification: CIFAR-10, CIFAR-100, and Tiny-ImageNet (split into sequential tasks).
  • Domain-Incremental Learning: Permuted MNIST (P-MNIST) and Rotated MNIST (R-MNIST).

Key Results

  • Performance Gains: Refresh Learning consistently improved baseline performance. For instance, adding it to the DER++ baseline resulted in an accuracy increase of over 2% on CIFAR-100 and Tiny-ImageNet.
  • Knowledge Retention: The method significantly improved Backward Transfer (BWT), indicating that models were better at retaining knowledge from early tasks even after extensive sequential training.
  • Computational Efficiency: The unlearning step adds manageable overhead, increasing training time by approximately 0.8x on CIFAR-100, which is a favorable trade-off for the observed accuracy improvements.

5. Conclusion and Future Work

This work provides a unifying perspective on Continual Learning, bridging the gap between disparate methodologies. The proposed Refresh Learning mechanism demonstrates that strategic "forgetting" can actually enhance long-term retention and generalization. Future research will focus on optimizing hyperparameter sensitivity (such as the unlearning rate) and exploring the scalability of this approach to large-scale Foundation Models and LLMs, where FIM approximations may be computationally intensive.

Summary updated

BibTeX
@inproceedings{wang2024unified,
  author = {Zhenyi Wang and Yan Li and Li Shen and Heng Huang},
  title = {{A Unified and General Framework for Continual Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=BE5aK0ETbp},
}
Figure