Slowing Down Forgetting in Continual Learning

Pascal Janetzky, Tobias Schlagenhauf, Stefan Feuerriegel · DOI

Abstract

Continual Learning (CL) aims to enable neural networks to learn sequential tasks without suffering from catastrophic forgetting. We present ReCL (Reconstruction for Continual Learning), a framework that utilizes the implicit bias of gradient-based optimization to reconstruct training data from previous tasks directly from model weights. By replaying these reconstructed samples alongside new task data, ReCL significantly mitigates forgetting without requiring external data storage or separate generative models.

Introduction

The stability-plasticity tradeoff is a fundamental hurdle in CL. Models must be plastic enough to acquire new information but stable enough to retain prior knowledge. Traditional approaches either store a subset of old data (memory-based), which poses privacy and storage issues, or constrain weight updates (memory-free), which can limit learning capacity. ReCL bridges this gap by turning the neural network into its own memory buffer.

Methodology: The ReCL Framework

ReCL exploits the observation that gradient descent biases networks toward solutions that "memorize" the geometry of training data. This allows for data recovery through optimization in the input space.

The ReCL workflow: (1) Reconstructing data from previous task weights and (2) training on a mix of reconstructed and new data.

The process involves two primary stages:

  1. Data Reconstruction: Before a new task $\tau$ begins, the model optimizes random noise inputs to match the gradient signals of the previous task's weights ($\Phi_{\tau-1}$). This "hallucinates" representative samples of the old data.
  2. Combined Training: These reconstructed samples ($\tilde{\mathbf{x}}^{<\tau}$) are interleaved with original data from the current task ($\mathbf{x}^{\tau}$) to train the updated network ($\Phi_{\tau}$).

Experimental Evaluation

The framework was tested on standard benchmarks including SplitMNIST, SplitCIFAR10, and SplitTinyImageNet, covering both Class Incremental (CIL) and Domain Incremental (DIL) scenarios.

Key Results

ReCL consistently improves the performance of various baseline CL algorithms. As shown in the accuracy metrics, adding ReCL provides a substantial "force multiplier" effect across diverse methodologies.

Key findings include:

  • Accuracy Gains: On SplitMNIST, the baseline "Finetune" accuracy of ~50% increased to ~73% with ReCL.
  • Forgetting Mitigation: Backward Transfer (BWT) improved from -39.33% to -14.51% on SplitMNIST, indicating significantly better retention of prior knowledge.
  • Architectural Robustness: While theoretically grounded in homogeneous networks, ReCL demonstrated empirical success on complex architectures like ResNet and AlexNet, suggesting the underlying principle is robust to modern design features.

Discussion and Limitations

ReCL offers a privacy-preserving, memory-efficient alternative to traditional replay methods. However, the computational overhead of the reconstruction phase remains a consideration. Future research will focus on improving the visual fidelity of reconstructed samples and optimizing the process for modern architectural features like skip connections and batch normalization.

Conclusion

By treating data reconstruction as a tool rather than a vulnerability, ReCL provides a powerful mechanism for slowing down forgetting in sequential learning tasks. It stands as a versatile, orthogonal enhancement for the existing suite of continual learning algorithms.

Summary updated

BibTeX
@misc{janetzky2024slowing,
  author = {Pascal Janetzky and Tobias Schlagenhauf and Stefan Feuerriegel},
  title = {{Slowing Down Forgetting in Continual Learning}},
  year = {2024},
  eprint = {2411.06916},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.06916},
}
Figure