Continual Pre-training of Language Models

Zixuan Ke, Yijia Shao, Haowei Lin, Tatsuya Konishi, Gyuhak Kim +1 more
2/12/2026

No official code found. Best implementation: UIC-Liu-Lab/ContinualLM (295 stars, last commit 2024-01-28).

Abstract

Language models (LMs) have been instrumental for the rapid advance of natural language processing. This paper studies continual pre-training of LMs, in particular, continual domain-adaptive pre-training (or continual DAP-training). Existing research has shown that further pre-training an LM using a domain corpus to adapt the LM to the domain can improve the end-task performance in the domain. This paper proposes a novel method to continually DAP-train an LM with a sequence of unlabeled domain corpora to adapt the LM to these domains to improve their end-task performances. The key novelty of our method is a soft-masking mechanism that directly controls the update to the LM. A novel proxy is also proposed to preserve the general knowledge in the original LM. Additionally, it contrasts the representations of the previously learned domain knowledge (including the general knowledge in the pre-trained LM) and the knowledge from the current full network to achieve knowledge integration. The method not only overcomes catastrophic forgetting, but also achieves knowledge transfer to improve end-task performances. Empirical evaluation demonstrates the effectiveness of the proposed method.

View on arXivView PDF

Code Implementations(1)

An Extensible Continual Learning Framework Focused on Language Models (LMs)

29523Shell, PythonFeb 12, 20232 years ago
catastrophic-forgettingcontinual-learningdomain-adaptive-pretrainingknowledge-transferlanguage-model+4 more

Similar Papers

Cite this paper

@article{ke2026continual,
  title  = {Continual Pre-training of Language Models},
  author = {Zixuan Ke and Yijia Shao and Haowei Lin and Tatsuya Konishi and Gyuhak Kim and Bin Liu},
  year   = {2026},
  eprint = {2302.03241},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2302.03241},
  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/2302.03241.svg)](https://codeofpaper.com/paper/2302.03241)

Discussion