Can BERT Refrain from Forgetting on Sequential Tasks? A Probing Study

Mingxu Tao, Yansong Feng, Dongyan Zhao
2/12/2026

No official code found. Best implementation: kobayashikanna01/plms_are_lifelong_learners (9 stars, last commit 2023-03-16).

Abstract

Large pre-trained language models help to achieve state of the art on a variety of natural language processing (NLP) tasks, nevertheless, they still suffer from forgetting when incrementally learning a sequence of tasks. To alleviate this problem, recent works enhance existing models by sparse experience replay and local adaption, which yield satisfactory performance. However, in this paper we find that pre-trained language models like BERT have a potential ability to learn sequentially, even without any sparse memory replay. To verify the ability of BERT to maintain old knowledge, we adopt and re-finetune single-layer probe networks with the parameters of BERT fixed. We investigate the models on two types of NLP tasks, text classification and extractive question answering. Our experiments reveal that BERT can actually generate high quality representations for previously learned tasks in a long term, under extremely sparse replay or even no replay. We further introduce a series of novel methods to interpret the mechanism of forgetting and how memory rehearsal plays a significant role in task incremental learning, which bridges the gap between our new discovery and previous studies about catastrophic forgetting.

View on arXivView PDF

Code Implementations(1)

Open-resource code of our ICLR paper ( https://openreview.net/forum?id=UazgYBMS9-W ).

90Shell, PythonFeb 13, 20233 years ago

Similar Papers

Cite this paper

@article{tao2026bert,
  title  = {Can BERT Refrain from Forgetting on Sequential Tasks? A Probing Study},
  author = {Mingxu Tao and Yansong Feng and Dongyan Zhao},
  year   = {2026},
  eprint = {2303.01081},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2303.01081},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.01081.svg)](https://codeofpaper.com/paper/2303.01081)

Discussion