Replay-Based Continual Learning on Sequential Digit Tasks: Buffer Size, Task Similarity, and the Effect of Interleaving
Downloads
Abstract
We study replay-based mitigation of forgetting on five binary digit tasks using the 1797-sample subset of UCI Optical Recognition of Handwritten Digits distributed by scikit-learn. A shared 64-16-16 ReLU network with task-specific sigmoid heads is trained under sequential learning, Experience Replay (ER), past-task-balanced Interleaved Replay (IR), and joint training with all tasks available from the outset. Reported means over ten seeds give Backward Transfer (BWT) -0.170 and final accuracy 0.861 for naive training, versus joint-reference accuracy 0.996. In the natural-layout ER condition, nominal per-class capacities 25 to 200 improve BWT from -0.035 to -0.010 and accuracy from 0.969 to 0.988; capacity 200 exceeds the available training examples per class and stores the full observed class data. IR does not significantly outperform ER in BWT at any capacity by the reported unadjusted tests (p ≥ 0.058). ER and IR also differ in current-task inclusion and expected past-task rehearsal dose, so this contrast does not isolate temporal interleaving alone. Per-task feature permutations reduce measured mean-image correlation and are associated with less forgetting in several exploratory contrasts. The twenty-six reported tests are unadjusted; applying Holm to their rounded p-values leaves none below 0.05. Results characterize one small task-incremental benchmark, and mechanism, execution, and reproducibility claims require the original code and per-run outputs.
Keywords
Continual learning Catastrophic forgetting Experience replay Complementary learning systems Task similarity OptdigitsReferences (17)
- [1] McCloskey, M., & Cohen, N. J. (1989). Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation (Vol. 24, pp. 109–165). Elsevier. https://doi.org/10.1016/S0079-7421(08)60536-8
- [2] Rumelhart, D. E., Hinton, G. E., & Williams, R. J. (1986). Learning representations by back-propagating errors. Nature, 323(6088), 533–536. https://doi.org/10.1038/323533a0%0A%0A
- [3] McClelland, J. L., McNaughton, B. L., & O’Reilly, R. C. (1995). Why there are complementary learning systems in the hippocampus and neocortex: Insights from the successes and failures of connectionist models of learning and memory. Psychological review, 102(3), 419. https://doi.org/10.1037/0033-295X.102.3.419
- [4] Robins, A. (1995). Catastrophic forgetting, rehearsal and pseudorehearsal. Connection science, 7(2), 123–146. https://doi.org/10.1080/09540099550039318
- [5] Sutton, R. S., Barto, A. G., & Barto, A. (1998). Reinforcement learning: An introduction (Vol. 1). MIT press, Cambridge. https://doi.org/10.1017/S0263574799271172
- [6] Kirkpatrick, J., Pascanu, R., Rabinowitz, N., Veness, J., Desjardins, G., & Rusu, A. A. (2017). Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13), 3521–3526. https://doi.org/10.1073/pnas.1611835114
- [7] De Lange, M., Aljundi, R., Masana, M., Parisot, S., Jia, X., Leonardis, A., … & Tuytelaars, T. (2021). A continual learning survey: Defying forgetting in classification tasks. IEEE transactions on pattern analysis and machine intelligence, 44(7), 3366–3385. https://doi.org/10.1109/TPAMI.2021.3057446
- [8] Wang, L., Zhang, X., Su, H., & Zhu, J. (2024). A comprehensive survey of continual learning: Theory, method and application. IEEE transactions on pattern analysis and machine intelligence, 46(8), 5362–5383. https://doi.org/10.1109/TPAMI.2024.3367329
- [9] de Ven, G. M., Soures, N., & Kudithipudi, D. (2024). Continual learning and catastrophic forgetting. https://doi.org/10.1016/B978-0-443-15754-7.00073-0
- [10] Alpaydin, E., & Kaynak, C. (1998). Optical recognition of handwritten digits. UCI Machine Learning Repository. https://doi.org/10.24432/C50P49
- [11] Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., & Grisel, O. (2011). Scikit-learn: Machine learning in Python. The journal of machine learning research, 12, 2825–2830. https://jmlr.org/papers/v12/pedregosa11a.html
- [12] Settles, B. (2009). Active learning literature survey. https://burrsettles.com/pub/settles.activelearning.pdf
- [13] Harris, C. R., Millman, K. J., Van Der Walt, S. J., Gommers, R., Virtanen, P., & Cournapeau, D. (2020). Array programming with NumPy. Nature, 585(7825), 357–362. https://doi.org/10.1038/s41586-020-2649-2
- [14] Virtanen, P., Gommers, R., Oliphant, T. E., Haberland, M., Reddy, T., & Cournapeau, D. (2020). SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nature methods, 17(3), 261–272. https://doi.org/10.1038/s41592-019-0686-2
- [15] Hunter, J. D. (2007). Matplotlib: A 2D graphics environment. Computing in science & engineering, 9(3), 90–95. https://doi.org/10.1109/MCSE.2007.55
- [16]
- [17]