No Forgetting Learning: Memory-free Continual Learning

Mohammad Ali Vahedifar, Qi ZhangarXiv 2025 · DOI · arXiv

TL;DR

"No Forgetting Learning" (NFL) is a new memory-free framework for continual learning that eliminates the need for bulky and privacy-risking data buffers. By combining multi-step knowledge distillation with autoencoders, NFL achieves performance competitive with state-of-the-art methods while using nearly 15 times less memory.

What Problem Does This Paper Address?

Deep learning models suffer from Catastrophic Forgetting (CF): when they learn a new task, they tend to overwrite the weights used for previous tasks, effectively "erasing" their old knowledge. This is known as the plasticity-stability dilemma—the model needs to be "plastic" enough to learn new things but "stable" enough to keep the old.

Most current solutions rely on "memory buffers" that store a subset of actual data from previous tasks to "replay" later. However, this approach has three major flaws:

  1. Scalability: Storing images for hundreds of tasks consumes massive amounts of memory.
  2. Privacy: In many real-world applications (like healthcare), you aren't allowed to store old user data indefinitely.
  3. Strictness: True "Continual Learning" should ideally not require access to any prior raw data.

The authors propose NFL to bridge this gap, creating a model that learns incrementally without ever looking back at old data samples.

Methods

The authors introduce two versions: NFL and its enhanced sibling, NFL+.

  • NFL (The 5-Step Process): Instead of a single training pass, NFL uses a multi-step optimization. It uses the previous version of the model as a "teacher." When new data arrives, the model generates "soft targets" (logits) from the teacher to understand how the old model would have perceived the new data. It then uses Knowledge Distillation (KD) to ensure the new model's outputs remain consistent with the teacher's logic.
  • NFL+ (The Enhanced Version): This version adds two clever tricks:
  • Feature Preservation via Autoencoder (AE): It trains an under-complete autoencoder on the model's internal representations. This "locks in" the most essential features of previous tasks.
  • Bias Correction: In incremental learning, models often become biased toward the most recently learned classes. NFL+ applies a transformation layer to the final outputs (logits) to correct this imbalance.
  • Stepwise Freezing: During training, specific layers of the network are frozen at different stages to consolidate knowledge before allowing the model to adapt to new classes.

Datasets

The framework was evaluated on three standard computer vision benchmarks, split into sequential tasks:

  • CIFAR-100: 100 classes, split into 10 tasks.
  • TinyImageNet: 200 classes, split into 10 tasks.
  • ImageNet-1000: The full-scale benchmark with 1,000 classes.

The authors tested these under two scenarios: Task-Incremental (the model knows which task it's doing) and Class-Incremental (the model must figure out the class from all classes learned so far, which is much harder).

Key Insights and Ideas

  • The "Memory-Free" Advantage: The most striking insight is the efficiency. While methods like iCaRL or DER++ require gigabytes of storage for image buffers on ImageNet, NFL+ only needs to store the model weights and a tiny autoencoder.
  • Rethinking Metrics: The authors argue that "Accuracy" isn't enough. They propose the Plasticity-Stability Ratio (PS). This metric quantifies how well a model scales; a high PS indicates the model is successfully gaining new knowledge without sacrificing the old.
  • Soft Targets as Proxies: The paper demonstrates that the "dark knowledge" hidden in a model's probability distributions (logits) is often a sufficient substitute for the actual raw data of the past.

Key Results

  • Memory Efficiency: NFL+ utilizes approximately 14.75 times less memory than state-of-the-art buffer-based methods on ImageNet-1000.
  • Superior Accuracy: On CIFAR-100 (Task-IL), NFL+ achieved 92.68% accuracy, significantly outperforming other memory-free methods like LwF (62.86%) and even beating many buffer-based competitors.
  • Stability: In Class-Incremental settings, NFL+ maintained a much higher Plasticity-Stability Ratio than traditional methods, proving it is more robust as the number of tasks increases.
  • Training Time: While NFL+ is more complex, the training time remains manageable, though it is higher than simple fine-tuning due to the multi-step optimization.

Limitations and Future Work

  • The "Upper Bound" Gap: Despite the gains, there is still a performance gap between NFL+ and "Joint Training" (where the model has access to all data at once). Closing this gap without buffers remains the "holy grail" of CL.
  • Computational Overhead: The 6-step training process in NFL+ is more computationally intensive per task than standard replay methods.
  • Architecture Dependency: The current work focuses on ResNet-18. Exploring how these distillation techniques translate to Vision Transformers (ViTs) or Large Language Models (LLMs) is a natural next step.

Summary updated

Abstract

Continual Learning (CL) remains a central challenge in deep learning, where models must sequentially acquire new knowledge while mitigating Catastrophic Forgetting (CF) of prior tasks. Existing approaches often struggle with efficiency and scalability, requiring extensive memory or model buffers. This work introduces ``No Forgetting Learning" (NFL), a memory-free CL framework that leverages knowledge distillation to maintain stability while preserving plasticity. Memory-free means the NFL does not rely on any memory buffer. Through extensive evaluations of three benchmark datasets, we demonstrate that NFL achieves competitive performance while utilizing approximately 14.75 times less memory than state-of-the-art methods. Furthermore, we introduce a new metric to better assess CL's plasticity-stability trade-off.
BibTeX
@misc{vahedifar2025no,
  author = {Mohammad Ali Vahedifar and Qi Zhang},
  title = {{No Forgetting Learning: Memory-free Continual Learning}},
  year = {2025},
  eprint = {2503.04638},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.04638},
  howpublished = {arXiv},
}
Figure