An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning

Yun Luo, Zhen Yang, Fandong Meng, Yafu Li, Jie Zhou, Yue Zhang · DOI

Abstract

Large Language Models (LLMs) are increasingly fine-tuned for specialized tasks, yet the impact of sequential learning on their foundational capabilities remains under-explored. This paper investigates Continual Instruction Tuning, revealing that as models learn new tasks, they often "forget" general knowledge and reasoning skills—a phenomenon known as Catastrophic Forgetting (CF). Through an empirical study of models up to 7B parameters, the authors identify a "scale paradox" where larger models suffer more severe forgetting. However, decoder-only architectures and prior general instruction tuning are shown to mitigate these losses.

Introduction

In real-world applications, LLMs are rarely used in their base state. Developers frequently fine-tune these models on specific datasets to enhance performance in niche domains like medical summarization or code generation. While most research focuses on single-task fine-tuning, this study addresses the challenge of sequential learning: what happens when a model learns Task A, then Task B, then Task C?

The primary obstacle is Catastrophic Forgetting (CF), where neural networks overwrite weights representing prior knowledge with new information. This paper examines how CF affects the "general intelligence"—including reasoning, factual knowledge, and reading comprehension—of modern generative LLMs.

Methodology

The researchers conducted a stress test on several model families, including BLOOMZ, mT0, LLaMA, and ALPACA.

Sequential Training and Evaluation

The models were trained on five distinct instruction tasks in a fixed sequence: Text Simplification (ASSET), Empathetic Dialogue, Question Generation, Explanation Generation, and Headline Generation.

Overview of the continual instruction tuning and evaluation framework.

After each training step, the models were evaluated across four categories of general knowledge: Domain Knowledge (MMLU), Reasoning (Hellaswag, BoolQ, etc.), Reading Comprehension (RACE), and Language Bias (CrowSPairs).

Key Findings

The Scale Paradox

A counter-intuitive finding of this study is that larger models (moving from 1B to 7B parameters) exhibit increased severity of forgetting. The authors suggest that because larger models achieve higher initial performance, they have "more to lose." Their aggressive fitting to new tasks causes a more dramatic collapse of original internal representations compared to smaller models.

Comparison of forgetting severity across different model sizes (1.1B to 7.1B parameters).

For example, in BLOOMZ-7.1b, the forgetting value for Reading Comprehension reached 26.75%, whereas the 1.1b version only saw an 18.04% drop.

Architecture and Pre-tuning

  • Architecture Matters: Decoder-only models (e.g., BLOOMZ) proved more resilient than Encoder-Decoder models (e.g., mT0). The autoregressive nature of decoders may be inherently better at preserving learned distributions during sequential updates.
  • Instruction Tuning as a Buffer: Models previously subjected to general instruction tuning (like ALPACA) retained knowledge better than "raw" base models (like LLaMA). General instruction tuning appears to "teach the model how to learn" without destroying its foundation.

The Impact on Bias

Interestingly, continual fine-tuning was found to reduce social bias. As models "forgot" their general training data, they also unlearned stereotypical biases related to gender, race, and religion.

Conclusion and Future Work

While universal forgetting was observed in every model tested—with reading comprehension being the most fragile category—the researchers found that mixing a small amount of general instruction data (e.g., 10,000 samples) into the continual tuning process could significantly buffer the loss.

Future research is needed to determine if this "scale paradox" persists in massive models (70B+) and how the sequence of tasks affects the rate of forgetting. Additionally, exploring parameter-efficient methods like LoRA in a continual context remains a vital next step.

Summary updated

BibTeX
@misc{luo2023empirical,
  author = {Yun Luo and Zhen Yang and Fandong Meng and Yafu Li and Jie Zhou and Yue Zhang},
  title = {{An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning}},
  year = {2023},
  eprint = {2308.08747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.08747},
}
Figure