Skip to main content
QUICK REVIEW

[Paper Review] Investigating Continual Pretraining in Large Language Models: Insights and Implications

Çağatay Yıldız, Nishaanth Kanna Ravichandran|arXiv (Cornell University)|Feb 27, 2024
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

This paper investigates continual domain-adaptive pretraining in large language models (LLMs) using a diverse, large-scale dataset of 236 domains to study knowledge retention, transfer, and forgetting. It finds that semantic similarity between domains enhances specialization, randomizing training order improves backward and forward transfer, and smaller models show the highest sensitivity to continual pretraining, with performance platetuing due to knowledge saturation.

ABSTRACT

Continual learning (CL) in large language models (LLMs) is an evolving domain that focuses on developing efficient and sustainable training strategies to adapt models to emerging knowledge and achieve robustness in dynamic environments. Our primary emphasis is on continual domain-adaptive pretraining, a process designed to equip LLMs with the ability to integrate new information from various domains while retaining previously learned knowledge. Since existing works concentrate mostly on continual fine-tuning for a limited selection of downstream tasks or training domains, we introduce a new benchmark designed to measure the adaptability of LLMs to changing pretraining data landscapes. We further examine the impact of model size on learning efficacy and forgetting, as well as how the progression and similarity of emerging domains affect the knowledge transfer within these models. Our findings uncover several key insights: (i) continual pretraining consistently improves <1.5B models studied in this work and is also superior to domain adaptation, (ii) larger models always achieve better perplexity than smaller ones when continually pretrained on the same corpus, (iii) smaller models are particularly sensitive to continual pretraining, showing the most significant rates of both learning and forgetting, (iv) continual pretraining boosts downstream task performance of GPT-2 family, (v) continual pretraining enables LLMs to specialize better when the sequence of domains shows semantic similarity while randomizing training domains leads to better transfer and final performance otherwise. We posit that our research establishes a new benchmark for CL in LLMs, providing a more realistic evaluation of knowledge retention and transfer across diverse domains.

Motivation & Objective

  • To evaluate the long-term effectiveness of continual domain-adaptive pretraining in LLMs across diverse, evolving domains.
  • To understand how model size, domain order, and semantic similarity influence knowledge retention and transfer.
  • To develop a realistic benchmark for continual learning in LLMs beyond narrow task or domain settings.
  • To investigate the risks of overtraining and knowledge saturation in continually pretraining LLMs.
  • To challenge conventional assumptions about model scaling and performance in continual learning settings.

Proposed method

  • Utilized the Massively Multi-Domain Dataset (M2D2) with 236 hierarchically organized domains from Wikipedia and Semantic Scholar.
  • Trained multiple LLMs (GPT-2 variants and RoBERTa) on sequential domain streams with varying orders and similarities.
  • Implemented continual pretraining without explicit domain identification, focusing on incremental adaptation to new corpora.
  • Measured performance via language modeling perplexity across checkpoints to assess forgetting and transfer.
  • Conducted ablation studies on domain order (fixed vs. randomized) and model size to isolate effects.
  • Analyzed backward and forward transfer by evaluating performance on past and future domains relative to training chronology.

Experimental results

Research questions

  • RQ1How does the semantic similarity between consecutive domains affect domain specialization in continual pretraining?
  • RQ2What is the impact of training order (fixed vs. randomized) on backward and forward knowledge transfer in LLMs?
  • RQ3How does model size influence learning efficacy, forgetting, and transfer in continual pretraining?
  • RQ4Does continual pretraining lead to knowledge saturation, and when does performance plateau?
  • RQ5To what extent does further pretraining of a converged model degrade or improve performance across different domains?

Key findings

  • When domains are semantically similar, continual pretraining enables better domain specialization than stand-alone fine-tuning, with positive transfer to recent past domains but not distant ones.
  • Randomizing the training order leads to superior average performance on the last checkpoint and improved backward transfer, indicating better preservation of prior knowledge.
  • Continual pretraining enhances downstream task performance on BigBench, showing that further generative pretraining improves zero-shot generalization compared to fine-tuning alone.
  • Knowledge saturation is observed as performance platetues over time, with forgetting becoming more severe in later stages of training.
  • Smaller models (e.g., GPT2-small) exhibit the most significant rates of both forgetting and learning, challenging assumptions about larger models always outperforming smaller ones.
  • GPT2-large shows poorer backward transfer perplexity than GPT2-medium and GPT2-xlarge, indicating non-monotonic scaling behavior in continual learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.