Flashbacks to Harmonize Stability and Plasticity in Continual Learning

Leila Mahmoodi, Peyman Moghadam, Munawar Hayat, Christian Simon, Mehrtash Harandi

TL;DR

Flashback Learning (FL) is a novel, two-phase plugin mechanism that addresses the classic stability-plasticity dilemma in continual learning through bidirectional regularization. By first training a temporary "expert" model on new data and then using its knowledge alongside old task constraints, FL achieves a mathematically proven balance that prevents catastrophic forgetting while preserving the model's ability to learn new concepts.

What Problem Does This Paper Address?

When deep neural networks continuously learn new tasks, they suffer from Catastrophic Forgetting (CF)—the tendency to overwrite previously learned knowledge. To combat this, Continual Learning (CL) methods try to balance two competing forces:

  1. Stability: The ability to retain old knowledge.
  2. Plasticity: The capacity to absorb new information.

The authors identify a critical flaw in current state-of-the-art CL approaches: they are overwhelmingly biased toward stability. By enforcing strict, unidirectional constraints to keep the model close to its old state, these methods inadvertently degrade the model's feature-extraction capabilities for new data.

Inspired by biological brains—where the hippocampus actively integrates new experiences into past memory traces rather than just transferring them unidirectionally—this paper introduces a way to give explicit, balanced control over both stability and plasticity.

Figure 1: Left: Former CL methods use existing knowledge from previous tasks to adjust model updates on new data. Right: FL method refines new knowledge out of new task data in Phase 1, then controls model updates by bidirectional regularization in Phase 2.

Methods

Flashback Learning (FL) is designed as a flexible "plugin" that can be integrated into four major categories of CL methods: distillation, memory rehearsal, parameter regularization, and dynamic architectures. It alters the standard training budget for a new task by splitting it into two distinct phases:

  • Phase 1 (Plastic Knowledge Acquisition): The model is trained quickly on the new task data for a small number of epochs without heavy historical constraints. This creates a temporary "primary model" that acts as an expert on the new data. The knowledge from this model is extracted and stored in a Plastic Knowledge Base (PKB).
  • Phase 2 (The Flashback): The model is reset (re-initialized) back to its stable state from the end of the previous task. It is then trained for the remaining epochs using a bidirectional regularization loss. This loss forces the model to balance constraints from both the Stable Knowledge Base (SKB) (the old model/data) and the newly created PKB.

Mathematically, the authors prove that the gradient updates in Phase 2 drive the model's outputs toward a clean interpolation between old and new task representations, preventing the model from veering too far toward forgetting or underlearning.

Datasets

The authors evaluated FL across several standard image classification benchmarks under both Class-Incremental (CI) and Task-Incremental (TI) settings:

  • Split CIFAR-10 (5 tasks of 2 classes each)
  • Split CIFAR-100 (evaluated in two protocols: B50-10 and B0-10)
  • Split Tiny ImageNet (10 tasks of 20 classes each)
  • ImageNet-100 (evaluated in B50-10 and B0-10 protocols)

Key Insights and Ideas

  • The Unidirectional Trap: Traditional CL regularizes the new model using only the old model. FL shows that treating the new task as an equal partner in regularization prevents the model's feature extractor from deteriorating.
  • Gradient Interpolation: The core "aha!" moment is theoretical. The authors show that adding a plasticity loss based on a temporary Phase 1 expert mathematically transforms the optimization gradient into an interpolation function. It explicitly guides the model parameters to a sweet spot between old and new task spaces.
  • Architecture Agnostic: FL is robust to backbone changes. The authors successfully tested it not only on standard convolutional networks (ResNet-18) but also on Vision Transformers (ViT-Small and ViT-Tiny), proving its general applicability.

Key Results

Integrating FL into baseline methods yielded consistent performance boosts within the exact same training epoch budget:

  • Accuracy Improvements: FL achieved an average accuracy improvement of up to 4.91% in Class-Incremental settings and 3.51% in Task-Incremental settings.
  • SOTA Enhancements: When plugged into advanced, state-of-the-art CL frameworks like BEEF and FOSTER, FL pushed performance even further, notably yielding a 4.76% improvement on the challenging CIFAR-100-B50-10 benchmark when combined with BEEF-Compress.
  • Lower Stability-Plasticity Ratio (SPR): Quantitative evaluations of the SPR confirmed that FL systematically achieves a superior trade-off compared to standalone baselines.

Limitations and Future Work

The primary drawback of Flashback Learning is its memory overhead during training. Because it maintains both a Stable Knowledge Base and a Plastic Knowledge Base simultaneously, it approximately doubles the training memory requirement ($M_{FL} = 2M_{CL}$) compared to the host CL method. However, the authors note this overhead is predictable and confined strictly to the training phase.

Future Directions: The authors suggest extending FL to emerging parameter-efficient training paradigms, such as prompt learning and Low-Rank Adaptation (LoRA), which could pave the way for multi-modal continual learning and more complex, task-agnostic online scenarios.

Summary updated

BibTeX
@article{mahmoodi2025flashbacks,
  author = {Leila Mahmoodi and Peyman Moghadam and Munawar Hayat and Christian Simon and Mehrtash Harandi},
  title = {{Flashbacks to Harmonize Stability and Plasticity in Continual Learning}},
  journal = {Neural Networks},
  year = {2025},
  doi = {10.1016/j.neunet.2025.107616},
}
Figure