Replay Can Provably Increase Forgetting
Preprint
Abstract
Continual learning seeks to enable machine learning systems to solve an increasing corpus of tasks sequentially. A critical challenge for continual learning is forgetting, where the performance on previously learned tasks decreases as new tasks are introduced. One of the commonly used techniques to mitigate forgetting, sample replay, has been shown empirically to reduce forgetting by retaining some examples from old tasks and including them in new training episodes. In this work, we provide a theoretical analysis of sample replay in an over-parameterized continual linear regression setting, where each task is given by a linear subspace and with enough replay samples, one would be able to eliminate forgetting. Our analysis focuses on sample replay and highlights the role of the replayed samples and the relationship between task subspaces. Surprisingly, we find that, even in a noiseless setting, forgetting can be non-monotonic with respect to the number of replay samples. We present tasks where replay can be harmful with respect to worst-case settings, and also in distributional settings where replay of randomly selected samples increases forgetting in expectation. We also give empirical evidence that harmful replay is not limited to training with linear models by showing similar behavior for a neural networks equipped with SGD. Through experiments on a commonly used benchmark, we provide additional evidence that, even in seemingly benign scenarios, performance of the replay heavily depends on the choice of replay samples and the relationship between tasks.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Order parameters and phase transitions of continual learning in deep neural networksProceedings of the National Academy of Sciences of the United States of America, 2026
- A Comprehensive Survey of Continual Learning: Theory, Method and ApplicationIEEE Transactions on Pattern Analysis and Machine Intelligence, 2024
- Rehearsal revealed: The limits and merits of revisiting samples in continual learning2021
- A continual learning survey: Defying forgetting in classification tasksIEEE Transactions on Pattern Analysis and Machine Intelligence, 2021
- Brain-inspired replay for continual learning with artificial neural networksNature Communications, 2020
- Continual lifelong learning with neural networks: A reviewNeural Networks, 2019
- Learning without ForgettingIEEE Transactions on Pattern Analysis and Machine Intelligence, 2017
- Upgrading the sleeping brain with targeted memory reactivationTrends in Cognitive Sciences, 2013
- An elementary proof of a theorem of Johnson and LindenstraussRandom Structures & Algorithms, 2002
- Catastrophic Interference in Connectionist Networks: The Sequential Learning Problem1989