NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unlocking the Power of Rehearsal in Continual Learning: A Theoretical Perspective

Junze Deng, Qinhang Wu, Peizhong Ju, Sen Lin, Yingbin Liang, Ness Shroff

Introduction

Continual Learning (CL) aims to train neural networks on a sequence of tasks without suffering from "catastrophic forgetting"—the phenomenon where new knowledge overwrites previously learned information. The most effective defense to date is rehearsal, which involves maintaining a small buffer of data from previous tasks to be re-played during the training of new tasks.

While rehearsal is widely used, almost all existing algorithms employ a concurrent approach, mixing old and new data into a single training batch. This paper challenges that convention by providing the first comprehensive theoretical analysis of rehearsal strategies, revealing that the standard concurrent approach is not always optimal.

The Rehearsal Paradigm: Concurrent vs. Sequential

The authors distinguish between two primary strategies for utilizing the memory buffer:

  1. Concurrent Rehearsal: Training on the current task and the memory buffer simultaneously.
  2. Sequential Rehearsal: Training on the current task until convergence, followed by a sequential "review" or fine-tuning phase on the memory buffer for each past task.
Comparison of Concurrent and Sequential Rehearsal strategies.

This distinction is inspired by human learning patterns, where we often master a new topic deeply before reviewing old material to consolidate our overall knowledge.

Theoretical Framework and the "Similarity Pivot"

To move beyond empirical trial-and-error, the researchers built a rigorous theoretical framework using overparameterized linear models. This allowed them to derive closed-form expressions for forgetting and generalization error. Their findings highlight a critical factor: task similarity.

When tasks are highly related, concurrent training is beneficial as it helps the model find a shared solution space. However, when tasks are dissimilar (a high "Task Gap"), their gradients interfere with one another. In these cases, the updates required for a new task may directly contradict the updates needed to maintain old ones.

Theoretical and simulated results for Forgetting and Generalization Error as a function of Task Gap.

As shown in the figures above, as the Task Gap increases, sequential rehearsal begins to outperform concurrent rehearsal in both minimizing forgetting and reducing generalization error. The authors rigorously prove (Theorems 5.3 and 5.5) that sequential rehearsal is mathematically superior whenever tasks are sufficiently dissimilar.

Hybrid Rehearsal

Based on these insights, the authors propose Hybrid Rehearsal. This algorithm uses the cosine similarity of gradients to partition the memory buffer dynamically. Tasks identified as similar to the current one are trained concurrently to leverage positive transfer, while dissimilar tasks are revisited sequentially to avoid gradient interference.

Experimental Results

The theory was validated across standard benchmarks including Split-CIFAR-10, Split-CIFAR-100, and Split-TinyImagenet200. Key results include:

  • Performance Gains: On Split-TinyImageNet200, Hybrid Rehearsal achieved a 2.19% increase in final accuracy and a 3.66% reduction in forgetting compared to standard concurrent methods.
  • Robustness: On "Corrupted" datasets designed to maximize task dissimilarity, the hybrid approach reduced forgetting by as much as 13.32%.
  • Scalability: The benefits persisted in long-sequence benchmarks (20 tasks), proving the method's viability for complex, real-world applications.

Conclusion

This research provides a mathematical basis for why "reviewing" is an effective strategy for learning diverse subjects. By moving away from a one-size-fits-all concurrent approach and adopting a hybrid strategy based on task similarity, practitioners can significantly improve the stability and performance of continual learning systems.

Summary updated

BibTeX
@inproceedings{deng2025unlocking,
  author = {Junze Deng and Qinhang Wu and Peizhong Ju and Sen Lin and Yingbin Liang and Ness Shroff},
  title = {{Unlocking the Power of Rehearsal in Continual Learning: A Theoretical Perspective}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=p6nhzZ9ilZ},
}
Figure