Pretrained language models (PTLMs) are typically learned over a large, static corpus and further fine-tuned for various downstream tasks. However, when deployed in the real world, a PTLM-based model must deal with data from a new domain that deviates from what the PTLM was initially trained on, or newly emerged data that contains out-of-distribution information. In this paper, we study a lifelong language model pretraining challenge where a PTLM is continually updated so as to adapt to emerging data. Over a domain-incremental research paper stream and a chronologically ordered tweet stream, we incrementally pretrain a PTLM with different continual learning algorithms, and keep track of the downstream task performance (after fine-tuning) to analyze its ability of acquiring new knowledge and preserving learned knowledge. Our experiments show continual learning algorithms improve knowledge preservation, with logit distillation being the most effective approach. We further show that continual pretraining improves generalization when training and testing data of downstream tasks are drawn from different time steps, but do not improve when they are from the same time steps. We believe our problem formulation, methods, and analysis will inspire future studies towards continual pretraining of language models.
翻译:受过训练的语言模型(PTLM)通常是在大型、静态的文体中学习的,并且对各种下游任务进行进一步的微调,然而,如果在现实世界中部署,以PTLM为基础的文体模型必须处理与PTLM最初接受的训练不同的新领域的数据,或新出现的数据,其中包括分配外信息。在本文中,我们研究终身语言模型的训练前挑战,即PTLM不断更新,以适应新出现的数据。在领域性研究纸质流和按时间顺序排列的推文流中,我们用不同的持续学习算法对PTLM进行逐步的准备,并跟踪下游任务业绩(经过微调后),以分析其获得新知识和保存所学知识的能力。我们的实验显示,不断学习的算法将改善知识的保存,而逻辑蒸馏是最有效的方法。我们进一步表明,在培训和测试下游任务的数据从不同的时间步骤中抽取时,持续的培训前期改进了一般化,但是在它们从相同的时间步骤中没有改进。 我们相信,我们的问题、方法和分析将激励未来学习前的研究。