Decoupling Learning and Remembering: a Bilevel Memory Framework with Knowledge Projection for Task-Incremental Learning

Wenju Sun, Qingyong Li, Jing Zhang, Wen Wang, Yangli-ao GengCVPR 2023

Abstract

The dilemma between plasticity and stability arises as a common challenge for incremental learning. In contrast, the human memory system is able to remedy this dilemma owing to its multilevel memory structure, which motivates us to propose a Bilevel Memory system with Knowledge Projection (BMKP) for incremental learning. BMKP decouples the functions of learning and remembering via a bilevel-memory design: a working memory responsible for adaptively model learning, to ensure plasticity; a long-term memory in charge of enduringly storing the knowledge incorporated within the learned model, to guarantee stability. However, an emerging issue is how to extract the learned knowledge from the working memory and assimilate it into the long-term memory. To approach this issue, we reveal that the parameters learned by the working memory are actually residing in a redundant high-dimensional space, and the knowledge incorporated in the model can have a quite compact representation under a group of pattern basis shared by all incremental learning tasks. Therefore, we propose a knowledge projection process to adaptively maintain the shared basis, with which the loosely organized model knowledge of working memory is projected into the compact representation to be remembered in the long-term memory. We evaluate BMKP on CIFAR-10, CIFAR-100, and Tiny-ImageNet. The experimental results show that BMKP achieves state-of-the-art performance with lower memory usage.

Introduction

In the field of artificial intelligence, "Continual Learning" remains a significant challenge. Most neural networks are prone to catastrophic forgetting, where learning a new task (Task B) often leads to the overwriting of weights essential for a previously learned task (Task A). This phenomenon highlights the plasticity-stability dilemma: the need for a model to be sufficiently "plastic" to acquire new information while remaining "stable" enough to retain prior knowledge.

Existing approaches generally fall into two categories:

  1. Rehearsal-based methods: These store a subset of old data (exemplars) for later replay. However, they are memory-intensive and may fail if the stored samples do not adequately represent the original data distribution.
  2. Gradient-based methods: These restrict weight updates to minimize interference with old tasks. While this preserves stability, it often severely limits plasticity, hindering the model's ability to learn complex new tasks.

The authors argue that these methods struggle because they attempt to use a single set of weights for both learning and remembering.

Methodology: The BMKP Framework

Inspired by the Atkinson-Shiffrin human memory model, the researchers proposed the Bilevel Memory system with Knowledge Projection (BMKP). This framework explicitly decouples the learning and remembering functions.

Comparison of memory models: (a) standard memory-based incremental learning, (b) the Atkinson-Shiffrin human memory model, and (c) the proposed Bilevel Memory Model with Knowledge Projection.

The system consists of two primary components:

  • Working Memory: A standard neural network that focuses exclusively on learning the current task, ensuring high plasticity.
  • Long-term Memory: A storage unit that holds "knowledge representations" rather than raw data or weights, ensuring stability.

Knowledge Projection

The "secret sauce" of BMKP is the Knowledge Projection process. Recognizing that neural network weights are often redundant and high-dimensional, the authors project these weights into a Core Knowledge Space (CKS).

  • Pattern Basis ($B$): A set of fundamental building blocks shared across all tasks is maintained.
  • Compact Representation: New knowledge is stored as a compact coefficient matrix ($A$) relative to this basis.
  • Basis Expansion: If a new task introduces patterns the current basis cannot describe, Singular Value Decomposition (SVD) is used to expand the basis just enough to capture the new information.
  • Compaction Regularizer: During training, a specialized loss function encourages the Working Memory to reuse existing patterns from the Long-term Memory, further enhancing efficiency and facilitating forward transfer.

Experimental Results

The BMKP framework was evaluated on three standard computer vision benchmarks for Task-Incremental Learning: 5-split CIFAR-10, 10-split CIFAR-100, and 10-split Tiny-ImageNet.

Accuracy vs. Memory Usage on CIFAR-10, CIFAR-100, and Tiny-ImageNet benchmarks. BMKP (red stars) consistently achieves higher accuracy with lower memory consumption compared to baselines.

Performance and Efficiency

BMKP consistently outperformed state-of-the-art baselines, including DER++, GPM, and WSN:

  • State-of-the-Art Accuracy: BMKP achieved an average accuracy of 81.49% across the three datasets, outperforming the next best method (WSN) by approximately 1% and significantly exceeding classic methods like LwF (71.43%).
  • Memory Efficiency: The model demonstrated exceptional memory efficiency. On Tiny-ImageNet, it reached peak accuracy with only ~25 MB of storage. In contrast, rehearsal-based methods typically require much larger buffers to achieve comparable results.
  • Ablation Studies: The researchers confirmed that both the "basis updating" and "retraining/recall" steps are critical; removing either component resulted in performance drops of up to 40%.

Discussion and Key Insights

  • Weight Redundancy: By identifying a shared "pattern basis," the model avoids storing full weight matrices for every task, instead storing only unique task-specific coefficients.
  • Decoupling Benefits: Allowing the Working Memory to learn freely before compressing knowledge into Long-term Memory prevents the interference issues common in other methods.
  • Forward Transfer: The reuse of the pattern basis allows knowledge from earlier tasks to assist in learning subsequent tasks more efficiently.

Conclusion and Future Work

While BMKP represents a significant step forward, several avenues for future research remain:

  • Class-Incremental Learning: The current model operates in a Task-IL setting (requiring task labels at test time). Adapting it for Class-IL, where task labels are unknown, is a key objective.
  • Backward Transfer: Future iterations could focus on explicitly improving backward transfer, where learning new tasks enhances performance on previous ones.
  • Basis Consolidation: As the pattern basis grows over time, developing methods to prune or consolidate it will be necessary for long-term scalability.

Summary updated

BibTeX
@inproceedings{sun2023decoupling,
  author = {Wenju Sun and Qingyong Li and Jing Zhang and Wen Wang and Yangli-ao Geng},
  title = {{Decoupling Learning and Remembering: a Bilevel Memory Framework with Knowledge Projection for Task-Incremental Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=VXDiwFgvBc},
}
Figure