Progressive Learning without Forgetting

Tao Feng, Hangjie Yuan, Mang Wang, Ziyuan Huang, Ang Bian, Jianzhou Zhang

TL;DR

Progressive Learning without Forgetting (PLwF) tackles data-free continual learning by densely preserving and distilling knowledge from all previous task models, preventing the gradual fading of early knowledge. Combined with a novel data-free credit assignment optimization regime that eliminates gradient conflicts via orthogonal projection, PLwF achieves state-of-the-art performance without storing a single byte of raw historical data.

What Problem Does This Paper Address?

Artificial neural networks excel at learning specific tasks but suffer from catastrophic forgetting when trained on a sequence of changing tasks. When forced to learn something new, they overwrite what they previously learned.

To prevent this without violating data privacy or storage constraints, "data-free" continual learning methods typically use regularization. A classic approach is Learning without Forgetting (LwF), which uses knowledge distillation to make the current model match the outputs of the last task's model. However, the authors identify two critical flaws in this paradigm:

  1. The Accumulation of Catastrophic Forgetting: Relying solely on the immediate predecessor model creates a game of telephone. The last model has already partially forgotten earlier tasks, meaning the "knowledge space" steadily evaporates over long task sequences.
  2. The Stability-Plasticity Tug-of-War: During optimization, the gradient required to learn the new task often conflicts with the gradient needed to preserve old tasks, causing a tug-of-war that hurts performance on both fronts.

Methods

The authors introduce two core components to solve these issues:

1. Progressive Learning without Forgetting (PLwF)

Instead of only distilling knowledge from the single most recent model ($t-1$), PLwF densely hooks into the entire history of optimized task models ($f_1, f_2, \dots, f_{t-1}$). By minimizing the KL-divergence against all historical models simultaneously, the network retains an un-faded, highly reliable anchor to early knowledge. To manage computational costs, the authors also introduce a relaxed PLwF variant that samples only a strategic subset of past models.

Figure 2. Comparison between the existing work and the proposed method. (Note that both methods do not get access to data from previous tasks.) (a) Existing regularization-based approaches that only leverages the model function in the last task as the knowledge space for overcoming forgetting. (b) Our PLwF approach that constructs the knowledge space by densely introducing the model functions in the previous tasks. We use single-headed layout, all tasks share the final classifier layer and inference is performed without task identity.

2. Data-Free Credit Assignment

To resolve the gradient tug-of-war, the authors implement a heuristic optimization step. In every training iteration, they calculate a gradient assignment matrix based on the cosine similarity between the gradients of different tasks. If two task gradients conflict (i.e., they point in opposing directions, yielding a negative cosine similarity), the optimizer performs "gradient surgery": it projects the conflicting gradient onto the normal plane of the other. This eliminates destructive interference without requiring any cached raw data.

Datasets

The authors evaluated their approach using standard class-incremental benchmarks:

  • CIFAR-10 (split into 5 sequential tasks)
  • CIFAR-100 (split into 10 and 20 sequential tasks)
  • Tiny-ImageNet (split into 10 sequential tasks)

Key Insights and Ideas

  • Historical Anchoring Prevents Fading: The core "aha moment" is realizing that the immediate predecessor model is an unreliable narrator for deep history. Densely connecting to older, frozen task models acts as a permanent anchor for early knowledge.
  • Data-Free Gradient Surgery is Possible: Prior gradient projection methods (like GEM) required storing an episodic memory buffer of raw data to calculate historical gradients. PLwF proves you can eliminate gradient conflicts purely by analyzing the multi-task distillation loss gradients generated within the current batch.
  • The Complexity-Performance Trade-off is Highly Compressible: The relaxed version of PLwF demonstrates that you don't need every historical model to maintain accuracy. Distilling from the immediate past model plus just 30% of early models cuts computational overhead by 60% while suffering only a trivial drop in accuracy.

Key Results

PLwF significantly outperforms existing data-free regularization methods and rivals buffer-dependent rehearsal methods:

  • Massive Gains Over Regularization: On the challenging 10-split CIFAR-100 benchmark, PLwF achieved an average accuracy of 44.72%, vastly outperforming classic methods like EWC (30.73%) and MAS (34.42%).
  • Beating Rehearsal Methods Without Data: PLwF outperformed several rehearsal-based methods (such as GEM and AGEM) that actively store 500 raw data samples in a memory buffer.
  • Sustained Performance on Early Tasks: As shown in the forgetting curves, standard training quickly drops performance on the first task to 0%, whereas PLwF maintains a remarkably gentle slope, which is further flattened by the credit assignment regime.
Performance variation on the first task

Limitations and Future Work

The primary limitation of PLwF is its computational and storage overhead. As the number of tasks grows linearly, storing and running inference through an increasing number of frozen historical models becomes expensive.

To address this in production environments, the authors suggest two promising future directions:

  1. Fast Knowledge Distillation (FKD): Pre-calculating soft labels to avoid repetitive forward passes through the historical models, which can speed up training by 2–5$\times$.
  2. Prune, then Distill: Compressing and pruning the historical models before using them for distillation to minimize memory footprint without sacrificing accuracy.

Summary updated

BibTeX
@misc{feng2022progressive,
  author = {Tao Feng and Hangjie Yuan and Mang Wang and Ziyuan Huang and Ang Bian and Jianzhou Zhang},
  title = {{Progressive Learning without Forgetting}},
  year = {2022},
  eprint = {2211.15215},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.15215},
}
Figure